lsst.cp.pipe  21.0.0-23-gd55139e+de1523bd1f
Public Member Functions | Public Attributes | List of all members
lsst.cp.pipe.ptc.astierCovPtcUtils.CovFastFourierTransform Class Reference

Public Member Functions

def __init__ (self, diff, w, fftShape, maxRangeCov)
 
def cov (self, dx, dy)
 
def reportCovFastFourierTransform (self, maxRange)
 

Public Attributes

 pCov
 
 pMean
 
 pCount
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

def lsst.cp.pipe.ptc.astierCovPtcUtils.CovFastFourierTransform.__init__ (   self,
  diff,
  w,
  fftShape,
  maxRangeCov 
)

Definition at line 48 of file astierCovPtcUtils.py.

Member Function Documentation

◆ cov()

def lsst.cp.pipe.ptc.astierCovPtcUtils.CovFastFourierTransform.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.

◆ reportCovFastFourierTransform()

def lsst.cp.pipe.ptc.astierCovPtcUtils.CovFastFourierTransform.reportCovFastFourierTransform (   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.

Member Data Documentation

◆ pCount

lsst.cp.pipe.ptc.astierCovPtcUtils.CovFastFourierTransform.pCount

Definition at line 64 of file astierCovPtcUtils.py.

◆ pCov

lsst.cp.pipe.ptc.astierCovPtcUtils.CovFastFourierTransform.pCov

Definition at line 60 of file astierCovPtcUtils.py.

◆ pMean

lsst.cp.pipe.ptc.astierCovPtcUtils.CovFastFourierTransform.pMean

Definition at line 62 of file astierCovPtcUtils.py.


The documentation for this class was generated from the following file: