target.host#

skysurvey.target.host.get_sfr_as_function_of_mass_and_redshift(mass, redshift)[source]#

Get the star formation rate as a function of mass and redshift.

This is based on equation A.7 from Childress et al. 2014, used in Wiseman et al. 2021.

Parameters:
  • mass (float or array) – The mass of the host galaxy.

  • redshift (float or array) – The redshift of the host galaxy.

Returns:

The star formation rate.

Return type:

float or array

skysurvey.target.host.get_schechterpdf(mass, mstar, alpha, phi, alpha2=None, phi2=None)[source]#

Get the Schechter probability density function.

Parameters:
  • mass (float or array) – Stellar mass value(s) at which to evaluate the Schechter function.

  • mstar (float or array) – Characteristic stellar mass defining the exponential cutoff at higher masses.

  • alpha (float) – Low-mass end slope of the Schechter function.

  • phi (float) – Normalization of the Schechter function.

  • alpha2 (None, float, optional) – Second low-mass end slope (for double Schechter). By default None.

  • phi2 (None, float, optional) – Second normalization of the Schechter function (for double Schechter). By default None.

Returns:

The single or double Schechter pdf.

Return type:

float or array

skysurvey.target.host.get_stellarmassfunction(redshift, which='all', xx='6:13:100j')[source]#

Get the stellar mass function.

Parameters:
  • redshift (float or array) – The redshift of the host galaxy.

  • which (str, optional) – Which stellar mass function to use. Can be “all”, “blue”, or “red”. The default is “all”.

  • xx (str, optional) – The mass range to use. The default is “6:13:100j”.

Returns:

A tuple containing the mass array and the pdf.

Return type:

tuple