AddNoiseGalSet

Adds random noise to a set of galaxy images. Several models available, currently the "SNAP" model and the "Gaussian" model. The SNAP model adds noise from the Poisson distribution with a mean of NumExp*ExposureTime*(DarkNoise+ZodieNoise)+N*ReadNoise^2. The Gaussian model adds noise drawn from a gaussian distribution with a mean of zero, and a specified sigma. This module can optionally create backup copies of any modified images. This module will modify the values in the galaxy set.

Parameters
NameTypeDescription
Model string "SNAP" or "Gaussian". If SNAP, create
Sigma double Sigma width for the Gaussian model. Unused otherwise.
NumberExposures int Number of exposures that went in to each image. Used by SNAP model
ExposureTime double Length of each exposure in seconds. Used by SNAP model.
DarkNoise double Level of dark noise, in counts per second. Used by SNAP model.
ZodieNoise double Level of zodie noise, in counts per second. Used by SNAP model.
ReadNoise double Level of read noise, in sqrt(counts/second). Used by SNAP model.
UseBackup keyword Add noise to backed up images.
MakeBackup keyword Make a backup of images, and modify the originals.
Verbose keyword Print out additional debugging information.

Inputs
NameTypeDescription
GalSet/BiasedCount int Number of biased galaxy images.
GalSet/UnbiasedCount int Number of unbiased galaxy images.
GalSet/Width int Width of each image in pixels.
GalSet/Height int Height of each image in pixels.
GalSet/BiasedImages double* If UseBackup is not set, these are the biased image inputs. The values in this array are modified in this case.
GalSet/UnbiasedImages double* If UseBackup is not set, these are the unbiased images inputs. The values in this array are modified in this case.
GalSet/OriginalBiasedImages double* If UseBackup is set, these are the biased image inputs. These values will not be modified.
GalSet/OriginalUnbiasedImages double* If UseBackup is set, these are the unbaised image inputs. These values will not be modified.

Outputs
NameTypeDescription
GalSet/BiasedImages double* If UseBackup is set, the values of OriginalBiasedImages will be copied to this value with the noise added.
GalSet/UnbiasedImages double* If UseBackup is set, the values of OriginalUnbiasedImages will be copied to this value with the noise added.
GalSet/OriginalBiasedImages double* If MakeBackup is set, the values of BiasedImages will be copied to this values before noise is added.
GalSet/OriginalUnbiasedImages double* If MakeBackup is set, the values of UnbiasedImages will be copied to this values before noise is added.