-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #417 from lsst/tickets/DM-27164
DM-27164: Add task to compute and persist VisitSummary tables
- Loading branch information
Showing
5 changed files
with
292 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env python | ||
from lsst.pipe.tasks.postprocess import ConsolidateVisitSummaryTask | ||
ConsolidateVisitSummaryTask.parseAndRun() |
93 changes: 93 additions & 0 deletions
93
...st.pipe.tasks/tasks/lsst.pipe.tasks.postprocess.ConsolidateVisitSummaryTask.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
.. lsst-task-topic:: lsst.pipe.tasks.postprocess.ConsolidateVisitSummaryTask | ||
|
||
########################### | ||
ConsolidateVisitSummaryTask | ||
########################### | ||
|
||
``ConsolidateVisitSummaryTask`` combines the non-trivial metadata, including the wcs, detector information, psf size and shape, filter, and bounding box corners into one per-visit exposure catalog (dataset `visitSummary`). | ||
|
||
``ConsolidateVisitSummaryTask`` is available as a :ref:`command-line task <lsst.pipe.tasks-command-line-tasks>`, :command:`consolidateVisitSummary.py`. | ||
|
||
.. _lsst.pipe.tasks.postprocess.ConsolidateVisitSummary-summary: | ||
|
||
Processing summary | ||
================== | ||
|
||
``ConsolidateVisitSummaryTask`` reads in detector-level processed exposure metadata tables (dataset `calexp`) for a given visit, combines these data into an exposure catalog, and writes the result out as a visit-level summary catalog (dataset `visitSummary`). | ||
The metadata from each exposure/detector includes: | ||
|
||
- The ``visitInfo``. | ||
- The ``wcs``. | ||
- The ``photoCalib``. | ||
- The ``physical_filter`` and ``band`` (if available). | ||
- The psf size, shape, and effective area at the center of the detector. | ||
- The corners of the bounding box in right ascension/declination. | ||
|
||
.. lsst.pipe.tasks.postprocess.ConsolidateVisitSummaryTask-cli: | ||
consolidateVisitSummary.py command-line interface | ||
================================================= | ||
|
||
.. code-block:: text | ||
consolidateVisitSummary.py REPOPATH [@file [@file2 ...]] [--output OUTPUTREPO | --rerun RERUN] [--id] [other options] | ||
Key arguments: | ||
|
||
.. option:: REPOPATH | ||
|
||
The input Butler repository's URI or file path. | ||
|
||
Key options: | ||
|
||
.. option:: --id | ||
|
||
The data IDs to process. | ||
|
||
.. seealso:: | ||
|
||
See :ref:`command-line-task-argument-reference` for details and additional options. | ||
|
||
.. _lsst.pipe.tasks.postprocess.ConsolidateVisitSummaryTask-api: | ||
|
||
Python API summary | ||
================== | ||
|
||
.. lsst-task-api-summary:: lsst.pipe.tasks.postprocess.ConsolidateVisitSummaryTask | ||
|
||
.. _lsst.pipe.tasks.postprocess.ConsolidateVisitSummaryTask-butler: | ||
|
||
Butler datasets | ||
=============== | ||
|
||
When run as the ``consolidateVisitSummary.py`` command-line task, or directly through the `~lsst.pipe.tasks.postprocess.ConsolidateVisitSummaryTask.runDataRef` method, ``ConsolidateVisitSummaryTask`` obtains datasets from the input Butler data repository and persists outputs to the output Butler data repository. | ||
|
||
.. _lsst.pipe.tasks.postprocess.ConsolidateVisitSummaryTask-butler-inputs: | ||
|
||
Input datasets | ||
-------------- | ||
|
||
``calexp`` | ||
Per-detector, processed exposures with metadata (wcs, psf, etc.) | ||
|
||
.. _lsst.pipe.tasks.postprocess.ConsolidateVisitSummaryTask-butler-outputs: | ||
|
||
Output datasets | ||
--------------- | ||
|
||
``visitSummary`` | ||
Per-visit summary catalog of ccd/visit metadata. | ||
|
||
|
||
.. _lsst.pipe.tasks.postprocess.ConsolidateSourceTableTask-subtasks: | ||
|
||
Examples | ||
======== | ||
|
||
The following command shows an example of how to run the task on an example HSC repository. | ||
|
||
.. code-block:: bash | ||
consolidateVisitSummary.py /datasets/hsc/repo --rerun <rerun name> --id visit=30504 | ||
.. _lsst.pipe.tasks.postprocess.ConsolidateVisitSummaryTask-debug: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
description: Base Pipeline that describes the Data Release Production process. | ||
inherits: | ||
- location: $PIPE_TASKS_DIR/pipelines/_SingleFrame.yaml | ||
- location: $PIPE_TASKS_DIR/pipelines/_ConsolidateVisit.yaml | ||
- location: $PIPE_TASKS_DIR/pipelines/_Coaddition.yaml | ||
- location: $PIPE_TASKS_DIR/pipelines/_Multiband.yaml | ||
- location: $PIPE_TASKS_DIR/pipelines/_Forced.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
description: ConsolidateVisit | ||
tasks: | ||
consolidateVisitSummary: lsst.pipe.tasks.postprocess.ConsolidateVisitSummaryTask | ||
subsets: | ||
consolidateVisit: | ||
subset: | ||
- consolidateVisitSummary | ||
description: A set of tasks to run to consolidate all detectors from a visit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters