plima.backends.ccl.nla#
CCL backend helpers for NLA intrinsic alignment bias inputs.
This module connects PLIMA NLA amplitude models to the IA bias tuple expected by CCL weak lensing tracers.
CCL weak lensing tracers expect the conventional user facing A_IA(z)
amplitude when use_A_ia=True. CCL then applies the NLA normalization and
minus sign internally. Therefore this backend returns the physical PLIMA
amplitude directly and does not flip its sign.
Functions
|
Return a CCL IA bias tuple for NLA. |
- plima.backends.ccl.nla.make_ccl_nla_ia_bias(z, *, amplitude=None, a_ia=1.0)[source]#
Return a CCL IA bias tuple for NLA.
This backend follows the PLIMA user-facing convention that positive
A_IAcorresponds to a positive NLA amplitude. The returnedia_biasis the conventionalA_IA(z)tuple expected by CCL whenWeakLensingTracer(..., use_A_ia=True)is used.- Parameters:
z (ArrayLike) – Redshift values where the IA bias should be sampled.
amplitude (ArrayLike | float | None) – Optional precomputed positive physical NLA amplitude evaluated at
z. IfNone, the amplitude is computed fromnla_amplitude.a_ia (float) – Positive physical NLA amplitude normalization used when
amplitudeisNone.
- Returns:
Redshift values and conventional CCL
A_IA(z)values sampled on the same grid.- Return type:
tuple[NDArray[float64], NDArray[float64]]