lsst.ip.diffim g85f13b0223+f1007db366
Loading...
Searching...
No Matches
lsst.ip.diffim.modelPsfMatch Namespace Reference

Classes

class  ModelPsfMatchConfig
 
class  ModelPsfMatchTask
 
class  PsfComputeShapeError
 
class  WarpedPsfTransformTooBigError
 

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()

lsst.ip.diffim.modelPsfMatch._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()

lsst.ip.diffim.modelPsfMatch.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.