Healpix C++  3.82
Functions
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 >
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)
 

Detailed Description

Function Documentation

◆ get_almsize() [1/2]

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.

◆ get_almsize() [2/2]

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.

◆ get_almsize_pol()

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.

◆ read_Alm_from_fits() [1/4]

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 95 of file alm_fitsio.cc.

◆ read_Alm_from_fits() [2/4]

template<typename T >
Alm<xcomplex<T> > read_Alm_from_fits ( fitshandle &  inp,
int  lmax,
int  mmax 
)
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.

◆ read_Alm_from_fits() [3/4]

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.

◆ read_Alm_from_fits() [4/4]

template<typename T >
Alm<xcomplex<T> > read_Alm_from_fits ( const std::string &  filename,
int  lmax,
int  mmax,
int  hdunum = 2 
)
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.

◆ write_Alm_to_fits()

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

◆ write_compressed_Alm_to_fits()

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


Generated on Thu Jul 28 2022 17:32:07 for Healpix C++