Formula used in the simulation¶
SN Ia flux and distance moduli¶
The flux of a SN Ia in a band b at the obs-frame phase p is simulate by sncosmo with the following formula :
where \(\mathbf{\phi_b}\) is the restframe flux density and \(\mathbf{\lambda}\) the obs-frame wavelength.
The flux is re-scaled in ADU units by applying the following factor:
The observed magnitude is given by the absolute magnitude \(\mathbf{M_B}\) and the distance moduli \(\mathbf{\mu}\) :
In the simulation :math:`mu` is computed as:
with :
\(\mathbf{z_{cos}}\) the cosmological redshift
\(\mathbf{z_{vp}}\) the redshift due to the peculiar velocity of the SN / CMB
\(\mathbf{z_{2cmb}}\) the redshift due to our peculiar motion / CMB
\(\mathbf{r(z)}\) the comoving distance
Noise formula¶
The flux error is computed as :
The first term is the Poisson noise with G the gain in $ e^- $ / ADU.
The second term is the noise from sky flux.
If you use limiting magnitude at 5σ, sky-noise is computed as :
The last term is the propagation of the zero point incertitude.