PhotodiodeIngestTask#

class lsst.obs.lsst.PhotodiodeIngestTask(butler, instrument, config=None, **kwargs)#

Bases: IsrCalibIngestTask

Task to ingest photodiode data into a butler repository.

Parameters#

configPhotodiodeIngestConfig

Configuration for the task.

instrumentInstrument

The instrument these photodiode datasets are from.

butlerButler

Writable butler instance, with butler.run set to the appropriate RUN collection for these datasets.

**kwargs

Additional keyword arguments.

Methods Summary

getAssociationInfo(inputFile, calib, calibType)

Determine the information needed to create a dataId for this dataset.

getDatasetType()

Return the DatasetType to be ingested.

getDestinationCollection()

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#

inputFilelsst.resources.ResourcePath

Original file containing the dataset. Used for log messages.

caliblsst.ip.isr.IsrCalib

The calibration dataset to study.

calibTypestr

The calibration type/version name.

Returns#

instrumentNamestr

Instrument this dataset belongs to.

whereClausestr

Butler query “where” that will find the exposure with matching dataId.

bindingdict [str: str]

Binding values for whereClause.

logIdstr

A string (or dataset convertable to string) to be used in downstream logs.

getDatasetType()#

Return the DatasetType to be ingested.

Returns#

datasetTypelsst.daf.butler.DatasetType

The datasetType for the ingested data.

getDestinationCollection()#

Return the collection that these datasets will be ingested to.

Returns#

collectionNamestr

The collection the data will be ingested to.

readCalibFromFile(inputFile)#

Read the inputFile, and determine its calibration type and read it.

Parameters#

inputFilelsst.resources.ResourcePath

File to be read to check ingestibility.

Returns#

caliblsst.ip.isr.IsrCalib

The appropriately subclassed implementation for this calibration type.

calibTypestr

The calibration type/version name.