Skip to content

Commit de52948

Browse files
authored
Merge pull request #1051 from lsst/tickets/DM-48932
DM-48932: Add new tasks to run finalize characterization in parallel over detectors.
2 parents d248422 + 51b53cb commit de52948

5 files changed

+769
-179
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
.. lsst-task-topic:: lsst.pipe.tasks.finalizeCharacterization.ConsolidateFinalizeCharacterizationDetectorTask
2+
3+
###############################################
4+
ConsolidateFinalizeCharacterizationDetectorTask
5+
###############################################
6+
7+
`ConsolidateFinalizeCharacterizationDetectorTask` is a task to consolidate all the outputs from the per-detector :doc:`lsst.pipe.tasks.finalizeCharacterization.FinalizeCharacterizationDetectorTask` to make an output compatible with the output from the per-visit :doc:`lsst.pipe.tasks.finalizeCharacterization.FinalizeCharacterizationTask`.
8+
9+
.. _lsst.pipe.tasks.finalizeCharacterization.ConsolidateFinalizeCharacterizationDetectorTask-summary:
10+
11+
Processing summary
12+
==================
13+
14+
This task reads in the individual per-detector exposure catalogs with the psf and aperture correction map, as well as the per-detector sources used for psf and aperture correction estimation, and consolidates them into single catalogs.
15+
16+
There are no subtasks for configurations for this task.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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

doc/lsst.pipe.tasks/tasks/lsst.pipe.tasks.finalizeCharacterization.FinalizeCharacterizationTask.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ In the second stage, the task will run per-detector:
3030
- Run the aperture correction measurement task configured in ``config.measure_ap_corr`` using the PSF stars.
3131
- Run the aperture correction application task configured in ``config.apply_ap_corr`` on the PSF stars.
3232

33-
An exposure catalog containing all the PSF models in the visit, another containing all the aperture correction maps in the visit, and a data frame with all the measurements and flags are returned for persistence.
33+
The task returns an exposure catalog containing all the PSF models in the visit and all the aperture correction maps in the visit, and an astropy table with all the measurements and flags are returned for persistence.
3434

3535
.. _lsst.pipe.tasks.finalizeCharacterization.FinalizeCharacterizationTask-api:
3636

0 commit comments

Comments
 (0)