lsst.meas.base
14.0-21-gb9e430a+2
|
A references task implementation that loads the coadd_datasetSuffix dataset directly from disk using the butler. More...
Public Member Functions | |
def | __init__ (self, butler=None, schema=None, kwargs) |
Initialize the task. More... | |
def | getWcs (self, dataRef) |
def | fetchInPatches (self, dataRef, patchList) |
An implementation of BaseReferencesTask.fetchInPatches that loads 'coadd_' + datasetSuffix catalogs using the butler. More... | |
def | fetchInBox (self, dataRef, bbox, wcs, pad=0) |
Return reference sources that overlap a region defined by a pixel-coordinate bounding box and corresponding Wcs. More... | |
def | getSchema (self, butler) |
Return the schema for the reference sources. More... | |
def | fetchInBox (self, dataRef, bbox, wcs) |
Return reference sources that overlap a region defined by a pixel-coordinate bounding box and corresponding Wcs. More... | |
def | subset (self, sources, bbox, wcs) |
Filter sources to contain only those within the given box, defined in the coordinate system defined by the given Wcs. More... | |
Public Attributes | |
schema | |
Static Public Attributes | |
ConfigClass = CoaddSrcReferencesConfig | |
string | datasetSuffix = "src" |
A references task implementation that loads the coadd_datasetSuffix dataset directly from disk using the butler.
Definition at line 181 of file references.py.
def lsst.meas.base.references.CoaddSrcReferencesTask.__init__ | ( | self, | |
butler = None , |
|||
schema = None , |
|||
kwargs | |||
) |
Initialize the task.
Additional keyword arguments (forwarded to BaseReferencesTask.__init__):
Definition at line 190 of file references.py.
|
inherited |
Return reference sources that overlap a region defined by a pixel-coordinate bounding box and corresponding Wcs.
[in] | dataRef | ButlerDataRef; the implied data ID must contain the 'tract' key. |
[in] | bbox | a afw.geom.Box2I or Box2D that defines the region in pixel coordinates |
[in] | wcs | afw.image.Wcs that maps the bbox to sky coordinates |
It is not required that the returned object be a SourceCatalog; it may be any Python iterable containing SourceRecords (including a lazy iterator).
The returned set of sources should be complete and close to minimal.
Definition at line 87 of file references.py.
def lsst.meas.base.references.CoaddSrcReferencesTask.fetchInBox | ( | self, | |
dataRef, | |||
bbox, | |||
wcs, | |||
pad = 0 |
|||
) |
Return reference sources that overlap a region defined by a pixel-coordinate bounding box and corresponding Wcs.
[in] | dataRef | ButlerDataRef; the implied data ID must contain the 'tract' key. |
[in] | bbox | a afw.geom.Box2I or Box2D that defines the region in pixel coordinates |
[in] | wcs | afw.image.Wcs that maps the bbox to sky coordinates |
[in] | pad | a buffer to grow the bounding box by after catalogs have been loaded, but before filtering them to include just the given bounding box. |
Definition at line 240 of file references.py.
def lsst.meas.base.references.CoaddSrcReferencesTask.fetchInPatches | ( | self, | |
dataRef, | |||
patchList | |||
) |
An implementation of BaseReferencesTask.fetchInPatches that loads 'coadd_' + datasetSuffix catalogs using the butler.
The given dataRef must include the tract in its dataId.
Definition at line 210 of file references.py.
|
inherited |
Return the schema for the reference sources.
Must be available even before any data has been processed.
Definition at line 73 of file references.py.
def lsst.meas.base.references.CoaddSrcReferencesTask.getWcs | ( | self, | |
dataRef | |||
) |
Return the WCS for reference sources. The given dataRef must include the tract in its dataId.
Definition at line 204 of file references.py.
|
inherited |
Filter sources to contain only those within the given box, defined in the coordinate system defined by the given Wcs.
[in] | sources | input iterable of SourceRecords |
[in] | bbox | bounding box with which to filter reference sources (Box2I or Box2D) |
[in] | wcs | afw.image.Wcs that defines the coordinate system of bbox |
Instead of filtering sources directly via their positions, we filter based on the positions of parent objects, then include or discard all children based on their parent's status. This is necessary to support ReplaceWithNoise in measurement, which requires all child sources have their parent present.
This is not a part of the required BaseReferencesTask interface; it's a convenience function used in implementing fetchInBox that may be of use to subclasses.
Definition at line 123 of file references.py.
|
static |
Definition at line 187 of file references.py.
|
static |
Definition at line 188 of file references.py.
lsst.meas.base.references.CoaddSrcReferencesTask.schema |
Definition at line 202 of file references.py.