mag_to_photons

simcado.source.mag_to_photons(filter_name, magnitude=0)[source]

Return the number of photons for a certain filter and magnitude

Parameters
filter_namestr

filter name. See simcado.optics.get_filter_set()

magnitudefloat

[mag] the source brightness

Returns
fluxfloat

[ph/s/m2] Photon flux in the given filter