FITS-based I/O of power spectra


Functions

void read_powspec_from_fits (fitshandle &inp, PowSpec &powspec, int nspecs, int lmax)
void read_powspec_from_fits (const std::string &infile, PowSpec &powspec, int nspecs, int lmax, int hdunum=2)
void write_powspec_to_fits (fitshandle &out, const PowSpec &powspec, int nspecs)
void write_powspec_to_fits (const std::string &outfile, const PowSpec &powspec, int nspecs)

Detailed Description


Function Documentation

void read_powspec_from_fits ( fitshandle inp,
PowSpec powspec,
int  nspecs,
int  lmax 
)

Reads the power spectrum stored in the FITS binary table pointed to by inp into powspec.

Definition at line 38 of file powspec_fitsio.cc.

void read_powspec_from_fits ( const std::string &  infile,
PowSpec powspec,
int  nspecs,
int  lmax,
int  hdunum = 2 
)

Opens the FITS file filename, jumps to HDU hdunum, and reads nspecs columns into powspec. nspecs must be 1, 4, or 6.

void write_powspec_to_fits ( fitshandle out,
const PowSpec powspec,
int  nspecs 
)

Inserts a new binary table into out, which contains nspecs columns of FITS type TDOUBLE, and writes the components of powspec into it. nspecs must be 1, 4, or 6.

Definition at line 80 of file powspec_fitsio.cc.

void write_powspec_to_fits ( const std::string &  outfile,
const PowSpec powspec,
int  nspecs 
)

Creates a new FITS file called outfile, inserts a binary table, which contains nspecs columns of FITS type TDOUBLE, and writes the components of powspec into it. nspecs must be 1, 4, or 6.


Generated on Thu Oct 8 14:48:52 2015 for Healpix C++