32 #include "fitshandle.h" 33 #include "paramfile.h" 39 #include "levels_facilities.h" 44 int calc_powspec_module (
int argc,
const char **argv)
46 module_startup (
"calc_powspec",argc,argv);
47 paramfile params (getParamsFromCmdline(argc,argv));
49 bool pol=params.find<
bool>(
"pol",
false);
50 string alm1=params.find<
string>(
"alm1");
51 string ps=params.find<
string>(
"ps");
53 if (!params.param_present(
"alm2"))
68 planck_assert(!pol,
"polarisation not supported for cross-powerspectra");
73 string alm2=params.find<
string>(
"alm2");
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 extract_powspec(const Alm< xcomplex< T > > &alm, PowSpec &powspec)
void get_almsize(fitshandle &inp, int &lmax, int &mmax)
void write_powspec_to_fits(fitshandle &out, const PowSpec &powspec, int nspecs)
void extract_crosspowspec(const Alm< xcomplex< T > > &alm1, const Alm< xcomplex< T > > &alm2, PowSpec &powspec)