34 #ifndef PLANCK_ALM_FITSIO_H 35 #define PLANCK_ALM_FITSIO_H 39 #include "datatypes.h" 40 #include "fitshandle.h" 42 template<
typename T>
class Alm;
49 void get_almsize(fitshandle &inp,
int &lmax,
int &mmax);
52 void get_almsize(
const std::string &filename,
int &lmax,
int &mmax,
56 void get_almsize_pol(
const std::string &filename,
int &lmax,
int &mmax);
63 (fitshandle &inp,
Alm<xcomplex<T> > &alms,
int lmax,
int mmax);
68 (fitshandle &inp,
int lmax,
int mmax)
80 (
const std::string &filename,
Alm<xcomplex<T> > &alms,
81 int lmax,
int mmax,
int hdunum=2);
87 (
const std::string &filename,
int lmax,
int mmax,
int hdunum=2)
95 (
const std::string &filename,
Alm<xcomplex<T> > &almT,
96 Alm<xcomplex<T> > &almG,
Alm<xcomplex<T> > &almC,
97 int lmax,
int mmax,
int firsthdu=2)
109 (fitshandle &out,
const Alm<xcomplex<T> > &alms,
110 int lmax,
int mmax, PDT datatype);
113 (
const std::string &outfile,
const Alm<xcomplex<T> > &alms,
114 int lmax,
int mmax, PDT datatype)
122 (
const std::string &outfile,
const Alm<xcomplex<T> > &almT,
123 const Alm<xcomplex<T> > &almG,
const Alm<xcomplex<T> > &almC,
124 int lmax,
int mmax, PDT datatype)
139 (fitshandle &out,
const Alm<xcomplex<T> > &alms,
140 int lmax,
int mmax, PDT datatype);
void write_Alm_to_fits(fitshandle &out, const Alm< xcomplex< T > > &alms, int lmax, int mmax, PDT datatype)
void read_Alm_from_fits(fitshandle &inp, Alm< xcomplex< T > > &alms, int lmax, int mmax)
void get_almsize_pol(const std::string &filename, int &lmax, int &mmax)
void get_almsize(fitshandle &inp, int &lmax, int &mmax)
void write_compressed_Alm_to_fits(fitshandle &out, const Alm< xcomplex< T > > &alms, int lmax, int mmax, PDT datatype)