|
LSST Applications g00d0e8bbd7+edbf708997,g199a45376c+5137f08352,g1fd858c14a+48cd4dd530,g228ff663f5+2051e4e242,g262e1987ae+9c6f24d2e3,g29ae962dfc+03663621e0,g2cef7863aa+73c82f25e4,g35bb328faa+edbf708997,g3fd5ace14f+8c4d25a1ce,g47891489e3+27ba970c8a,g53246c7159+edbf708997,g5b326b94bb+db962c32ee,g64539dfbff+d237af7fd9,g67b6fd64d1+27ba970c8a,g74acd417e5+8234f56c0c,g786e29fd12+af89c03590,g87389fa792+a4172ec7da,g88cb488625+6878ed1c5e,g89139ef638+27ba970c8a,g8d7436a09f+f76ea57dde,g8ea07a8fe4+79658f16ab,g90f42f885a+6577634e1f,g97be763408+494f77a6c4,g98df359435+1750ea0126,g9b50b81019+d8f85438e7,ga2180abaac+edbf708997,ga9e74d7ce9+128cc68277,gad4c79568f+321c5e11c3,gbf99507273+edbf708997,gc2a301910b+d237af7fd9,gca7fc764a6+27ba970c8a,gcedae5159b+afaec0eb3d,gd7ef33dd92+27ba970c8a,gdab6d2f7ff+8234f56c0c,gdbb4c4dda9+d237af7fd9,ge410e46f29+27ba970c8a,ge41e95a9f2+d237af7fd9,geaed405ab2+062dfc8cdc,w.2025.45
LSST Data Management Base Package
|
Classes | |
| class | PiffPsfDeterminerConfig |
| class | PiffPsfDeterminerTask |
| class | PiffTooFewGoodStarsError |
Functions | |
| bool | _validateGalsimInterpolant (str name) |
| getGoodPixels (maskedImage, zeroWeightMaskBits) | |
| computeWeight (maskedImage, maxSNR, good) | |
| applyMaxSNR (imArr, weightArr, good, maxSNR) | |
| _computeWeightAlternative (maskedImage, maxSNR) | |
|
protected |
Alternative algorithm for creating weight map. This version is equivalent to that used by Piff internally. The weight map it produces tends to leave a residual when removing the Poisson component due to the signal. We leave it here as a reference, but without intending that it be used (or be maintained).
Definition at line 389 of file piffPsfDeterminer.py.
|
protected |
A helper function to validate the GalSim interpolant at config time.
Parameters
----------
name : str
The name of the interpolant to use from GalSim. Valid options are:
galsim.Lanczos(N) or Lancsos(N), where N is a positive integer
galsim.Linear
galsim.Cubic
galsim.Quintic
galsim.Delta
galsim.Nearest
galsim.SincInterpolant
Returns
-------
is_valid : bool
Whether the provided interpolant name is valid.
Definition at line 41 of file piffPsfDeterminer.py.
| lsst.meas.extensions.piff.piffPsfDeterminer.applyMaxSNR | ( | imArr, | |
| weightArr, | |||
| good, | |||
| maxSNR ) |
Rescale weight of bright stars to cap the computed SNR.
Parameters
----------
imArr : `ndarray`
Signal (image) array of stamp.
weightArr : `ndarray`
Weight map array. May be rescaled in place.
good : `ndarray`
Index array of pixels to use when computing SNR.
maxSNR : `float`
Threshold for adjusting variance plane implementing maximum SNR.
Definition at line 341 of file piffPsfDeterminer.py.
| lsst.meas.extensions.piff.piffPsfDeterminer.computeWeight | ( | maskedImage, | |
| maxSNR, | |||
| good ) |
Derive a weight map without Poisson variance component due to signal.
Parameters
----------
maskedImage : `afw.image.MaskedImage`
PSF candidate postage stamp
maxSNR : `float`
Maximum SNR applying variance floor.
good : `ndarray`
Index array indicating good pixels.
Returns
-------
weightArr : `ndarry`
Array to use for weight.
See Also
--------
`lsst.meas.algorithms.variance_plance.remove_signal_from_variance` :
Remove the Poisson contribution from sources in the variance plane of
an Exposure.
Definition at line 303 of file piffPsfDeterminer.py.
| lsst.meas.extensions.piff.piffPsfDeterminer.getGoodPixels | ( | maskedImage, | |
| zeroWeightMaskBits ) |
Compute an index array indicating good pixels to use.
Parameters
----------
maskedImage : `afw.image.MaskedImage`
PSF candidate postage stamp
zeroWeightMaskBits : `List[str]`
List of mask bits for which to set pixel weights to zero.
Returns
-------
good : `ndarray`
Index array indicating good pixels.
Definition at line 276 of file piffPsfDeterminer.py.