loadDiaSourcesFromApdb#

lsst.ap.association.loadDiaSourcesFromApdb(apdb, region, diaObjectIds, dateTime, schema, log)#

Load DiaSources from the Apdb based on their diaObjectId or location.

Parameters#

apdblsst.dax.apdb.Apdb

Database to load the DiaSources from.

regionsphgeom.Region

Region of interest, including any padding.

diaObjectIdspandas.Series

Ids of the DiaObjects to load the history for.

dateTimeastropy.time.Time

Time of the current visit.

schemadict of lsst.dax.apdb.apdbSchema.ApdbSchema

A dict of the schemas in the apdb.

loglogging.Logger

Log to report the loaded catalog to.

Returns#

diaSourcespandas.DataFrame

DiaSource history, indexed by diaObjectId, band, and diaSourceId.