lsst.cp.pipe
20.0.0-8-gea2affd+05e11544cc
|
Public Member Functions | |
def | __init__ (self, diff, w, fftShape, maxRangeCov) |
def | cov (self, dx, dy) |
def | reportCovFft (self, maxRange) |
Public Attributes | |
pCov | |
pMean | |
pCount | |
A class to compute (via FFT) the nearby pixels correlation function. Implements appendix of Astier+19. Parameters ---------- diff: `numpy.array` Image where to calculate the covariances (e.g., the difference image of two flats). w: `numpy.array` Weight image (mask): it should consist of 1's (good pixel) and 0's (bad pixels). fftShape: `tuple` 2d-tuple with the shape of the FFT maxRangeCov: `int` Maximum range for the covariances.
Definition at line 28 of file astierCovPtcUtils.py.
def lsst.cp.pipe.astierCovPtcUtils.CovFft.__init__ | ( | self, | |
diff, | |||
w, | |||
fftShape, | |||
maxRangeCov | |||
) |
Definition at line 48 of file astierCovPtcUtils.py.
def lsst.cp.pipe.astierCovPtcUtils.CovFft.cov | ( | self, | |
dx, | |||
dy | |||
) |
Covariance for dx,dy averaged with dx,-dy if both non zero. Implements appendix of Astier+19. Parameters ---------- dx: `int` Lag in x dy: `int Lag in y Returns ------- 0.5*(cov1+cov2): `float` Covariance at (dx, dy) lag npix1+npix2: `int` Number of pixels used in covariance calculation.
Definition at line 66 of file astierCovPtcUtils.py.
def lsst.cp.pipe.astierCovPtcUtils.CovFft.reportCovFft | ( | self, | |
maxRange | |||
) |
Produce a list of tuples with covariances. Implements appendix of Astier+19. Parameters ---------- maxRange: `int` Maximum range of covariances. Returns ------- tupleVec: `list` List with covariance tuples.
Definition at line 96 of file astierCovPtcUtils.py.
lsst.cp.pipe.astierCovPtcUtils.CovFft.pCount |
Definition at line 64 of file astierCovPtcUtils.py.
lsst.cp.pipe.astierCovPtcUtils.CovFft.pCov |
Definition at line 60 of file astierCovPtcUtils.py.
lsst.cp.pipe.astierCovPtcUtils.CovFft.pMean |
Definition at line 62 of file astierCovPtcUtils.py.