NASA - Jet Propulsion Laboratory
    + View the NASA Portal
Search JPL
Jet Propulsion Laboratory Home Earth Solar System Stars & Galaxies Technology
Introduction Background Software Links

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)

Detailed Description


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 
) [inline]

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 
) [inline]

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 
) [inline]

Inserts a new binary table into out, which contains three columns of FITS type TINT32BIT, 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 
) [inline]

Inserts a new binary table into out, which contains three columns of FITS type TINT32BIT, 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 Jun 18 16:12:30 2010 for Healpix C++
Privacy / Copyright
FIRST GOV Contact: NASA Home Page Site Manager:
Webmaster:

CL 03-2650