lsst.meas.algorithms
20.0.0-14-g05f4b37e+8af5b5fa39
|
Install a Gaussian PSF model in an exposure. More...
Public Member Functions | |
def | run (self, exposure) |
Set exposure's PSF to a simple PSF model. More... | |
Static Public Attributes | |
ConfigClass = InstallGaussianPsfConfig | |
Install a Gaussian PSF model in an exposure.
Install a Gaussian PSF model in an exposure. If the exposure already has a PSF model then the new model has the same sigma and size (width and height in pixels) of the existing model. If the exposure does not have a PSF model then the PSF sigma and size are taken from the config.
At present the produced model is always circularly symmetric, but it is planned to change this to an elliptical PSF model (only for the case that the exposure already has a PSF model), once the necessary PSF object is available.
A variant of this task may someday exist to estimate the PSF from the pixel data if no PSF model is present.
The main method is run
.
This task has no debug display
from lsst.afw.image import ExposureF from lsst.meas.algorithms.installGaussianPsf import InstallGaussianPsfTask, FwhmPerSigma exposure = ExposureF(100, 100) task = InstallGaussianPsfTask() task.run(exposure=exposure) # This particular exposure had no PSF model to begin with, so the new PSF model # uses the config's FWHM. However, measured FWHM is based on the truncated # PSF image, so it does not exactly match the input measFwhm = exposure.getPsf().computeShape().getDeterminantRadius() * FwhmPerSigma assert abs(measFwhm - task.config.fwhm) < 1e-3
Definition at line 61 of file installGaussianPsf.py.
def lsst.meas.algorithms.installGaussianPsf.InstallGaussianPsfTask.run | ( | self, | |
exposure | |||
) |
Set exposure's PSF to a simple PSF model.
The sigma and width of the new simple PSF model matches the sigma and width of the current model, if any, else the config parameters are used.
[in,out] | exposure | exposure to which to replace or add the PSF model |
Definition at line 125 of file installGaussianPsf.py.
|
static |
Definition at line 122 of file installGaussianPsf.py.