Nuisance#
- class cosmicjellyfish.cosmology.nuisance.Nuisance(configuration=None, spectrobiasparams=None, spectrononlinearpars=None, IMbiasparams=None)[source]#
Bases:
object- gcph_bias(biaspars, ibin=1)[source]#
Galaxy bias
- Parameters:
z (
array) – redshift- Returns:
Value galaxy bias at redshift z
- Return type:
- IA(IApars, cosmo)[source]#
Intrinsic Alignment
- Parameters:
z – float redshift
- Returns:
float: Value of IA window at redshift z
- Notes:
Implements the following equation:
\[W_i^{IA} = -\frac{\mathcal{A}_{\rm IA}C_{\rm IA}\Omega_m\mathcal{F}_{\rm IA}}{D(z)} \frac{n_i(z)}{\bar{n}}\frac{H(z)}{c}\]
- luminosity_ratio()[source]#
Luminosity ratio function used for Intrinsic Alignment eNLA model.
This function reads and interpolates the luminosity ratio <L(z)>/L*(z) from a file. The ratio is used in the extended nonlinear alignment (eNLA) model for intrinsic alignments.
- Parameters:
None
- Returns:
An interpolation function that takes redshift z as input and returns the luminosity ratio. If the luminosity ratio file cannot be loaded, returns a function that always returns 1.0.
- Return type:
callable
Notes
Attempts to read the luminosity ratio from ‘lumratio_file.dat’ in the specs directory
The file should contain two columns: redshift and luminosity ratio values
- The luminosity ratio represents <L(z)>/L*(z), where:
<L(z)> is the mean luminosity at redshift z
L*(z) is the characteristic luminosity at redshift z
Uses linear interpolation between data points
- gcsp_bias_interp()[source]#
Galaxy bias for the galaxies used in spectroscopic Galaxy Clustering
- Returns:
Interpolating functionofbias for the redshift bins given
Note
Reads from file and interpolates for a given survey
- IM_bias_fitting(z)[source]#
IM 21cm HI bias function from https://arxiv.org/abs/2006.05996
- IM_THI_noise()[source]#
Create interpolation function for HI intensity mapping system noise temperature.
Creates a spline interpolation of the system noise temperature (T_sys) as a function of redshift for HI intensity mapping observations. The noise temperature data is read from the survey specifications.
- Returns:
Interpolation function that takes redshift as input and returns the corresponding system noise temperature in Kelvin.
- Return type:
UnivariateSpline
Notes
- The survey specifications must contain a ‘THI_sys_noise’ dictionary with:
- ‘z_vals_THI’array-like
Redshift values where noise temperature is defined
- ‘THI_sys_noise’array-like
System noise temperature values in Kelvin corresponding to each redshift