uvex_transients.utils.cosmology.star_formation_rate#

uvex_transients.utils.cosmology.star_formation_rate(z: float | NDArray[float64], shape: Literal['md14', 'mf17'] = 'md14', imf: Literal['salpeter', 'kroupa', 'chabrier'] = 'salpeter') → Quantity[source]#

Compute the cosmic star formation rate density.

\[\dot{\rho}_\star(z) = \rho_0\,\psi(z),\]

where \(\psi(z)\) is one of the two dimensionless redshift shapes below and \(\rho_0\) is the IMF-dependent prefactor in _SFR_NORMALIZATION.

Parameters:
  • z (float or ndarray) – Redshift.

  • shape ({"md14", "mf17"}, optional) – Cosmic star formation history prescription. "md14" uses Madau & Dickinson (2014, Madau and Dickinson[1]), while "mf17" uses Madau & Fragos (2017, Madau and Fragos[2]). Default is "md14".

  • imf ({"salpeter", "kroupa", "chabrier"}, optional) – Initial mass function used to calibrate the star formation rate. Default is "salpeter".

Returns:

Cosmic star formation rate density in \({\rm M_\odot\,yr^{-1}\,Mpc^{-3}}\).

Return type:

Quantity

Raises:

ValueError – If shape or imf is not one of the supported options.

References