lsst.ip.diffim g174f8ebed5+ec711f8d5b
Loading...
Searching...
No Matches
lsst.ip.diffim.modelPsfMatch Namespace Reference

Classes

class  WarpedPsfTransformTooBigError
class  PsfComputeShapeError
class  ModelPsfMatchConfig
class  ModelPsfMatchTask

Functions

 _safeEstimateRoughShape (psf, position, jitter=2.0, maxTries=5, log=None)
 nextOddInteger (x)

Variables

int sigma2fwhm = 2.*np.sqrt(2.*np.log(2.))

Function Documentation

◆ _safeEstimateRoughShape()

_safeEstimateRoughShape ( psf,
position,
jitter = 2.0,
maxTries = 5,
log = None )
protected
Try to compute the shape of `psf` at `position`.

If it fails, perturb the position until success or maxTries.

Parameters
----------
psf : `lsst.afw.detection.Psf`
    The PSF object.
position : `lsst.geom.Point2D`
    The nominal position at which to evaluate the PSF shape.
jitter : `float`
    Size of random offset in pixels to try when retrying.
maxTries : `int`
    Maximum number of attempts (including the original).
log : `lsst.utils.logging.LsstLogAdapter` optional
    logger to use for logging retries.

Returns
-------
shape : lsst.afw.geom.ellipses.Quadrupole
    The shape of the PSF at the (possibly perturbed) position.

Definition at line 48 of file modelPsfMatch.py.

◆ nextOddInteger()

nextOddInteger ( x)

Definition at line 97 of file modelPsfMatch.py.

Variable Documentation

◆ sigma2fwhm

int lsst.ip.diffim.modelPsfMatch.sigma2fwhm = 2.*np.sqrt(2.*np.log(2.))

Definition at line 45 of file modelPsfMatch.py.