plancklens.sims.maps¶
-
class
plancklens.sims.maps.
cmb_maps
(sims_cmb_len, cl_transf, nside=2048, 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 transfer function, identical in temperature and polarization
- 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.
-
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