absolute_magnitude_to_luminosity¶
-
cosmo_utils.mock_catalogues.mags_calculations.
absolute_magnitude_to_luminosity
(abs_mag, filter_opt, system='SDSS_Blanton_2003_z0.1')[source] [edit on github]¶ Calculates the luminosity of the object through
filter_opt
filter.Parameters: abs_mag : float, int, or array_like
Absolute magnitude of one or multiple objects.
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: log_L : float or array_like
Logarithmic value of the luminosity in the
filter_opt
band.Raises: LSSUtils_Error : Exception
Program exception if input parameters are accepted