Healpix C++  3.83
Functions
FITS-based I/O of power spectra

Functions

void read_powspec_from_fits (fitshandle &inp, PowSpec &powspec, int nspecs, int lmax)
 
PowSpec read_powspec_from_fits (fitshandle &inp, int nspecs, int lmax)
 
void read_powspec_from_fits (const std::string &infile, PowSpec &powspec, int nspecs, int lmax, int hdunum=2)
 
PowSpec read_powspec_from_fits (const std::string &infile, 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

◆ read_powspec_from_fits() [1/4]

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.

◆ read_powspec_from_fits() [2/4]

PowSpec read_powspec_from_fits ( fitshandle &  inp,
int  nspecs,
int  lmax 
)

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

Definition at line 70 of file powspec_fitsio.cc.

◆ read_powspec_from_fits() [3/4]

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.

◆ read_powspec_from_fits() [4/4]

PowSpec read_powspec_from_fits ( const std::string &  infile,
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.

◆ write_powspec_to_fits() [1/2]

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

◆ write_powspec_to_fits() [2/2]

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 Wed Nov 13 2024 12:18:30 for Healpix C++