LSSTApplications
10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
|
A command-line driver for performing forced measurement on CCD images. More...
Public Member Functions | |
def | makeIdFactory |
def | fetchReferences |
def | getExposure |
Static Public Attributes | |
ConfigClass = ForcedPhotCcdConfig | |
RunnerClass = lsst.pipe.base.ButlerInitializedTaskRunner | |
string | dataPrefix = "" |
Private Member Functions | |
def | _getConfigName |
Return the name of the config dataset. More... | |
def | _getMetadataName |
Return the name of the metadata dataset. More... | |
def | _makeArgumentParser |
Static Private Attributes | |
string | _DefaultName = "forcedPhotCcd" |
A command-line driver for performing forced measurement on CCD images.
This task is a subclass of ForcedPhotImageTask which is specifically for doing forced measurement on a single CCD exposure, using as a reference catalog the detections which were made on overlapping coadds.
The run method (inherited from ForcedPhotImageTask) takes a lsst.daf.persistence.ButlerDataRef argument that corresponds to a single CCD. This should contain the data ID keys that correspond to the "forced_src" dataset (the output dataset for ForcedPhotCcdTask), which are typically all those used to specify the "calexp" dataset (e.g. visit, raft, sensor for LSST data) as well as a coadd tract. The tract is used to look up the appropriate coadd measurement catalogs to use as references (e.g. deepCoadd_src; see CoaddSrcReferencesTask for more information). While the tract must be given as part of the dataRef, the patches are determined automatically from the bounding box and WCS of the calexp to be measured, and the filter used to fetch references is set via config (BaseReferencesConfig.filter).
In addition to the run method, ForcedPhotCcdTask overrides several methods of ForcedPhotImageTask to specialize it for single-CCD processing, including makeIdFactory(), fetchReferences(), and getExposure(). None of these should be called directly by the user, though it may be useful to override them further in subclasses.
Definition at line 81 of file forcedPhotCcd.py.
|
private |
Return the name of the config dataset.
Forces config comparison from run-to-run
Definition at line 171 of file forcedPhotCcd.py.
|
private |
Return the name of the metadata dataset.
Forced metadata to be saved
Definition at line 176 of file forcedPhotCcd.py.
|
private |
Definition at line 182 of file forcedPhotCcd.py.
def lsst.meas.base.forcedPhotCcd.ForcedPhotCcdTask.fetchReferences | ( | self, | |
dataRef, | |||
exposure | |||
) |
Return a SourceCatalog of sources which overlap the exposure. The returned catalog is sorted by ID and guarantees that all included children have their parent included and that all Footprints are valid. @param dataRef Data reference from butler corresponding to the image to be measured; should have tract, patch, and filter keys. @param exposure lsst.afw.image.Exposure to be measured (used only to obtain a Wcs and bounding box). All work is delegated to the references subtask; see CoaddSrcReferencesTask for information about the default behavior.
Definition at line 122 of file forcedPhotCcd.py.
def lsst.meas.base.forcedPhotCcd.ForcedPhotCcdTask.getExposure | ( | self, | |
dataRef | |||
) |
Read input exposure to measure @param dataRef Data reference from butler. Only the 'calexp' dataset is used, unless config.doApplyUberCal is true, in which case the corresponding meas_mosaic outputs are used as well.
Definition at line 152 of file forcedPhotCcd.py.
def lsst.meas.base.forcedPhotCcd.ForcedPhotCcdTask.makeIdFactory | ( | self, | |
dataRef | |||
) |
Create an object that generates globally unique source IDs from per-CCD IDs and the CCD ID. @param dataRef Data reference from butler. The "ccdExposureId_bits" and "ccdExposureId" datasets are accessed. The data ID must have the keys that correspond to ccdExposureId, which is generally the same that correspond to "calexp" (e.g. visit, raft, sensor for LSST data).
Definition at line 110 of file forcedPhotCcd.py.
|
staticprivate |
Definition at line 107 of file forcedPhotCcd.py.
|
static |
Definition at line 105 of file forcedPhotCcd.py.
|
static |
Definition at line 108 of file forcedPhotCcd.py.
|
static |
Definition at line 106 of file forcedPhotCcd.py.