CoaddProvenance#
- class lsst.images.cells.CoaddProvenance(inputs, contributions)#
Bases:
objectA pair of tables that record the inputs to a cell-based coadd.
- Parameters:
Notes
This object can represent the provenance of a whole patch, a single cell, or anything in between. In the single-cell case, the
inputsandcontributionstables have the same number of rows (but may not be ordered the same way!).Attributes Summary
A table of {visit, detector, cell} combinations that describe how an observation contributed to a cell.
A table of {visit, detector} combinations that contribute to any cell in the coadd.
Methods Summary
from_legacy(legacy_cell_coadd)Extract provenance from a legacy
lsst.cell_coadds.MultipleCellCoaddobject.make_empty_contribution_table(n_rows)Make an empty
contributionstable with a set number of rows.make_empty_input_table(n_rows)Make an empty
inputstable with a set number of rows.serialize(archive)Serialize the provenance to an output archive.
subset(cells)Return a new provenance object with just the given cells.
to_legacy_cell_coadd_inputs(observations)Construct a mapping from legacy cell index to the list of legacy input structs for that cell.
Construct a legacy mapping from
lsst.cell_coadds.ObservationIdentifierstolsst.afw.geom.Polygonfrom theinputstable.Attributes Documentation
- contributions#
A table of {visit, detector, cell} combinations that describe how an observation contributed to a cell.
- inputs#
A table of {visit, detector} combinations that contribute to any cell in the coadd.
Methods Documentation
- static from_legacy(legacy_cell_coadd)#
Extract provenance from a legacy
lsst.cell_coadds.MultipleCellCoaddobject.- Parameters:
legacy_cell_coadd (
TypeAliasType) – Legacy cell coadd to extract provenance from.- Return type:
- classmethod make_empty_contribution_table(n_rows)#
Make an empty
contributionstable with a set number of rows.
- serialize(archive)#
Serialize the provenance to an output archive.
- Parameters:
archive (
OutputArchive[Any]) – Archive to write to.- Return type:
- subset(cells)#
Return a new provenance object with just the given cells.
- to_legacy_cell_coadd_inputs(observations)#
Construct a mapping from legacy cell index to the list of legacy input structs for that cell.
- to_legacy_polygon_map()#
Construct a legacy mapping from
lsst.cell_coadds.ObservationIdentifierstolsst.afw.geom.Polygonfrom theinputstable.- Return type:
dict[TypeAliasType,TypeAliasType]