PsfexPsfDeterminerConfig#
- class lsst.meas.extensions.psfex.psfexPsfDeterminer.PsfexPsfDeterminerConfig(*args, **kw)#
Bases:
BasePsfDeterminerConfigAttributes Summary
List of mask bits which cause a source to be rejected as bad N.b.
Random seed to use to downsample candidates.
floor for variance is lam*data (
float, default0.05)Maximum number of candidates to consider.
Flux field to use for photometric normalization.
BASIS value given to psfex.
Should PSFEX be permitted to recentroid PSF candidates? (
bool, defaultFalse)for psf candidate evaluation (
float, default2.0)Should flagged centroids be rejected? Note that setting this to False additionally ignores aperture flux flags since those are tied together.
Resolution of the internal PSF model relative to the pixel size; e.g. 0.5 is equal to 2x oversampling (
float, default0.5).size of cell used to determine PSF (pixels, column direction) (
int, default256)size of cell used to determine PSF (pixels, row direction) (
int, default256)specify spatial order for PSF kernel creation (
int, default2)Rejection threshold (stdev) for candidates based on spatial fit (
float, default3.0)Size of the postage stamp (in native pixels) to render the PSF model.
tolerance of spatial fitting (
float, default0.01)Methods Summary
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, default98765)
- lam#
floor for variance is lam*data (
float, default0.05)
- maxCandidates#
Maximum number of candidates to consider. Will down-sample if given more. (
int, default300)
- photometricFluxField#
Flux field to use for photometric normalization. This overrides the
PHOTFLUX_KEYfield for psfex. The associated flux error is derived by appendingErrto 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, defaultFalse)
- reducedChi2ForPsfCandidates#
for psf candidate evaluation (
float, default2.0)
- rejectFlaggedCentroids#
Should flagged centroids be rejected? Note that setting this to False additionally ignores aperture flux flags since those are tied together. (
bool, defaultTrue)
- samplingSize#
Resolution of the internal PSF model relative to the pixel size; e.g. 0.5 is equal to 2x oversampling (
float, default0.5)
- sizeCellX#
size of cell used to determine PSF (pixels, column direction) (
int, default256)
- sizeCellY#
size of cell used to determine PSF (pixels, row direction) (
int, default256)
- spatialOrder#
specify spatial order for PSF kernel creation (
int, default2)
- spatialReject#
Rejection threshold (stdev) for candidates based on spatial fit (
float, default3.0)
- stampSize#
Size of the postage stamp (in native pixels) to render the PSF model. Should be odd. (
int, defaultNone)
- tolerance#
tolerance of spatial fitting (
float, default0.01)
Methods Documentation
- setDefaults()#
Subclass hook for computing defaults.
Notes#
Derived
Configclasses that must compute defaults rather than using theFieldinstances’s defaults should do so here. To correctly use inherited defaults, implementations ofsetDefaultsmust call their base class’ssetDefaults.
- 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
validatemethods.Complex single-field validation can be defined by deriving new Field types. For convenience, some derived
lsst.pex.config.Field-types (ConfigFieldandConfigChoiceField) are defined inlsst.pex.configthat handle recursing into subconfigs.Inter-field relationships should only be checked in derived
Configclasses after calling this method, and base validation is complete.