PhotodiodeIngestTask#
- class lsst.obs.lsst.PhotodiodeIngestTask(butler, instrument, config=None, **kwargs)#
Bases:
IsrCalibIngestTaskTask to ingest photodiode data into a butler repository.
Parameters#
- config
PhotodiodeIngestConfig Configuration for the task.
- instrument
Instrument The instrument these photodiode datasets are from.
- butler
Butler Writable butler instance, with
butler.runset to the appropriateRUNcollection for these datasets.- **kwargs
Additional keyword arguments.
Methods Summary
getAssociationInfo(inputFile, calib, calibType)Determine the information needed to create a dataId for this dataset.
Return the DatasetType to be ingested.
Return the collection that these datasets will be ingested to.
readCalibFromFile(inputFile)Read the inputFile, and determine its calibration type and read it.
Methods Documentation
- getAssociationInfo(inputFile, calib, calibType)#
Determine the information needed to create a dataId for this dataset.
Parameters#
- inputFile
lsst.resources.ResourcePath Original file containing the dataset. Used for log messages.
- calib
lsst.ip.isr.IsrCalib The calibration dataset to study.
- calibType
str The calibration type/version name.
Returns#
- instrumentName
str Instrument this dataset belongs to.
- whereClause
str Butler query “where” that will find the exposure with matching dataId.
- binding
dict[str:str] Binding values for
whereClause.- logId
str A string (or dataset convertable to string) to be used in downstream logs.
- inputFile
- getDatasetType()#
Return the DatasetType to be ingested.
Returns#
- datasetType
lsst.daf.butler.DatasetType The datasetType for the ingested data.
- datasetType
- getDestinationCollection()#
Return the collection that these datasets will be ingested to.
Returns#
- collectionName
str The collection the data will be ingested to.
- collectionName
- readCalibFromFile(inputFile)#
Read the inputFile, and determine its calibration type and read it.
Parameters#
- inputFile
lsst.resources.ResourcePath File to be read to check ingestibility.
Returns#
- calib
lsst.ip.isr.IsrCalib The appropriately subclassed implementation for this calibration type.
- calibType
str The calibration type/version name.
- inputFile
- config