|
| 1 | +.. lsst-task-topic:: lsst.pipe.tasks.finalizeCharacterization.FinalizeCharacterizationDetectorTask |
| 2 | + |
| 3 | +#################################### |
| 4 | +FinalizeCharacterizationDetectorTask |
| 5 | +#################################### |
| 6 | + |
| 7 | +`FinalizeCharacterizationDetectorTask` is a task to rerun image characterization (determine the PSF model and measure aperture corrections) after initial characterization, calibration, and isolated star association. |
| 8 | +Currently, this allows PSF stars to be reserved consistently for all overlapping visits/detectors. |
| 9 | +This task differs from :doc:`lsst.pipe.tasks.finalizeCharacterization.FinalizeCharacterizationTask` in that it runs per-detector and thus allows for greater parallelization. |
| 10 | +However, it means that this task cannot allow PSF and aperture correction modeling to utilize full visits. |
| 11 | + |
| 12 | +Running this task should be followed by running :doc:`lsst.pipe.tasks.finalizeCharacterization.ConsolidateFinalizeCharacterizationDetectorTask` to make the full exposure catalog containing all the detectors in the visit for downstream consumption. |
| 13 | + |
| 14 | +.. _lsst.pipe.tasks.finalizeCharacterization.FinalizeCharacterizationDetectorTask-summary: |
| 15 | + |
| 16 | +Processing summary |
| 17 | +================== |
| 18 | + |
| 19 | +`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. |
| 20 | +In the first stage, the task will: |
| 21 | + |
| 22 | +- Read in ``isolated_star_cat`` and ``isolated_star_sources`` for all tracts that overlap the given visit. |
| 23 | +- Select isolated sources that have been detected in the band of the visit. |
| 24 | +- Reserve a configurable fraction of these isolated sources using the task configured in ``config.reserve_selection``. |
| 25 | + |
| 26 | +In the second stage, the task will run per-detector: |
| 27 | + |
| 28 | +- Select sources (``src``) from the calibrated exposure (``calexp``) above a configurable signal-to-noise. |
| 29 | +- Match by source id to the ``isolated_star_sources`` and mark PSF candidate and reserve stars. |
| 30 | +- Make PSF candidates using the task configured in ``config.make_psf_candidates``. |
| 31 | +- Determine the PSF using the configured PSF determination task configured in ``config.psf_determiner``. |
| 32 | +- Run measurement on the PSF candidate, used, and reserved stars using the task configured in ``config.measurement``. |
| 33 | +- Run the aperture correction measurement task configured in ``config.measure_ap_corr`` using the PSF stars. |
| 34 | +- Run the aperture correction application task configured in ``config.apply_ap_corr`` on the PSF stars. |
| 35 | + |
| 36 | +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. |
| 37 | + |
| 38 | +.. _lsst.pipe.tasks.finalizeCharacterization.FinalizeCharacterizationDetectorTask-api: |
| 39 | + |
| 40 | +Python API summary |
| 41 | +================== |
| 42 | + |
| 43 | +.. lsst-task-api-summary:: lsst.pipe.tasks.finalizeCharacterization.FinalizeCharacterizationDetectorTask |
| 44 | + |
| 45 | +Retargetable subtasks |
| 46 | +===================== |
| 47 | + |
| 48 | +.. lsst-task-config-subtasks:: lsst.pipe.tasks.finalizeCharacterization.FinalizeCharacterizationDetectorTask |
| 49 | + |
| 50 | +.. _lsst.pipe.tasks.finalizeCharacterization.FinalizeCharacterizationDetectorTask-configs: |
| 51 | + |
| 52 | +Configuration fields |
| 53 | +==================== |
| 54 | + |
| 55 | +.. lsst-task-config-fields:: lsst.pipe.tasks.finalizeCharacterization.FinalizeCharacterizationDetectorTask |
0 commit comments