plancklens.sims.maps
- class plancklens.sims.maps.cmb_maps(sims_cmb_len, cl_transf, nside=2048, cl_transf_P=None, lib_dir=None)[source]
CMB simulation library combining a lensed CMB library and a transfer function.
- Parameters:
sims_cmb_len – lensed CMB library (e.g. plancklens.sims.planck2018_sims.cmb_len_ffp10)
cl_transf – CMB temperature transfer function
nside – healpy resolution of the maps. Defaults to 2048.
lib_dir (optional) – hash checks will be cached, as well as possibly other things for subclasses.
cl_transf_P – CMB pol transfer function (if different from cl_transf)
- class plancklens.sims.maps.cmb_maps_harmonicspace(sims_cmb_len, cls_transf: dict, cls_noise: dict, noise_phas: lib_phas, lib_dir=None, nside=None)[source]
CMB simulation library combining a lensed CMB library and a transfer function
Note
In this version, maps are directly produced in harmonic space with possibly non-white but stat. isotropic noise
- Parameters:
sims_cmb_len – lensed CMB library (e.g. plancklens.sims.planck2018_sims.cmb_len_ffp10)
cls_transf – dict with transfer function for ‘t’ ‘e’ and ‘b’ CMB fields
cls_noise – dict with noise spectra for ‘t’ ‘e’ and ‘b’
noise_phas – plancklens.sims.phas.lib-phas with at least 3 fields for the random phase library for the noise generation
lib_dir (optional) – hash checks will be cached, as well as possibly other things for subclasses.
nside – If provided, maps are returned in pixel space instead of harmonic space
Note
lmax’s of len cmbs and noise phases must match
- class plancklens.sims.maps.cmb_maps_nlev(sims_cmb_len, cl_transf, nlev_t, nlev_p, nside, lib_dir=None, pix_lib_phas=None)[source]
CMB simulation library combining a lensed CMB library, transfer function and idealized homogeneous noise.
- Parameters:
sims_cmb_len – lensed CMB library (e.g. plancklens.sims.planck2018_sims.cmb_len_ffp10)
cl_transf – CMB transfer function, identical in temperature and polarization
nlev_t – temperature noise level in \(\mu K\)-arcmin
nlev_p – polarization noise level in \(\mu K\)-arcmin
nside – healpy resolution of the maps
lib_dir (optional) – noise maps random phases will be cached there. Only relevant if pix_lib_phas is not set
pix_lib_phas (optional) – random phases library for the noise maps (from plancklens.sims.phas.py). If not set, lib_dir arg must be set.
- get_sim_qnoise(idx)[source]
Returns noise Q-polarization map for a simulation
- Parameters:
idx – simulation index
- Returns:
healpy map