LSSTApplications
16.0-10-g1758552+4,16.0-10-g4f78f78+4,16.0-10-gc1446dd+30,16.0-11-g39ac3c7+2,16.0-13-g066a532+3,16.0-14-g6c7ed55+4,16.0-14-gd373004+3,16.0-15-g072d20e+4,16.0-15-gb461e1a+2,16.0-16-g48c959a+3,16.0-16-g89065d4+2,16.0-16-gd8e3590+4,16.0-19-gb830ed4e+4,16.0-2-g0febb12+20,16.0-2-g9d5294e+53,16.0-2-ga8830df+3,16.0-20-g17d57d5+2,16.0-22-gf7a7fdf+3,16.0-27-g78173a71+3,16.0-3-g324faa9+3,16.0-3-gcfd6c53+51,16.0-3-ge00e371+9,16.0-4-g03cf288+42,16.0-4-g5f3a788+19,16.0-4-ga3eb747+9,16.0-4-gabf74b7+4,16.0-4-gb13d127+3,16.0-5-g6a53317+9,16.0-5-gb3f8a4b+62,16.0-5-gef99c9f+4,16.0-57-g90e7ba260+2,16.0-6-g0838257+3,16.0-6-g9321be7+3,16.0-6-gcbc7b31+3,16.0-6-gf49912c+4,16.0-7-gd2eeba5+12,16.0-8-g21fd5fe+4,16.0-8-g3a9f023+4,16.0-9-g85d1a16+4,master-g7b902255af+4,w.2018.43
LSSTDataManagementBasePackage
|
Merge measurements from multiple bands. More...
Public Member Functions | |
def | __init__ (self, butler=None, schema=None, kwargs) |
Initialize the task. More... | |
def | run (self, catalogs, patchRef) |
Merge measurement catalogs to create a single reference catalog for forced photometry. More... | |
def | getInputSchema (self, butler=None, schema=None) |
Obtain the input schema either directly or froma butler reference. More... | |
def | runDataRef (self, patchRefList) |
Merge coadd sources from multiple bands. More... | |
def | readCatalog (self, patchRef) |
Read input catalog. More... | |
def | write (self, patchRef, catalog) |
Write the output. More... | |
def | writeMetadata (self, dataRefList) |
No metadata to write, and not sure how to write it for a list of dataRefs. More... | |
Public Attributes | |
schemaMapper | |
instFluxKey | |
instFluxErrKey | |
fluxFlagKey | |
flagKeys | |
schema | |
pseudoFilterKeys | |
badFlags | |
Static Public Attributes | |
ConfigClass = MergeMeasurementsConfig | |
string | inputDataset = "meas" |
string | outputDataset = "ref" |
getSchemaCatalogs = _makeGetSchemaCatalogs("ref") | |
RunnerClass = MergeSourcesRunner | |
Merge measurements from multiple bands.
Command-line task that merges 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 subclasses MergeSourcesTask.
Initialize the task. Additional keyword arguments (forwarded to MergeSourcesTask.__init__):
[in] | schema | the schema of the detection catalogs used as input to this one |
[in] | butler | a butler used to read the input schema from disk, if schema is None |
The task will set its own self.schema attribute to the schema of the output merged catalog.
Merge measurement catalogs to create a single reference catalog for forced photometry.
[in] | catalogs | the catalogs to be merged |
[in] | patchRef | patch reference for data |
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.
The command line task interface supports a flag -d
to import debug.py from your PYTHONPATH
; see Using lsstDebug to control debugging output for more about debug.py files.
MergeMeasurementsTask has no debug variables.
of using MergeMeasurementsTask
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. Command-line usage of MergeMeasurementsTask expects a data reference to the coadds to be processed. A list of the available optional arguments can be obtained by calling mergeCoaddMeasurements.py with the --help
command line argument:
To demonstrate usage of the DetectCoaddSourcesTask in the larger context of multi-band processing, we will process HSC data in the ci_hsc package. Assuming one has finished step 7 at pipeTasks_multiBand, one may merge the catalogs generated after deblending and measuring as follows:
This will merge the HSC-I & HSC-R band catalogs. The results are written in $CI_HSC_DIR/DATA/deepCoadd-results/
.
Definition at line 1517 of file multiBand.py.
def lsst.pipe.tasks.multiBand.MergeMeasurementsTask.__init__ | ( | self, | |
butler = None , |
|||
schema = None , |
|||
kwargs | |||
) |
Initialize the task.
Additional keyword arguments (forwarded to MergeSourcesTask.__init__):
[in] | schema | the schema of the detection catalogs used as input to this one |
[in] | butler | a butler used to read the input schema from disk, if schema is None |
The task will set its own self.schema attribute to the schema of the output merged catalog.
Definition at line 1598 of file multiBand.py.
|
inherited |
Obtain the input schema either directly or froma butler reference.
[in] | butler | butler reference to obtain the input schema from |
[in] | schema | the input schema |
Definition at line 537 of file multiBand.py.
|
inherited |
Read input catalog.
We read the input dataset provided by the 'inputDataset' class variable.
[in] | patchRef | data reference for patch |
Definition at line 574 of file multiBand.py.
def lsst.pipe.tasks.multiBand.MergeMeasurementsTask.run | ( | self, | |
catalogs, | |||
patchRef | |||
) |
Merge measurement catalogs to create a single reference catalog for forced photometry.
[in] | catalogs | the catalogs to be merged |
[in] | patchRef | patch reference for data |
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.
Definition at line 1643 of file multiBand.py.
|
inherited |
Merge coadd sources from multiple bands.
Calls run
which must be defined in subclasses that inherit from MergeSourcesTask.
[in] | patchRefList | list of data references for each filter |
Definition at line 563 of file multiBand.py.
|
inherited |
Write the output.
[in] | patchRef | data reference for patch |
[in] | catalog | catalog |
We write as the dataset provided by the 'outputDataset' class variable.
Definition at line 600 of file multiBand.py.
|
inherited |
No metadata to write, and not sure how to write it for a list of dataRefs.
Definition at line 617 of file multiBand.py.
lsst.pipe.tasks.multiBand.MergeMeasurementsTask.badFlags |
Definition at line 1636 of file multiBand.py.
|
static |
Definition at line 1593 of file multiBand.py.
lsst.pipe.tasks.multiBand.MergeMeasurementsTask.flagKeys |
Definition at line 1616 of file multiBand.py.
lsst.pipe.tasks.multiBand.MergeMeasurementsTask.fluxFlagKey |
Definition at line 1614 of file multiBand.py.
|
static |
Definition at line 1596 of file multiBand.py.
|
static |
Definition at line 1594 of file multiBand.py.
lsst.pipe.tasks.multiBand.MergeMeasurementsTask.instFluxErrKey |
Definition at line 1613 of file multiBand.py.
lsst.pipe.tasks.multiBand.MergeMeasurementsTask.instFluxKey |
Definition at line 1612 of file multiBand.py.
|
static |
Definition at line 1595 of file multiBand.py.
lsst.pipe.tasks.multiBand.MergeMeasurementsTask.pseudoFilterKeys |
Definition at line 1629 of file multiBand.py.
|
staticinherited |
Definition at line 517 of file multiBand.py.
lsst.pipe.tasks.multiBand.MergeMeasurementsTask.schema |
Definition at line 1627 of file multiBand.py.
lsst.pipe.tasks.multiBand.MergeMeasurementsTask.schemaMapper |
Definition at line 1610 of file multiBand.py.