Healpix C++
3.50
Healpix_cxx
healpix_data_io.h
1
/*
2
* This file is part of Healpix_cxx.
3
*
4
* Healpix_cxx is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
8
*
9
* Healpix_cxx is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with Healpix_cxx; if not, write to the Free Software
16
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17
*
18
* For more information about HEALPix, see http://healpix.sourceforge.net
19
*/
20
21
/*
22
* Healpix_cxx is being developed at the Max-Planck-Institut fuer Astrophysik
23
* and financially supported by the Deutsches Zentrum fuer Luft- und Raumfahrt
24
* (DLR).
25
*/
26
27
/*
28
* Copyright (C) 2003-2016 Max-Planck-Society
29
* Author: Martin Reinecke
30
*/
31
32
#ifndef HEALPIX_DATA_IO_H
33
#define HEALPIX_DATA_IO_H
34
35
#include <string>
36
#include <vector>
37
38
class
paramfile
;
39
template
<
typename
T>
class
arr
;
40
41
/*! Reads a set of full pixel weights for a map of the given \a nside from the
42
FITS file \a weightfile. The code checks that the number of weights in the
43
file is compatible with the provided \a nside parameter.
44
\returns a vector containing the compressed full weights.
45
*/
46
std::vector<double> read_fullweights_from_fits(
const
std::string &weightfile,
47
int
nside);
48
49
void
read_weight_ring (
const
std::string &dir,
int
nside,
arr<double>
&weight);
50
51
void
get_ring_weights (
paramfile
¶ms,
int
nside,
arr<double>
&weight);
52
53
void
read_pixwin (
const
std::string &file,
arr<double>
&temp);
54
void
read_pixwin (
const
std::string &file,
arr<double>
&temp,
arr<double>
&pol);
55
56
void
get_pixwin (
paramfile
¶ms,
int
lmax,
arr<double>
&pixwin);
57
void
get_pixwin (
paramfile
¶ms,
int
lmax,
arr<double>
&pixwin,
58
arr<double>
&pixwin_pol);
59
60
#endif
paramfile
arr
Definition:
healpix_data_io.h:39
Generated on Mon Dec 10 2018 10:24:22 for Healpix C++