schechter_smf_redshift¶
- skypy.galaxies.redshift.schechter_smf_redshift(redshift, m_star, phi_star, alpha, m_min, m_max, sky_area, cosmology, noise=True)[source] [edit on github]¶
Sample redshifts from Schechter function.
Sample the redshifts of galaxies following a Schechter function with potentially redshift-dependent parameters, limited by stellar masses
m_max
andm_min
, for a sky areasky_area
.- Parameters:
- redshiftarray_like
Input redshift grid on which the Schechter function parameters are evaluated. Galaxies are sampled over this redshift range.
- m_stararray_like or function
Characteristic stellar mass of the Schechter function. Can be a single value, an array of values for each
redshift
, or a function of redshift.- phi_stararray_like or function
Normalisation of the Schechter function. Can be a single value, an array of values for each
redshift
, or a function of redshift.- alphaarray_like or function
Schechter function power law index. Can be a single value, an array of values for each
redshift
, or a function of redshift.- m_minfloat
Minimum stellar mass.
- m_maxfloat
Maximum stellar mass.
- sky_area
Quantity
Sky area over which galaxies are sampled. Must be in units of solid angle.
- cosmologyCosmology
Cosmology object to convert comoving density.
- noisebool, optional
Poisson-sample the number of galaxies. Default is
True
.
- Returns:
- redshiftsarray_like
Redshifts of the galaxy sample described by the Schechter function.