Spectral Correlated Noise
- class galsim.CovarianceSpectrum(Sigma, SEDs)[source]
Class to hold a
ChromaticSumnoise covariance spectrum (which is a generalization of a power spectrum or equivalently a correlation function).Analogous to how a
galsim.CorrelatedNoiseobject stores the variance and covariance of agalsim.Imageobject, agalsim.CovarianceSpectrumstores the variance and covariance of the Fourier mode amplitudes in different components of aChromaticSum.Note that the covariance in question exists between different
SEDcomponents of theChromaticSum, and not between different Fourier modes, which are assumed to be uncorrelated. This structure arises naturally for aChromaticRealGalaxy(see devel/modules/CGNotes.pdf for more details).- Parameters:
Sigma – A dictionary whose keys are tuples numerically indicating a pair of
ChromaticSumcomponents whose Fourier mode amplitude covariances are described by the correspondingGSObjectvalues.SEDs –
SEDinstances of associatedChromaticSumcomponents.
- toNoise(bandpass, PSF, wcs, rng=None)[source]
Derive the
CorrelatedNoiseobject for the associatedChromaticSumwhen convolved withPSFand drawn throughbandpassonto pixels with specifiedwcs.- Parameters:
bandpass –
Bandpassobject representing filter image is drawn through.PSF – output chromatic PSF to convolve by.
wcs – WCS of output pixel scale.
rng – Random number generator to forward to resulting CorrelatedNoise object.
- Returns:
CorrelatedNoise object.