photons_to_mag¶
-
simcado.source.
photons_to_mag
(filter_name, photons=1)[source]¶ Return the number of photons for a certain filter and magnitude
- Parameters
- filter_namestr
filter name. See simcado.optics.get_filter_set()
- photonsfloat
[ph/s/m2] the integrated photon flux for the filter
- Returns
- magfloat
The magnitude of an object with the given photon flux through the filter