PsfexPsfDeterminerConfig#

class lsst.meas.extensions.psfex.psfexPsfDeterminer.PsfexPsfDeterminerConfig(*args, **kw)#

Bases: BasePsfDeterminerConfig

Attributes Summary

badMaskBits

List of mask bits which cause a source to be rejected as bad N.b.

downsampleRandomSeed

Random seed to use to downsample candidates.

lam

floor for variance is lam*data (float, default 0.05)

maxCandidates

Maximum number of candidates to consider.

photometricFluxField

Flux field to use for photometric normalization.

psfexBasis

BASIS value given to psfex.

recentroid

Should PSFEX be permitted to recentroid PSF candidates? (bool, default False)

reducedChi2ForPsfCandidates

for psf candidate evaluation (float, default 2.0)

rejectFlaggedCentroids

Should flagged centroids be rejected? Note that setting this to False additionally ignores aperture flux flags since those are tied together.

samplingSize

Resolution of the internal PSF model relative to the pixel size; e.g. 0.5 is equal to 2x oversampling (float, default 0.5).

sizeCellX

size of cell used to determine PSF (pixels, column direction) (int, default 256)

sizeCellY

size of cell used to determine PSF (pixels, row direction) (int, default 256)

spatialOrder

specify spatial order for PSF kernel creation (int, default 2)

spatialReject

Rejection threshold (stdev) for candidates based on spatial fit (float, default 3.0)

stampSize

Size of the postage stamp (in native pixels) to render the PSF model.

tolerance

tolerance of spatial fitting (float, default 0.01)

Methods Summary

setDefaults()

Subclass hook for computing defaults.

validate()

Validate the Config, raising an exception if invalid.

Attributes Documentation

badMaskBits#

List of mask bits which cause a source to be rejected as bad N.b. INTRP is used specially in PsfCandidateSet; it means “Contaminated by neighbour” (List, default ['INTRP', 'SAT'])

downsampleRandomSeed#

Random seed to use to downsample candidates. (int, default 98765)

lam#

floor for variance is lam*data (float, default 0.05)

maxCandidates#

Maximum number of candidates to consider. Will down-sample if given more. (int, default 300)

photometricFluxField#

Flux field to use for photometric normalization. This overrides the PHOTFLUX_KEY field for psfex. The associated flux error is derived by appending Err to this field. (str, default 'base_CircularApertureFlux_9_0_instFlux')

psfexBasis#

BASIS value given to psfex. PIXEL_AUTO will use the requested samplingSize only if the FWHM < 3 pixels. Otherwise, it will use samplingSize=1. PIXEL will always use the requested samplingSize (str, default 'PIXEL_AUTO')

Allowed values:

'PIXEL'

Always use requested samplingSize

'PIXEL_AUTO'

Only use requested samplingSize when FWHM < 3

recentroid#

Should PSFEX be permitted to recentroid PSF candidates? (bool, default False)

reducedChi2ForPsfCandidates#

for psf candidate evaluation (float, default 2.0)

rejectFlaggedCentroids#

Should flagged centroids be rejected? Note that setting this to False additionally ignores aperture flux flags since those are tied together. (bool, default True)

samplingSize#

Resolution of the internal PSF model relative to the pixel size; e.g. 0.5 is equal to 2x oversampling (float, default 0.5)

sizeCellX#

size of cell used to determine PSF (pixels, column direction) (int, default 256)

sizeCellY#

size of cell used to determine PSF (pixels, row direction) (int, default 256)

spatialOrder#

specify spatial order for PSF kernel creation (int, default 2)

spatialReject#

Rejection threshold (stdev) for candidates based on spatial fit (float, default 3.0)

stampSize#

Size of the postage stamp (in native pixels) to render the PSF model. Should be odd. (int, default None)

tolerance#

tolerance of spatial fitting (float, default 0.01)

Methods Documentation

setDefaults()#

Subclass hook for computing defaults.

Notes#

Derived Config classes that must compute defaults rather than using the Field instances’s defaults should do so here. To correctly use inherited defaults, implementations of setDefaults must call their base class’s setDefaults.

validate()#

Validate the Config, raising an exception if invalid.

Raises#

lsst.pex.config.FieldValidationError

Raised if verification fails.

Notes#

The base class implementation performs type checks on all fields by calling their validate methods.

Complex single-field validation can be defined by deriving new Field types. For convenience, some derived lsst.pex.config.Field-types (ConfigField and ConfigChoiceField) are defined in lsst.pex.config that handle recursing into subconfigs.

Inter-field relationships should only be checked in derived Config classes after calling this method, and base validation is complete.