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 a- galsim.Imageobject, a- galsim.CovarianceSpectrumstores the variance and covariance of the Fourier mode amplitudes in different components of a- ChromaticSum.- Note that the covariance in question exists between different - SEDcomponents of the- ChromaticSum, and not between different Fourier modes, which are assumed to be uncorrelated. This structure arises naturally for a- ChromaticRealGalaxy(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 corresponding- GSObjectvalues.
- SEDs – - SEDinstances of associated- ChromaticSumcomponents.
 
 - toNoise(bandpass, PSF, wcs, rng=None)[source]
- Derive the - CorrelatedNoiseobject for the associated- ChromaticSumwhen convolved with- PSFand drawn through- bandpassonto pixels with specified- wcs.- 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.