Weak Lensing Spectra¶
Calculate the Weak Lening Power spectra using simulator/emulator
-
class
weaklensing.
spectra
(emu: bool = False, dir_gp: str = 'semigps')[source]¶ Bases:
cosmology.spectrumcalc.matterspectrum
,cosmology.redshift.nz_dist
-
basic_class
(cosmology: dict) → dict[source]¶ Calculates basic quantities using CLASS
- Param
d (dict) - a dictionary containing the cosmological and nuisance parameters
- Returns
quant (dict) - a dictionary with the basic quantities
-
n_of_z
(zcenter: list, model_name: str, dist_prop: dict, dist_range: dict = {}) → dict[source]¶ Calculate the (mid-) redshift and the heights
- Param
zcenter (list) - a list of the center of source distribution
- Param
nodel_name (str) - name of the n(z) we want to use - the following currently supported
model_1
model_2
gaussian
- Param
dist_range (dict) - a dictionary with the following key words: zmin, zmax, nzmax
- Param
dist_prop (dict) - a dictionary with the key words for the specific distribution,for example:
nz_model_2: dist_prop = {alpha: 2, beta: 1.5}
nz_gaussian: dist_prop = {sigma: [0.25, 0.25]}
If we are using 2 tomographic bins in the latter
- Returns
red_args (dict) - a dictionary with the redshift and heights
-
pk_matter
(cosmo: dict, a_bary: float = 0.0) → Tuple[dict, dict][source]¶ Calculate the non-linear matter power spectrum
- Param
d (dict) - a dictionary with all the parameters (keys and values)
- Returns
pk_matter (np.ndarray), quant (dict) - an array for the non-linear matter power spectrum and a dictionary with the important quantities related to cosmology
-
wl_power_spec
(cosmo: dict, a_bary: float = 0.0) → Tuple[dict, dict, dict][source]¶ Power spectrum calculation using the functional form of the n(z) distribution
- Param
d (dict) - a dictionary for the parameters
- Returns
cl_ee (dict) - the auto- and cross- EE power spectra
- Returns
cl_gi (dict) - the auto- and cross- GI power spectra
- Returns
cl_ii (dict) - the auto- and cross- II power spectra
-