MergeMeasurementsTask#
- class lsst.pipe.tasks.mergeMeasurements.MergeMeasurementsTask(schema=None, initInputs=None, **kwargs)#
Bases:
PipelineTaskMerge measurements from multiple bands.
Combines consistent (i.e. with the same peaks and footprints) catalogs of sources from multiple filter bands to construct a unified catalog that is suitable for driving forced photometry. Every source is required to have centroid, shape and flux measurements in each band.
MergeMeasurementsTask is meant to be run after deblending & measuring sources in every band. The purpose of the task is to generate a catalog of sources suitable for driving forced photometry in coadds and individual exposures.
Parameters#
- schema
lsst.afw.table.Schema, optional The schema of the detection catalogs used as input to this task.
- initInputs
dict, optional Dictionary that can contain a key
inputSchemacontaining the input schema. If present will override the value ofschema.- **kwargs
Additional keyword arguments.
Attributes Summary
Methods Summary
run(catalogs)Merge measurement catalogs to create a single reference catalog for forced photometry.
runQuantum(butlerQC, inputRefs, outputRefs)Do butler IO and transform to provide in memory objects for tasks
runmethod.Attributes Documentation
- inputDataset = 'meas'#
- outputDataset = 'ref'#
Methods Documentation
- run(catalogs)#
Merge measurement catalogs to create a single reference catalog for forced photometry.
Parameters#
- catalogs
lsst.afw.table.SourceCatalog Catalogs to be merged.
Raises#
- ValueError
Raised if no catalog records were found; if there is no valid reference for the input record ID; or if there is a mismatch between catalog sizes.
Notes#
For parent sources, we choose the first band in config.priorityList for which the merge_footprint flag for that band is is True.
For child sources, the logic is the same, except that we use the merge_peak flags.
- catalogs
- runQuantum(butlerQC, inputRefs, outputRefs)#
Do butler IO and transform to provide in memory objects for tasks
runmethod.Parameters#
- butlerQC
QuantumContext A butler which is specialized to operate in the context of a
lsst.daf.butler.Quantum.- inputRefs
InputQuantizedConnection Datastructure whose attribute names are the names that identify connections defined in corresponding
PipelineTaskConnectionsclass. The values of these attributes are thelsst.daf.butler.DatasetRefobjects associated with the defined input/prerequisite connections.- outputRefs
OutputQuantizedConnection Datastructure whose attribute names are the names that identify connections defined in corresponding
PipelineTaskConnectionsclass. The values of these attributes are thelsst.daf.butler.DatasetRefobjects associated with the defined output connections.
- butlerQC
- schema