FinalizeCharacterizationDetectorTask¶
FinalizeCharacterizationDetectorTask is a task to rerun image characterization (determine the PSF model and measure aperture corrections) after initial characterization, calibration, and isolated star association.
Currently, this allows PSF stars to be reserved consistently for all overlapping visits/detectors.
This task differs from FinalizeCharacterizationTask in that it runs per-detector and thus allows for greater parallelization.
However, it means that this task cannot allow PSF and aperture correction modeling to utilize full visits.
Running this task should be followed by running lsst.pipe.tasks.finalizeCharacterization.ConsolidateFinalizeCharacterizationDetectorTask to make the full exposure catalog containing all the detectors in the visit for downstream consumption.
Processing summary¶
FinalizeCharacterizationDetectorTask first reads the isolated source association table to get a list of PSF modeling and reserve stars that is consistent across overlapping visits, and then runs PSF modeling and aperture correction modeling per detector.
In the first stage, the task will:
- Read in - isolated_star_catand- isolated_star_sourcesfor all tracts that overlap the given visit.
- Select isolated sources that have been detected in the band of the visit. 
- Reserve a configurable fraction of these isolated sources using the task configured in - config.reserve_selection.
In the second stage, the task will run per-detector:
- Select sources ( - src) from the calibrated exposure (- calexp) above a configurable signal-to-noise.
- Match by source id to the - isolated_star_sourcesand mark PSF candidate and reserve stars.
- Make PSF candidates using the task configured in - config.make_psf_candidates.
- Determine the PSF using the configured PSF determination task configured in - config.psf_determiner.
- Run measurement on the PSF candidate, used, and reserved stars using the task configured in - config.measurement.
- Run the aperture correction measurement task configured in - config.measure_ap_corrusing the PSF stars.
- Run the aperture correction application task configured in - config.apply_ap_corron the PSF stars.
The task returns an exposure catalog containing the PSF model for the detector and the aperture correction map, and an astropy table with all the measurements and flags are returned for persistence.
Python API summary¶
from lsst.pipe.tasks.finalizeCharacterization import FinalizeCharacterizationDetectorTask
- 
classFinalizeCharacterizationDetectorTask(initInputs=None, **kwargs)
- Run final characterization per detector - ...
- attributeconfig
- Access configuration fields and retargetable subtasks. 
- 
methodrun(visit, band, detector, isolated_star_cat_dict, isolated_star_source_dict, src, exposure)
- Run the FinalizeCharacterizationDetectorTask - ...
See also
See the FinalizeCharacterizationDetectorTask API reference for complete details.
Retargetable subtasks¶
apply_ap_corr¶
- Default
- Field type
Subtask to apply aperture corrections
make_psf_candidates¶
Task to make psf candidates from selected stars.
measure_ap_corr¶
- Default
- Field type
Subtask to measure aperture corrections
measurement¶
- Default
- Field type
Measure sources for aperture corrections
psf_determiner¶
- Default
- 'piff'
- Field type
- Single-selection - RegistryField
- Choices
- 'pca'
- 'psfex'
- lsst.meas.extensions.psfex.psfexPsfDeterminer.PsfexPsfDeterminerTask
- 'piff'
- lsst.meas.extensions.piff.piffPsfDeterminer.PiffPsfDeterminerTask
 
PSF Determination algorithm
reserve_selection¶
Task to select reserved stars
source_selector¶
- Default
- 'science'
- Field type
- Single-selection - RegistryField
- Choices
- 'science'
- lsst.meas.algorithms.sourceSelector.ScienceSourceSelectorTask
- 'references'
- lsst.meas.algorithms.sourceSelector.ReferenceSourceSelectorTask
- 'null'
- lsst.meas.algorithms.sourceSelector.NullSourceSelectorTask
- 'objectSize'
- lsst.meas.algorithms.objectSizeStarSelector.ObjectSizeStarSelectorTask
- 'flagged'
- lsst.meas.algorithms.flaggedSourceSelector.FlaggedSourceSelectorTask
 
How to select sources
Configuration fields¶
connections¶
- Data type
- lsst.pipe.base.config.FinalizeCharacterizationDetectorConfigConnections
- Field type
Configurations describing the connections of the PipelineTask to datatypes
id_column¶
Name of column in isolated_star_sources with source id.
saveLogOutput¶
Flag to enable/disable saving of log output for a task, enabled by default.