AssociationL1DBProtoTask¶
-
class
lsst.ap.association.
AssociationL1DBProtoTask
(**kwargs)¶ Bases:
lsst.pipe.base.Task
Task wrapping
lsst.dax.ppdb
enabling it to be used in ap_association.Handles computation of HTM indices, trimming of DIAObject catalogs to the CCD geometry, and assuring input DIASource catalog schemas are compatible with the db.
Attributes Summary
dia_object_afw_schema
Retrieve the Schema of the DIAObjects in this database. dia_source_afw_schema
Retrieve the Schema of the DIASources in this database. Methods Summary
compute_indexer_id
(sphere_point)Compute the pixel index of the given point. load_dia_objects
(exposure)Load all DIAObjects within the exposure. load_dia_sources
(dia_obj_ids)Retrieve all DIASources associated with this collection of DIAObject ids. store_dia_objects
(dia_objects[, …])Store all DIAObjects in this SourceCatalog. store_dia_sources
(dia_sources[, …])Store all DIASources in this SourceCatalog. Attributes Documentation
-
dia_object_afw_schema
¶ Retrieve the Schema of the DIAObjects in this database.
Returns: - schema :
lsst.afw.table.Schema
Schema of the DIAObjects in this database.
- schema :
-
dia_source_afw_schema
¶ Retrieve the Schema of the DIASources in this database.
Returns: - schema :
lsst.afw.table.Schema
Schema of the DIASources in this database.
- schema :
Methods Documentation
-
compute_indexer_id
(sphere_point)¶ Compute the pixel index of the given point.
Parameters: - sphere_point :
lsst.afw.geom.SpherePoint
Point to compute pixel index for.
Returns: - index :
int
Index of the pixel the point is contained in.
- sphere_point :
-
load_dia_objects
(exposure)¶ Load all DIAObjects within the exposure.
Parameters: - exposure :
lsst.afw.image.Exposure
An exposure with a solved WCS representing the area on the sky to load DIAObjects.
Returns: - dia_objects :
lsst.afw.table.SourceCatalog
Catalog of DIAObjects that are contained with the the bounding box defined by the exposure bounding box.
- exposure :
-
load_dia_sources
(dia_obj_ids)¶ Retrieve all DIASources associated with this collection of DIAObject ids.
Parameters: - dia_obj_ids : array-like of
int
Id of the DIAObject that is associated with the DIASources of interest.
Returns: - dia_sources :
lsst.afw.table.SourceCatalog
SourceCatalog of DIASources
- dia_obj_ids : array-like of
-
store_dia_objects
(dia_objects, compute_spatial_index=False, exposure=None)¶ Store all DIAObjects in this SourceCatalog.
Parameters: - dia_objects :
lsst.afw.table.SourceCatalog
Catalog of DIAObjects to store.
- compute_spatial_index :
bool
If True, compute the spatial search indices using the indexer specified at class instantiation.
- exposure :
lsst.afw.image.Exposure
(optional) CcdExposure associated with these DIAObjects being inserted. Inserts the CcdVisitInfo for this exposure in the CcdVisitTable.
- dia_objects :
-
store_dia_sources
(dia_sources, associated_ids=None, exposure=None)¶ Store all DIASources in this SourceCatalog.
Parameters: - dia_sources :
lsst.afw.table.SourceCatalog
Catalog of DIASources to store.
- associated_ids : array-like of
int
(optional) DIAObject ids that have been associated with these DIASources
- exposure :
lsst.afw.image.Exposure
Exposure object the DIASources were detected in.
- dia_sources :
-