Task to consolidate per-detector visit metadata.
This task aggregates the following metadata from all the detectors in a
single visit into an exposure catalog:
- The visitInfo.
- The wcs.
- The photoCalib.
- The physical_filter and band (if available).
- The PSF model.
- The aperture correction map.
- The transmission curve.
- The psf size, shape, and effective area at the center of the detector.
- The corners of the bounding box in right ascension/declination.
Tests for this task are performed in ci_hsc_gen3.
Definition at line 1517 of file postprocess.py.
| lsst.pipe.tasks.postprocess.ConsolidateVisitSummaryTask._readLegacyComponents |
( |
| handle, |
|
|
| readVisitInfo ) |
|
staticprotected |
Read the metadata of one detector from an
`lsst.afw.image.Exposure`.
Parameters
----------
handle : `lsst.daf.butler.DeferredDatasetHandle`
Handle to the exposure.
readVisitInfo : `bool`
Whether to read the visit info and filter label, which are the same
for every detector in a visit.
Returns
-------
components : `lsst.pipe.base.Struct`
Struct with ``visitInfo``, ``filterLabel`` (`None` unless
``readVisitInfo``), ``summaryStats``, ``wcs``, ``photoCalib``,
``bbox`` and ``validPolygon`` attributes.
Definition at line 1660 of file postprocess.py.
| lsst.pipe.tasks.postprocess.ConsolidateVisitSummaryTask.run |
( |
| self, |
|
|
* | , |
|
|
| visit, |
|
|
| handles, |
|
|
| camera = None, |
|
|
| result = None ) |
Make a combined exposure catalog from a list of handles.
These handles must point to exposures with wcs, summaryStats,
and other visit metadata.
Parameters
----------
visit : `int`
Visit identification number.
handles : `list` of `lsst.daf.butler.DeferredDatasetHandle`
List of handles in visit, to `lsst.afw.image.Exposure` or
`lsst.images.VisitImage` datasets depending on
``config.input_image_type``.
camera : `lsst.afw.cameraGeom.Camera`, optional
Camera geometry. Required if and only if
``do_refit_pointing=True``.
result : `lsst.pipe.base.Struct`, optional
Output struct to modify in-place.
Returns
-------
result : `lsst.pipe.base.Struct`
Struct with the following attributes:
- ``visitSummary`` (`lsst.afw.table.ExposureCatalog`): an Exposure
catalog with per-detector summary information.
- ``visit_geometry`` (`lsst.obs.base.visit_geometry.VisitGeometry`):
Regions that can be used to update butler dimension regions for
this visit. Only present if ``do_refit_pointing=True``.
Definition at line 1569 of file postprocess.py.