schechter_lf_magnitude

skypy.galaxies.luminosity.schechter_lf_magnitude(redshift, M_star, alpha, m_lim, cosmology, size=None, x_max=1000.0, resolution=1000)[source] [edit on github]

Sample magnitudes from a Schechter luminosity function.

Given a list of galaxy redshifts, and an apparent magnitude limit, sample galaxy absolute magnitudes from a Schechter luminosity function.

Parameters:
redshiftarray_like

Galaxy redshifts for which to sample magnitudes.

M_stararray_like or function

Characteristic absolute magnitude, either constant, or an array with values for each galaxy, or a function of galaxy redshift.

alphaarray_like or function

Schechter function index, either a constant, or an array of values for each galaxy, or a function of galaxy redshift.

m_limfloat

Apparent magnitude limit.

cosmologyCosmology

Cosmology object for converting apparent and absolute magnitudes.

sizeint, optional

Explicit size for the sampling. If not given, one magnitude is sampled for each redshift.

Returns:
magnitudearray_like

Absolute magnitude sampled from a Schechter luminosity function for each input galaxy redshift.