Healpix C++
3.83
|
Functions | |
void | get_almsize (fitshandle &inp, int &lmax, int &mmax) |
void | get_almsize (const std::string &filename, int &lmax, int &mmax, int hdunum=2) |
void | get_almsize_pol (const std::string &filename, int &lmax, int &mmax) |
template<typename T > | |
void | read_Alm_from_fits (fitshandle &inp, Alm< xcomplex< T > > &alms, int lmax, int mmax) |
template<typename T > | |
Alm< xcomplex< T > > | read_Alm_from_fits (fitshandle &inp, int lmax, int mmax) |
template<typename T > | |
void | read_Alm_from_fits (const std::string &filename, Alm< xcomplex< T > > &alms, int lmax, int mmax, int hdunum=2) |
template<typename T > | |
Alm< xcomplex< T > > | read_Alm_from_fits (const std::string &filename, int lmax, int mmax, int hdunum=2) |
template<typename T > | |
void | write_Alm_to_fits (fitshandle &out, const Alm< xcomplex< T > > &alms, int lmax, int mmax, PDT datatype) |
template<typename T > | |
void | write_compressed_Alm_to_fits (fitshandle &out, const Alm< xcomplex< T > > &alms, int lmax, int mmax, PDT datatype) |
void get_almsize | ( | fitshandle & | inp, |
int & | lmax, | ||
int & | mmax | ||
) |
Returns the maximum l and m multipole moments found in the FITS HDU pointed to be inp in lmax and mmax.
Definition at line 42 of file alm_fitsio.cc.
void get_almsize | ( | const std::string & | filename, |
int & | lmax, | ||
int & | mmax, | ||
int | hdunum = 2 |
||
) |
Returns the maximum l and m multipole moments found in the HDU hdunum of file filename in lmax and mmax.
void get_almsize_pol | ( | const std::string & | filename, |
int & | lmax, | ||
int & | mmax | ||
) |
Returns the maximum l and m multipole moments found in the HDUs 2, 3 and 4 of file filename in lmax and mmax.
void read_Alm_from_fits | ( | fitshandle & | inp, |
Alm< xcomplex< T > > & | alms, | ||
int | lmax, | ||
int | mmax | ||
) |
Reads the a_lm of the FITS binary table pointed to by inp into alms. alms is reallocated with the parameters lmax and mmax. Values not present in the FITS table are set to zero; values outside the requested (l,m) range are ignored.
Definition at line 95 of file alm_fitsio.cc.
|
inline |
Returns the a_lm of the FITS binary table pointed to by inp. Values not present in the FITS table are set to zero; values outside the requested (l,m) range are ignored.
Definition at line 68 of file alm_fitsio.h.
void read_Alm_from_fits | ( | const std::string & | filename, |
Alm< xcomplex< T > > & | alms, | ||
int | lmax, | ||
int | mmax, | ||
int | hdunum = 2 |
||
) |
Opens the FITS file filename, jumps to the HDU hdunum, then reads the a_lm from the FITS binary table there into alms. alms is reallocated with the parameters lmax and mmax. Values not present in the FITS table are set to zero; values outside the requested (l,m) range are ignored.
|
inline |
Opens the FITS file filename, jumps to the HDU hdunum, then returns the a_lm from the FITS binary table there. Values not present in the FITS table are set to zero; values outside the requested (l,m) range are ignored.
Definition at line 87 of file alm_fitsio.h.
void write_Alm_to_fits | ( | fitshandle & | out, |
const Alm< xcomplex< T > > & | alms, | ||
int | lmax, | ||
int | mmax, | ||
PDT | datatype | ||
) |
Inserts a new binary table into out, which contains three columns of type PLANCK_INT32, datatype and datatype, respectively. The data in alms is written into this table; values outside the requested (lmax, mmax) range are omitted.
Definition at line 151 of file alm_fitsio.cc.
void write_compressed_Alm_to_fits | ( | fitshandle & | out, |
const Alm< xcomplex< T > > & | alms, | ||
int | lmax, | ||
int | mmax, | ||
PDT | datatype | ||
) |
Inserts a new binary table into out, which contains three columns of type PLANCK_INT32, datatype and datatype, respectively. The data in alms is written into this table; values outside the requested (lmax, mmax) range are omitted. Values with an absolute magnitude of zero are not written.
Definition at line 199 of file alm_fitsio.cc.