Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

FITS-based I/O of a_lm


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>
void read_Alm_from_fits (const std::string &filename, Alm< xcomplex< T > > &alms, 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, int datatype)
template<typename T>
void write_compressed_Alm_to_fits (fitshandle &out, const Alm< xcomplex< T > > &alms, int lmax, int mmax, int datatype)

Function Documentation

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 40 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.

template<typename T>
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 96 of file alm_fitsio.cc.

template<typename T>
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.

template<typename T>
void write_Alm_to_fits fitshandle out,
const Alm< xcomplex< T > > &  alms,
int  lmax,
int  mmax,
int  datatype
 

Inserts a new binary table into out, which contains three columns of FITS type TINT, 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 154 of file alm_fitsio.cc.

template<typename T>
void write_compressed_Alm_to_fits fitshandle out,
const Alm< xcomplex< T > > &  alms,
int  lmax,
int  mmax,
int  datatype
 

Inserts a new binary table into out, which contains three columns of FITS type TINT, 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 205 of file alm_fitsio.cc.


Generated on Fri Jul 8 09:37:15 2005 for Healpix C++