Now according to the documentation if the gain is >0, the sky_level should be in ADU per pixel and the read noise in electrons. So it never makes sense to divide both of them by the gain, no? If we want to return the variance in ADU then only the read noise needs to be divided by the gain and if we want to return the variance in electrons then the sky level should actually be multiplied by the gain. Am I missing something here?
Hi all,
a very minor thing, but is the
_get_variance()
function ofgalsim.CCDNoise
correct? It is defined as the following:Now according to the documentation if the
gain
is >0, thesky_level
should be in ADU per pixel and the read noise in electrons. So it never makes sense to divide both of them by the gain, no? If we want to return the variance in ADU then only the read noise needs to be divided by the gain and if we want to return the variance in electrons then the sky level should actually be multiplied by the gain. Am I missing something here?