get_sun_mag

cosmo_utils.mock_catalogues.mags_calculations.get_sun_mag(filter_opt, system='SDSS_Blanton_2003_z0.1')[source] [edit on github]

Get solar absolaute magnitude for a filter in a system. Taken from Duncan Campbell, and later modified.

Parameters:

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_sun : float

Solar absolute magnitude in filter_opt using system parameters.

Raises:

LSSUtils_Error : Exception

Program exception if input parameters are accepted

Examples

>>> get_sun_mag('R', 'Binney_and_Merrifield_1998')
4.42
>>> get_sun_mag('V', 'Binney_and_Merrifield_1998')
4.83
>>> get_sun_mag('g', 'SDSS_Blanton_2003_z0.1')
5.45