32 #include "healpix_data_io.h" 42 void read_wring (
const string &weightfile,
int nside,
arr<double> &weight)
50 "incorrect number of weights in ring weight file");
55 void read_weight_ring (
const string &dir,
int nside,
arr<double> &weight)
57 read_wring(dir+
"/weight_ring_n"+
intToString(nside,5)+
".fits", nside, weight);
62 string weightfile = params.
find<
string>(
"ringweights",
"");
63 weight.
alloc (2*nside);
66 read_wring (weightfile, nside, weight);
67 for (
tsize m=0; m<weight.
size(); ++m) weight[m]+=1;
73 vector<double> read_fullweights_from_fits(
const std::string &weightfile,
86 void read_pixwin (
const string &file,
arr<double> &temp)
113 string windowfile = params.
find<
string>(
"windowfile",
"");
114 pixwin.
alloc(lmax+1);
117 read_pixwin (windowfile,pixwin);
122 string windowfile = params.
find<
string>(
"windowfile",
"");
123 pixwin.
alloc(lmax+1);
125 pixwin_pol.
alloc(lmax+1);
128 read_pixwin (windowfile,pixwin,pixwin_pol);
void get_key(const std::string &name, T &value) const
std::string intToString(int64 x, tsize width)
void fill(const double &val)
void open(const std::string &fname)
const std::string & colname(int i) const
T find(const std::string &key) const
void read_column(int colnum, arr< T > &data, int64 offset=0) const
#define planck_assert(testval, msg)
void read_entire_column(int colnum, arr< T > &data) const