LSST Applications
21.0.0-147-g0e635eb1+1acddb5be5,22.0.0+052faf71bd,22.0.0+1ea9a8b2b2,22.0.0+6312710a6c,22.0.0+729191ecac,22.0.0+7589c3a021,22.0.0+9f079a9461,22.0.1-1-g7d6de66+b8044ec9de,22.0.1-1-g87000a6+536b1ee016,22.0.1-1-g8e32f31+6312710a6c,22.0.1-10-gd060f87+016f7cdc03,22.0.1-12-g9c3108e+df145f6f68,22.0.1-16-g314fa6d+c825727ab8,22.0.1-19-g93a5c75+d23f2fb6d8,22.0.1-19-gb93eaa13+aab3ef7709,22.0.1-2-g8ef0a89+b8044ec9de,22.0.1-2-g92698f7+9f079a9461,22.0.1-2-ga9b0f51+052faf71bd,22.0.1-2-gac51dbf+052faf71bd,22.0.1-2-gb66926d+6312710a6c,22.0.1-2-gcb770ba+09e3807989,22.0.1-20-g32debb5+b8044ec9de,22.0.1-23-gc2439a9a+fb0756638e,22.0.1-3-g496fd5d+09117f784f,22.0.1-3-g59f966b+1e6ba2c031,22.0.1-3-g849a1b8+f8b568069f,22.0.1-3-gaaec9c0+c5c846a8b1,22.0.1-32-g5ddfab5d3+60ce4897b0,22.0.1-4-g037fbe1+64e601228d,22.0.1-4-g8623105+b8044ec9de,22.0.1-5-g096abc9+d18c45d440,22.0.1-5-g15c806e+57f5c03693,22.0.1-7-gba73697+57f5c03693,master-g6e05de7fdc+c1283a92b8,master-g72cdda8301+729191ecac,w.2021.39
LSST Data Management Base Package
|
Public Member Functions | |
def | __init__ (self, butler=None, schema=None, **kwargs) |
def | getWcs (self, dataRef) |
def | fetchInPatches (self, dataRef, patchList) |
def | fetchInBox (self, dataRef, bbox, wcs, pad=0) |
def | getSchema (self, butler) |
def | fetchInBox (self, dataRef, bbox, wcs) |
def | subset (self, sources, bbox, wcs) |
Public Attributes | |
schema | |
Static Public Attributes | |
ConfigClass = CoaddSrcReferencesConfig | |
string | datasetSuffix = "src" |
Select reference sources by loading the “coadd source” dataset directly. The name of the dataset to read is generated by appending the `datasetSuffix` attribute to the string ``Coadd_``. The dataset is then read directly from disk using the Butler. Parameters ---------- schema : `lsst.afw.table.Schema`, optional The schema of the detection catalogs used as input to this one. butler : `lsst.daf.persistence.butler.Butler`, optional A Butler used to read the input schema from disk. Required if ``schema`` is `None`. Notes ----- The task will set its own ``self.schema`` attribute to the schema of the output merged catalog.
Definition at line 236 of file references.py.
def lsst.meas.base.references.CoaddSrcReferencesTask.__init__ | ( | self, | |
butler = None , |
|||
schema = None , |
|||
** | kwargs | ||
) |
Reimplemented from lsst.meas.base.references.BaseReferencesTask.
Definition at line 265 of file references.py.
|
inherited |
Return reference sources within a given bounding box. Reference sources are selected if they overlap a region defined by a pixel-coordinate bounding box and corresponding WCS. Parameters ---------- dataRef : `lsst.daf.persistence.ButlerDataRef` Butler data reference. The implied data ID must contain the ``tract`` key. bbox : `lsst.afw.geom.Box2I` or `lsst.afw.geom.Box2D` Defines the selection region in pixel coordinates. wcs : `lsst.afw.image.SkyWcs` Maps ``bbox`` to sky coordinates. Returns ------- sources : iterable of `~lsst.afw.table.SourceRecord` Reference sources. May be any Python iterable, including a lazy iterator. Notes ----- The returned set of sources should be complete and close to minimal.
Definition at line 108 of file references.py.
def lsst.meas.base.references.CoaddSrcReferencesTask.fetchInBox | ( | self, | |
dataRef, | |||
bbox, | |||
wcs, | |||
pad = 0 |
|||
) |
Return reference sources within a given bounding box. Reference sources are selected if they overlap a region defined by a pixel-coordinate bounding box and corresponding WCS. Parameters ---------- dataRef : `lsst.daf.persistence.ButlerDataRef` Butler data reference. The implied data ID must contain the ``tract`` key. bbox : `lsst.afw.geom.Box2I` or `lsst.afw.geom.Box2D` Defines the selection region in pixel coordinates. wcs : `lsst.afw.image.SkyWcs` Maps ``bbox`` to sky coordinates. pad : `int` a buffer to grow the bounding box by after catalogs have been loaded, but before filtering them to include just the given bounding box. Returns ------- sources : iterable of `~lsst.afw.table.SourceRecord` Reference sources. May be any Python iterable, including a lazy iterator.
Definition at line 329 of file references.py.
def lsst.meas.base.references.CoaddSrcReferencesTask.fetchInPatches | ( | self, | |
dataRef, | |||
patchList | |||
) |
Fetch the source catalog using the Butler. Parameters ---------- dataRef : `lsst.daf.persistence.ButlerDataRef` Butler data reference. The implied data ID must contain the ``tract`` key. patchList : `list` of `lsst.skymap.PatchInfo` Patches for which to fetch reference sources. Returns ------- sources : iterable of `~lsst.afw.table.SourceRecord` Reference sources. May be any Python iterable, including a lazy iterator. Notes ----- An implementation of `BaseReferencesTask.fetchInPatches` that loads ``Coadd_`` + `datasetSuffix` catalogs using the butler.
Reimplemented from lsst.meas.base.references.BaseReferencesTask.
Definition at line 284 of file references.py.
|
inherited |
Return the schema for the reference sources. Parameters ---------- butler : `lsst.daf.persistence.butler.Butler` Data butler from which the schema will be fetched. Notes ----- Must be available even before any data has been processed.
Definition at line 83 of file references.py.
def lsst.meas.base.references.CoaddSrcReferencesTask.getWcs | ( | self, | |
dataRef | |||
) |
Return the WCS for reference sources. Parameters ---------- dataRef : `lsst.daf.persistence.ButlerDataRef` Butler data reference. Must includ the trac in its dataId.
Reimplemented from lsst.meas.base.references.BaseReferencesTask.
Definition at line 273 of file references.py.
|
inherited |
Filter a list of sources to only those within the bounding box. Parameters ---------- sources : iterable of `~lsst.afw.table.SourceRecord` Reference sources. May be any Python iterable, including a lazy iterator. bbox : `lsst.afw.geom.Box2I` or `lsst.afw.geom.Box2D` Defines the selection region. wcs : `lsst.afw.image.SkyWcs` Maps ``bbox`` to sky coordinates. Returns ------- sources : iterable of `~lsst.afw.table.SourceRecord` Filtered sources. May be any Python iterable, including a lazy iterator. Notes ----- 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 replacement with noise 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 162 of file references.py.
|
static |
Definition at line 257 of file references.py.
|
static |
Definition at line 261 of file references.py.
lsst.meas.base.references.CoaddSrcReferencesTask.schema |
Definition at line 271 of file references.py.