scopesim.effects.ter_curves_utils.zero_mag_flux

Contents

scopesim.effects.ter_curves_utils.zero_mag_flux#

scopesim.effects.ter_curves_utils.zero_mag_flux(filter_name, photometric_system, return_filter=False)#

Return the zero magnitude photon flux for a filter.

Acceptable filter names are those given in scopesim.effects.ter_curves_utils.FILTER_DEFAULTS or a string with an appropriate name for a filter in the Spanish-VO filter-service. Such strings must use the naming convention: observatory/instrument.filter. E.g: “paranal/HAWKI.Ks”, or “Gemini/GMOS-N.CaT”.

Parameters:
  • filter_name (str) – Name of the filter - see above.

  • photometric_system ({"vega", "AB", "ST"}) – Name of the photometric system

  • return_filter (bool, optional) – If True, also returns the filter curve object

Returns:

  • flux (float) – [PHOTLAM]

  • filt (synphot.SpectralElement) – If return_filter is True