m52snr

rubin_sim.maf.utils.m52snr(m, m5)

Calculate the SNR for a star of magnitude m in an observation with 5-sigma limiting magnitude depth m5. Assumes gaussian distribution of photons and might not be strictly due in bluer filters. See table 2 and equation 5 in astroph/0805.2366.

Parameters:
mfloat or numpy.ndarray

The magnitude of the star

m5float or numpy.ndarray

The m5 limiting magnitude of the observation

Returns:
float or numpy.ndarray

The SNR