pymaster package

Submodules

Module contents

pymaster contains four basic classes:

and a number of functions

pymaster also comes with a flat-sky version with most of the same functionality:

Finally, pymaster has functionality to calculate the power spectra of fields defined at the arbitrary positions of a discrete set of sources. These should be defined using the following two field classes:

Many of the NaMaster functions above accept or return sets of power spectra (arrays with one element per angular multipole) or bandpowers (binned versions of power spectra). In all cases, these are returned and provided as 2D arrays with shape [n_cls][nl], where n_cls is the number of power spectra and nl is either the number of multipoles or bandpowers. In all cases, n_cls should correspond with the spins of the two fields being correlated, and the ordering is as follows:

  • Two spin-0 fields: n_cls = 1, [C_T1T2]

  • One spin-0 field and one spin>0 field: n_cls = 2, [C_TE,C_TB]

  • Two spin>0 fields: n_cls = 4, [C_E1E2,C_E1B2,C_E2B1,C_B1B2]

By defaut, all sky maps accepted and returned by the curved-sky functions are in the form of HEALPix maps exclusively with RING ordering. Note that NaMaster also supports CAR (Plate Carree) pixelization (see Example 9 in documentation), as well as catalog-based fields in a pixel-less manner (see Examples 11 and 12).