photErrModel

lsst.validate.drp.matchreduce.photErrModel(mag, sigmaSys, gamma, m5, **kwargs)[source]

Fit model of photometric error from LSST Overview paper http://arxiv.org/abs/0805.2366v4

Photometric errors described by Eq. 4 sigma_1^2 = sigma_sys^2 + sigma_rand^2

Eq. 5 sigma_rand^2 = (0.04 - gamma) * x + gamma * x^2 [mag^2] where x = 10**(0.4*(m-m_5))

Parameters:

mag : list or numpy.array

Magnitude

sigmaSq : float

Limiting systematics floor [mag]

gamma : float

proxy for sky brightness and readout noise

m5 : float

5-sigma depth [mag]

Returns:

numpy.array

Result of noise estimation function