luminosity_to_absolute_mag¶
-
cosmo_utils.mock_catalogues.mags_calculations.
luminosity_to_absolute_mag
(lum, filter_opt, system='SDSS_Blanton_2003_z0.1')[source] [edit on github]¶ Calculates the absolute magnitude of object through the
filter_opt
filter.Parameters: lum : float, int, array_like
Luminosity of 1 or more objects. In units of
solar luminosities
.filter_opt : {‘U’, ‘B’, ‘V’, ‘R’, ‘I’, ‘J’, ‘H’, ‘K’} str
Magnitude filter to use.
system : {‘Binney_and_Merrifield_1998’, ‘SDSS_Blanton_2003_z0.1’} str
Kind of filter to use.
- Options:
- ‘Binney_and_Merrifield_1998’ : See Binney and Merrifield, 1998
- ‘SDSS_Blanton_2003_z0.1’ : See Blanton et al. (2003) Eqn. 14.
Returns: abs_mag : float, int, or array_like
Absolute magnitude of one or multiple objects. Same type as
lum
Raises: LSSUtils_Error : Exception
Program exception if input parameters are accepted