plima.backends.ccl.tatt#
CCL backend helpers for TATT intrinsic alignment power spectra.
This module connects PLIMA TATT amplitude models to CCL PT tracers and Pk2D objects.
The model normalization lives in plima.models.tatt. This file only handles
CCL specific objects such as PTIntrinsicAlignmentTracer,
PTMatterTracer, EulerianPTCalculator, WeakLensingTracer, and
Pk2D.
For TATT, IA amplitudes are included in the perturbation theory Pk2D
objects. These spectra should be passed to ccl.angular_cl through
p_of_k_a. The IA only weak lensing tracer should use a unity IA bias.
Functions
|
Return a CCL Eulerian PT calculator. |
|
Return a CCL weak lensing tracer containing only IA response. |
Return a CCL PT matter tracer. |
|
|
Return CCL Pk2D objects for TATT matter IA and IA IA spectra. |
|
Return CCL TATT PT tracers and Pk2D spectra. |
|
Return a CCL PT intrinsic alignment tracer for TATT. |
- plima.backends.ccl.tatt.make_ccl_eulerian_pt_calculator(*, with_number_counts=False, with_ia=True, log10k_min=-4.0, log10k_max=2.0, nk_per_decade=20, **kwargs)[source]#
Return a CCL Eulerian PT calculator.
- Parameters:
with_number_counts (bool) – Whether to initialize number count PT terms.
with_ia (bool) – Whether to initialize IA PT terms.
log10k_min (float) – Minimum
log10(k)for PT sampling.log10k_max (float) – Maximum
log10(k)for PT sampling.nk_per_decade (int) – Number of k samples per decade.
**kwargs (Any) – Extra keyword arguments passed to CCL.
- Returns:
CCL
EulerianPTCalculator.
- plima.backends.ccl.tatt.make_ccl_ia_only_wl_tracer(cosmo, z, nz)[source]#
Return a CCL weak lensing tracer containing only IA response.
This tracer is intended for TATT PT spectra. The IA amplitude is set to unity because the TATT amplitudes are already included in the
Pk2Dobject passed toccl.angular_cl.- Parameters:
cosmo – CCL cosmology object.
z (ArrayLike) – Redshift values for the source distribution.
nz (ArrayLike) – Source redshift distribution values.
- Returns:
CCL
WeakLensingTracerwithhas_shear=Falseand unity IA bias.- Raises:
ValueError – If any redshift value is not finite.
ValueError – If any redshift value is less than or equal to
-1.ValueError – If
nzdoes not have the same shape asz.
- plima.backends.ccl.tatt.make_ccl_tatt_pk2d(*, pt_calculator, ia_tracer, matter_tracer=None, return_ia_bb=False)[source]#
Return CCL Pk2D objects for TATT matter IA and IA IA spectra.
- Parameters:
pt_calculator – CCL PT calculator.
ia_tracer – CCL PT intrinsic alignment tracer.
matter_tracer – Optional CCL PT matter tracer. If
None, one is made.return_ia_bb (bool) – Whether to also compute the IA B mode auto spectrum.
- Returns:
Dictionary containing CCL
Pk2Dobjects.- Return type:
dict[str, Any]
- plima.backends.ccl.tatt.make_ccl_tatt_power_spectra(cosmo, z, *, a1=1.0, a2=0.0, a1delta=0.0, eta1=0.0, eta2=0.0, eta1delta=0.0, z_pivot=0.62, c1_rho_critical=0.0134, omega_m_fid=0.3, use_omega_m_squared_for_c2=False, pt_calculator=None, matter_tracer=None, return_ia_bb=False, calculator_kwargs=None)[source]#
Return CCL TATT PT tracers and Pk2D spectra.
- Parameters:
cosmo – CCL cosmology object.
z (ArrayLike) – Redshift values used for IA bias sampling.
a1 (float) – Linear tidal alignment amplitude at the pivot redshift.
a2 (float) – Quadratic tidal torquing amplitude at the pivot redshift.
a1delta (float) – Source density weighting amplitude at the pivot redshift.
eta1 (float) – Redshift evolution index for
a1.eta2 (float) – Redshift evolution index for
a2.eta1delta (float) – Redshift evolution index for
a1delta.z_pivot (float) – Pivot redshift.
c1_rho_critical (float) – IA normalization constant.
omega_m_fid (float) – Fiducial matter density parameter used by one
c2convention.use_omega_m_squared_for_c2 (bool) – If true, use the convention with
omega_m ** 2 / omega_m_fidforc2.pt_calculator – Optional existing CCL PT calculator.
matter_tracer – Optional existing CCL matter PT tracer.
return_ia_bb (bool) – Whether to also compute the IA B mode auto spectrum.
calculator_kwargs (dict[str, Any] | None) – Keyword arguments used if a PT calculator is made.
- Returns:
Dictionary containing the IA tracer, matter tracer, PT calculator, and TATT
Pk2Dspectra.- Return type:
dict[str, Any]
- plima.backends.ccl.tatt.make_ccl_tatt_pt_tracer(z, *, growth_factor, omega_m, a1=1.0, a2=0.0, a1delta=0.0, eta1=0.0, eta2=0.0, eta1delta=0.0, z_pivot=0.62, c1_rho_critical=0.0134, omega_m_fid=0.3, use_omega_m_squared_for_c2=False)[source]#
Return a CCL PT intrinsic alignment tracer for TATT.
- Parameters:
z (ArrayLike) – Redshift values.
growth_factor (ArrayLike) – Linear growth factor evaluated at
z.omega_m (float) – Matter density parameter for the cosmology.
a1 (float) – Linear tidal alignment amplitude at the pivot redshift.
a2 (float) – Quadratic tidal torquing amplitude at the pivot redshift.
a1delta (float) – Source density weighting amplitude at the pivot redshift.
eta1 (float) – Redshift evolution index for
a1.eta2 (float) – Redshift evolution index for
a2.eta1delta (float) – Redshift evolution index for
a1delta.z_pivot (float) – Pivot redshift.
c1_rho_critical (float) – IA normalization constant.
omega_m_fid (float) – Fiducial matter density parameter used by one
c2convention.use_omega_m_squared_for_c2 (bool) – If true, use the convention with
omega_m ** 2 / omega_m_fidforc2.
- Returns:
CCL
PTIntrinsicAlignmentTracer.