Spectral Correlated Noise
- class galsim.CovarianceSpectrum(Sigma, SEDs)[source]
Class to hold a
ChromaticSum
noise covariance spectrum (which is a generalization of a power spectrum or equivalently a correlation function).Analogous to how a
galsim.CorrelatedNoise
object stores the variance and covariance of agalsim.Image
object, agalsim.CovarianceSpectrum
stores the variance and covariance of the Fourier mode amplitudes in different components of aChromaticSum
.Note that the covariance in question exists between different
SED
components 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
ChromaticSum
components whose Fourier mode amplitude covariances are described by the correspondingGSObject
values.SEDs –
SED
instances of associatedChromaticSum
components.
- toNoise(bandpass, PSF, wcs, rng=None)[source]
Derive the
CorrelatedNoise
object for the associatedChromaticSum
when convolved withPSF
and drawn throughbandpass
onto pixels with specifiedwcs
.- Parameters:
bandpass –
Bandpass
object 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.