Welcome to plancklens documentation!

_images/schema.jpg

plancklens.sims

This package defines simulation libraries. A simulation library basically only defines get_sim_tmap and get_sim_pmap methods.

plancklens.sims.maps

plancklens.sims.planck2018_sims

Planck 2018 release simulation libraries.

Note

These simulations are located on NERSC systems.

Note

Units of the maps stored at NERSC are \(K\) but this module returns maps in \(\mu K\)

class plancklens.sims.planck2018_sims.cmb_len_ffp10[source]

FFP10 input sim libraries, lensed alms.

The lensing deflections contain the L=1 aberration term (constant across all maps) due to our motion w.r.t. the CMB frame.

static get_sim_blm(idx)[source]
Parameters:idx – simulation index
Returns:lensed B-polarization simulation healpy alm array
static get_sim_elm(idx)[source]
Parameters:idx – simulation index
Returns:lensed E-polarization simulation healpy alm array
static get_sim_tlm(idx)[source]
Parameters:idx – simulation index
Returns:lensed temperature simulation healpy alm array
class plancklens.sims.planck2018_sims.cmb_unl_ffp10[source]

FFP10 input sim libraries, unlensed alms.

static get_sim_blm(idx)[source]
Parameters:idx – simulation index
Returns:unlensed B-polarization simulation healpy alm array
static get_sim_elm(idx)[source]
Parameters:idx – simulation index
Returns:unlensed E-polarization simulation healpy alm array
static get_sim_plm(idx)[source]
Parameters:idx – simulation index
Returns:lensing potential \(\phi_{LM}\) simulation healpy alm array
static get_sim_tlm(idx)[source]
Parameters:idx – simulation index
Returns:unlensed temperature simulation healpy alm array
class plancklens.sims.planck2018_sims.ffp10cmb_widnoise(transf, nlevt, nlevp, pix_libphas, nside=2048)[source]

Simulation library with freq-0 FFP10 lensed CMB together with idealized, homogeneous noise.

Parameters:
  • transf – transfer function (beam and pixel window)
  • nlevt – temperature noise level in \(\mu K\)-arcmin.
  • nlevp – polarization noise level in \(\mu K\)-arcmin.
  • pix_libphas – random phases simulation library (see plancklens.sims.phas.py) of the noise maps.
class plancklens.sims.planck2018_sims.smica_dx12[source]

SMICA 2018 release simulation and data library at NERSC in uK.

Note

This now converts all maps to double precision (healpy 1.15 changed read_map default type behavior, breaking in a way that is not very clear as yet the behavior of the conjugate gradient inversion chain)

get_sim_pmap(idx)[source]

Returns dx12 SMICA polarization map for a simulation

Parameters:idx – simulation index
Returns:SMICA Q and U simulation idx, including noise. Returns dx12 SMICA data maps for idx =-1
get_sim_tmap(idx)[source]

Returns dx12 SMICA temperature map for a simulation

Parameters:idx – simulation index
Returns:SMICA simulation idx, including noise. Returns dx12 SMICA data map for idx =-1
class plancklens.sims.planck2018_sims.smica_dx12_SZdeproj[source]

tSZ-deprojected SMICA 2018 release simulation and data library at NERSC in uK

Note

This now converts all maps to double precision (healpy 1.15 changed read_map default type behavior, breaking in a way that is not very clear as yet the behavior of the conjugate gradient inversion chain)

get_dat_tmap()[source]

Returns dx12 tSZ-deproj SMICA Planck data temperature map

get_sim_tmap(idx)[source]

Returns dx12 tSZ-deproj SMICA temperature map for a simulation

Parameters:idx – simulation index
Returns:SMICA simulation idx, including noise. Returns dx12 SMICA data map for idx =-1

plancklens.filt

This defines modules used for Wiener-filtering of CMB maps.

plancklens.filt.filt_simple

plancklens.filt.filt_cinv

plancklens.filt_util

CMB filtering utilities module.

This module collects some convenience wrapper libraries.

class filt_util.library_ftl(ivfs, lmax, lfilt_t, lfilt_e, lfilt_b)[source]

Library of a-posteriori re-scaled filtered CMB maps, for separate temperature and polarization filtering

Parameters:
  • ivfs – inverse filtering library instance (e.g. one of those in plancklens.filt.filt_simple).
  • lmax (int) – defines the new healpy alm array shape (identical for temperature and polarization)
  • lfilt_t (1d array) – filtered temperature alms are rescaled by lfilt_t
  • lfilt_e (1d array) – filtered E-polarization alms are rescaled by lfilt_e
  • lfilt_b (1d array) – filtered B-polarization alms are rescaled by lfilt_b

Wraps the input filtering instance (ivfs) methods to keep the same interface.

Note

ftl fel fbl should eventually be taken off to be replaced by fal in all cases

class filt_util.library_shuffle(ivfs, idxs)[source]

A library of filtered sims with remapped indices.

This is useful for lensing biases calculations, such as \(\hat N^{(0)}_L.\)

Parameters:
  • ivfs – inverse-variance filtering library instance.
  • idxs – index idx of this new instance points to idxs[idx] of the input ivfs instance.

Wraps the input filtering instance (ivfs) methods to keep the same interface.

plancklens.qest

plancklens.qecl

plancklens.bandpowers

plancklens.n0s

plancklens.n1.n1

plancklens.qresp

plancklens.patchy

Indices and tables