LSSTApplications
17.0+10,17.0+52,17.0+91,18.0.0+11,18.0.0+16,18.0.0+38,18.0.0+4,18.0.0-2-ge43143a+8,18.1.0-1-g0001055+4,18.1.0-1-g1349e88+13,18.1.0-1-g2505f39+10,18.1.0-1-g380d4d4+13,18.1.0-1-g5315e5e,18.1.0-1-g5e4b7ea+4,18.1.0-1-g7e8fceb,18.1.0-1-g85f8cd4+10,18.1.0-1-g9a6769a+4,18.1.0-1-ga1a4c1a+9,18.1.0-1-gd55f500+5,18.1.0-1-ge10677a+10,18.1.0-11-gb2589d7b,18.1.0-13-g451e75588+2,18.1.0-13-gbfe7f7f+4,18.1.0-14-g2e73c10+1,18.1.0-2-g31c43f9+10,18.1.0-2-g919ecaf,18.1.0-2-g9c63283+13,18.1.0-2-gdf0b915+13,18.1.0-2-gfefb8b5+2,18.1.0-3-g52aa583+4,18.1.0-3-g8f4a2b1+4,18.1.0-3-g9cb968e+12,18.1.0-3-gab23065,18.1.0-4-g7bbbad0+4,18.1.0-5-g510c42a+12,18.1.0-5-gaeab27e+13,18.1.0-6-gc4bdb98+2,18.1.0-6-gdda7f3e+15,18.1.0-9-g9613d271+1,w.2019.34
LSSTDataManagementBasePackage
|
Detect sources on a coadd. More...
Public Member Functions | |
def | __init__ (self, schema=None, kwargs) |
Initialize the task. More... | |
def | getInitOutputDatasets (self) |
def | runDataRef (self, patchRef) |
Run detection on a coadd. More... | |
def | adaptArgsAndRun (self, inputData, inputDataIds, outputDataIds, butler) |
def | run (self, exposure, idFactory, expId) |
Run detection on an exposure. More... | |
def | write (self, results, patchRef) |
Write out results from runDetection. More... | |
Public Attributes | |
schema | |
Static Public Attributes | |
ConfigClass = DetectCoaddSourcesConfig | |
getSchemaCatalogs = _makeGetSchemaCatalogs("det") | |
makeIdFactory = _makeMakeIdFactory("CoaddId") | |
Detect sources on a coadd.
Command-line task that detects sources on a coadd of exposures obtained with a single filter.
Coadding individual visits requires each exposure to be warped. This introduces covariance in the noise properties across pixels. Before detection, we correct the coadd variance by scaling the variance plane in the coadd to match the observed variance. This is an approximate approach – strictly, we should propagate the full covariance matrix – but it is simple and works well in practice.
After scaling the variance plane, we detect sources and generate footprints by delegating to the detection subtask.
DetectCoaddSourcesTask delegates most of its work to the detection subtask. You can retarget this subtask if you wish.
Initialize the task. Create the detection subtask.
Keyword arguments (in addition to those forwarded to CmdLineTask.__init__):
[in] | schema | initial schema for the output catalog, modified-in place to include all fields set by this task. If None, the source minimal schema will be used. |
[in] | **kwargs | keyword arguments to be passed to lsst.pipe.base.task.Task.__init__ |
Run detection on an exposure. First scale the variance plane to match the observed variance using ScaleVarianceTask. Then invoke the detection subtask to detect sources.
[in,out] | exposure | Exposure on which to detect (may be backround-subtracted and scaled, depending on configuration). |
[in] | idFactory | IdFactory to set source identifiers |
[in] | expId | Exposure identifier (integer) for RNG seed |
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.
DetectCoaddSourcesTask has no debug variables of its own because it relegates all the work to SourceDetectionTask; see the documetation for SourceDetectionTask for further information.
of using DetectCoaddSourcesTask
DetectCoaddSourcesTask is meant to be run after assembling a coadded image in a given band. The purpose of the task is to update the background, detect all sources in a single band and generate a set of parent footprints. Subsequent tasks in the multi-band processing procedure will merge sources across bands and, eventually, perform forced photometry. Command-line usage of DetectCoaddSourcesTask expects a data reference to the coadd to be processed. A list of the available optional arguments can be obtained by calling detectCoaddSources.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 followed steps 1 - 4 at pipeTasks_multiBand, one may detect all the sources in each coadd as follows:
that will process the HSC-I band data. The results are written to $CI_HSC_DIR/DATA/deepCoadd-results/HSC-I
.
It is also necessary to run:
to generate the sources catalogs for the HSC-R band required by the next step in the multi-band processing procedure: MergeDetectionsTask.
Definition at line 144 of file multiBand.py.
def lsst.pipe.tasks.multiBand.DetectCoaddSourcesTask.__init__ | ( | self, | |
schema = None , |
|||
kwargs | |||
) |
Initialize the task.
Create the detection subtask.
Keyword arguments (in addition to those forwarded to CmdLineTask.__init__):
[in] | schema | initial schema for the output catalog, modified-in place to include all fields set by this task. If None, the source minimal schema will be used. |
[in] | **kwargs | keyword arguments to be passed to lsst.pipe.base.task.Task.__init__ |
Definition at line 247 of file multiBand.py.
def lsst.pipe.tasks.multiBand.DetectCoaddSourcesTask.adaptArgsAndRun | ( | self, | |
inputData, | |||
inputDataIds, | |||
outputDataIds, | |||
butler | |||
) |
Definition at line 290 of file multiBand.py.
def lsst.pipe.tasks.multiBand.DetectCoaddSourcesTask.getInitOutputDatasets | ( | self | ) |
Definition at line 269 of file multiBand.py.
def lsst.pipe.tasks.multiBand.DetectCoaddSourcesTask.run | ( | self, | |
exposure, | |||
idFactory, | |||
expId | |||
) |
Run detection on an exposure.
First scale the variance plane to match the observed variance using ScaleVarianceTask. Then invoke the detection subtask to detect sources.
[in,out] | exposure | Exposure on which to detect (may be backround-subtracted and scaled, depending on configuration). |
[in] | idFactory | IdFactory to set source identifiers |
[in] | expId | Exposure identifier (integer) for RNG seed |
Definition at line 298 of file multiBand.py.
def lsst.pipe.tasks.multiBand.DetectCoaddSourcesTask.runDataRef | ( | self, | |
patchRef | |||
) |
Run detection on a coadd.
Invokes run and then uses write to output the results.
[in] | patchRef | data reference for patch |
Definition at line 272 of file multiBand.py.
def lsst.pipe.tasks.multiBand.DetectCoaddSourcesTask.write | ( | self, | |
results, | |||
patchRef | |||
) |
Write out results from runDetection.
[in] | exposure | Exposure to write out |
[in] | results | Struct returned from runDetection |
[in] | patchRef | data reference for patch |
Definition at line 330 of file multiBand.py.
|
static |
Definition at line 236 of file multiBand.py.
|
static |
Definition at line 237 of file multiBand.py.
|
static |
Definition at line 238 of file multiBand.py.
lsst.pipe.tasks.multiBand.DetectCoaddSourcesTask.schema |
Definition at line 264 of file multiBand.py.