|
LSST Applications g00d0e8bbd7+edbf708997,g03191d30f7+9ce8016dbd,g1955dfad08+0bd186d245,g199a45376c+5137f08352,g1fd858c14a+a888a50aa2,g262e1987ae+45f9aba685,g29ae962dfc+1c7d47a24f,g2cef7863aa+73c82f25e4,g35bb328faa+edbf708997,g3fd5ace14f+eed17d2c67,g47891489e3+6dc8069a4c,g53246c7159+edbf708997,g64539dfbff+c4107e45b5,g67b6fd64d1+6dc8069a4c,g74acd417e5+f452e9c21a,g786e29fd12+af89c03590,g7ae74a0b1c+a25e60b391,g7aefaa3e3d+2025e9ce17,g7cc15d900a+2d158402f9,g87389fa792+a4172ec7da,g89139ef638+6dc8069a4c,g8d4809ba88+c4107e45b5,g8d7436a09f+e96c132b44,g8ea07a8fe4+db21c37724,g98df359435+aae6d409c1,ga2180abaac+edbf708997,gac66b60396+966efe6077,gb632fb1845+88945a90f8,gbaa8f7a6c5+38b34f4976,gbf99507273+edbf708997,gca7fc764a6+6dc8069a4c,gd7ef33dd92+6dc8069a4c,gda68eeecaf+7d1e613a8d,gdab6d2f7ff+f452e9c21a,gdbb4c4dda9+c4107e45b5,ge410e46f29+6dc8069a4c,ge41e95a9f2+c4107e45b5,geaed405ab2+e194be0d2b,w.2025.47
LSST Data Management Base Package
|
Classes | |
| class | DrpAssociationPipeConnections |
Functions | |
| _stackCatalogs (self, catalogs, remove_columns=None, empty=None) | |
| runSolarSystemAssociation (self, diaCat, ssCat, visitSummary, patchBbox, patchWcs, innerTractSkyRegion, detector, visit) | |
| _addDiaObjectCoords (self, objects, sources) | |
| _trimToPatch (self, cat, patchBox, wcs, innerTractSkyRegion=None) | |
| dropDiaSourceByDiaObjectId (self, droppedDiaObjectIds, diaSources) | |
| prepareCatalogDict (dataRefList, useVisitDetector=True) | |
Variables | |
| diaCat = ssoAssocResult.unassociatedDiaSources | |
| nSsSrc | |
| nSsObj | |
| diaInPatch = self._trimToPatch(diaCat.to_pandas(), outerPatchBox, skyInfo.wcs) | |
| nDiaSrc = diaInPatch.sum() | |
| diaSourceHistoryCat = self._stackCatalogs(diaSourceHistory) | |
| ssSourceHistoryCat = self._stackCatalogs(ssSourceHistory, remove_columns=['ra', 'dec']) | |
| int | nSsSrcTotal = len(ssSourceHistoryCat) if ssSourceHistoryCat else 0 |
| unassociatedSsObjectHistoryCat = self._stackCatalogs(unassociatedSsObjectHistory) | |
| int | nSsObjTotal = len(unassociatedSsObjectHistoryCat) if unassociatedSsObjectHistoryCat else 0 |
| diaSourceTable = diaSourceHistoryCat.to_pandas() | |
| drop | |
| assocResult = self.associator.run(diaSourceTable, idGenerator=idGenerator) | |
| objectsInTractPatch | |
| diaObjects = assocResult.diaObjects[objectsInTractPatch] | |
| assocDiaSources | |
| diaObjectTable | |
| assocDiaSourceTable | |
| associatedSsSources | |
| unassociatedSsObjects | |
Pipeline for running DiaSource association in a DRP context.
|
protected |
Definition at line 447 of file drpAssociationPipe.py.
|
protected |
Stack a list of catalogs.
Parameters
----------
catalogs : `list` of `astropy.table.Table`
Input catalogs with the same columns to be combined.
remove_columns : `list` of `str` or None, optional
List of column names to drop from the tables before stacking.
Returns
-------
`astropy.table.Table`
The combined catalog.
Definition at line 341 of file drpAssociationPipe.py.
|
protected |
Create generator testing if a set of DiaSources are in the
patch/tract.
Parameters
----------
cat : `pandas.DataFrame`
Catalog of DiaSources to test within patch/tract.
patchBox : `lsst.geom.Box2D`
Bounding box of the patch.
wcs : `lsst.geom.SkyWcs`
Wcs of the tract.
innerTractSkyRegion : `lsst.sphgeom.Box`, optional
Region defining the inner non-overlapping part of a tract.
Returns
-------
isInPatch : `numpy.ndarray`, (N,)
Booleans representing if the DiaSources are contained within the
current patch and tract.
Definition at line 453 of file drpAssociationPipe.py.
| lsst.pipe.tasks.drpAssociationPipe.dropDiaSourceByDiaObjectId | ( | self, | |
| droppedDiaObjectIds, | |||
| diaSources ) |
Drop diaSources with diaObject IDs in the supplied list.
Parameters
----------
droppedDiaObjectIds : `pandas.DataFrame`
DiaObjectIds to match and drop from the list of diaSources.
diaSources : `pandas.DataFrame`
Catalog of diaSources to check and filter.
Returns
-------
filteredDiaSources : `pandas.DataFrame`
The input diaSources with any rows matching the listed diaObjectIds
removed.
Definition at line 488 of file drpAssociationPipe.py.
| lsst.pipe.tasks.drpAssociationPipe.prepareCatalogDict | ( | dataRefList, | |
| useVisitDetector = True ) |
Prepare lookup tables of the data references.
Parameters
----------
dataRefList : `list` of `lsst.daf.butler.DeferredDatasetHandle`
The data references to make a lookup table for.
useVisitDetector : `bool`, optional
Use both visit and detector in the dict key? If False, use only visit.
Returns
-------
`dict` of `lsst.daf.butler.DeferredDatasetHandle`
Lookup table of the data references by visit (and optionally detector)
Definition at line 510 of file drpAssociationPipe.py.
| lsst.pipe.tasks.drpAssociationPipe.runSolarSystemAssociation | ( | self, | |
| diaCat, | |||
| ssCat, | |||
| visitSummary, | |||
| patchBbox, | |||
| patchWcs, | |||
| innerTractSkyRegion, | |||
| detector, | |||
| visit ) |
Run Solar System object association and filter the results.
Parameters
----------
diaCat : `pandas.DataFrame`
Catalog of detected diaSources on the image difference.
ssCat : `astropy.table.Table`
Catalog of predicted coordinates of known Solar System objects.
visitSummary : `lsst.afw.table.ExposureCatalog`
Table of calibration and metadata for all detectors in a visit.
patchBbox : `lsst.geom.Box2D`
Bounding box of the patch.
patchWcs : `lsst.geom.SkyWcs`
Wcs of the tract containing the patch.
innerTractSkyRegion : `lsst.sphgeom.Box`
Region defining the inner non-overlapping part of a tract.
detector : `int`
Detector number of the science exposure.
visit : `int`
Visit number of the science exposure.
Returns
-------
ssoAssocResult : `lsst.pipe.base.Struct`
Results struct with attributes:
``associatedSsSources``
Table of DiaSources associated with Solar System objects.
(`astropy.table.Table`)
``associatedSsDiaSources``
Table of Solar System objects associated with DiaSources.
(`astropy.table.Table`).
``unassociatedSsObjects``
Table of Solar System objects in the patch not associated with
any DiaSource (`astropy.table.Table`).
``unassociatedDiaSources``
Table of DiaSources not associated with any Solar System object
(`astropy.table.Table`).
Definition at line 364 of file drpAssociationPipe.py.
| lsst.pipe.tasks.drpAssociationPipe.assocDiaSources |
Definition at line 326 of file drpAssociationPipe.py.
| lsst.pipe.tasks.drpAssociationPipe.assocDiaSourceTable |
Definition at line 336 of file drpAssociationPipe.py.
| lsst.pipe.tasks.drpAssociationPipe.associatedSsSources |
Definition at line 337 of file drpAssociationPipe.py.
| lsst.pipe.tasks.drpAssociationPipe.assocResult = self.associator.run(diaSourceTable, idGenerator=idGenerator) |
Definition at line 313 of file drpAssociationPipe.py.
| lsst.pipe.tasks.drpAssociationPipe.diaCat = ssoAssocResult.unassociatedDiaSources |
Definition at line 264 of file drpAssociationPipe.py.
| lsst.pipe.tasks.drpAssociationPipe.diaInPatch = self._trimToPatch(diaCat.to_pandas(), outerPatchBox, skyInfo.wcs) |
Definition at line 272 of file drpAssociationPipe.py.
| lsst.pipe.tasks.drpAssociationPipe.diaObjects = assocResult.diaObjects[objectsInTractPatch] |
Definition at line 321 of file drpAssociationPipe.py.
| lsst.pipe.tasks.drpAssociationPipe.diaObjectTable |
Definition at line 335 of file drpAssociationPipe.py.
| lsst.pipe.tasks.drpAssociationPipe.diaSourceHistoryCat = self._stackCatalogs(diaSourceHistory) |
Definition at line 291 of file drpAssociationPipe.py.
| lsst.pipe.tasks.drpAssociationPipe.diaSourceTable = diaSourceHistoryCat.to_pandas() |
Definition at line 310 of file drpAssociationPipe.py.
| lsst.pipe.tasks.drpAssociationPipe.drop |
Definition at line 311 of file drpAssociationPipe.py.
| lsst.pipe.tasks.drpAssociationPipe.nDiaSrc = diaInPatch.sum() |
Definition at line 274 of file drpAssociationPipe.py.
| lsst.pipe.tasks.drpAssociationPipe.nSsObj |
Definition at line 266 of file drpAssociationPipe.py.
| int lsst.pipe.tasks.drpAssociationPipe.nSsObjTotal = len(unassociatedSsObjectHistoryCat) if unassociatedSsObjectHistoryCat else 0 |
Definition at line 296 of file drpAssociationPipe.py.
| lsst.pipe.tasks.drpAssociationPipe.nSsSrc |
Definition at line 266 of file drpAssociationPipe.py.
| int lsst.pipe.tasks.drpAssociationPipe.nSsSrcTotal = len(ssSourceHistoryCat) if ssSourceHistoryCat else 0 |
Definition at line 294 of file drpAssociationPipe.py.
| lsst.pipe.tasks.drpAssociationPipe.objectsInTractPatch |
Definition at line 317 of file drpAssociationPipe.py.
| lsst.pipe.tasks.drpAssociationPipe.ssSourceHistoryCat = self._stackCatalogs(ssSourceHistory, remove_columns=['ra', 'dec']) |
Definition at line 293 of file drpAssociationPipe.py.
| lsst.pipe.tasks.drpAssociationPipe.unassociatedSsObjectHistoryCat = self._stackCatalogs(unassociatedSsObjectHistory) |
Definition at line 295 of file drpAssociationPipe.py.
| lsst.pipe.tasks.drpAssociationPipe.unassociatedSsObjects |
Definition at line 338 of file drpAssociationPipe.py.