|
lsst.obs.decam
21.0.0-2-g54e2caa+8dea2c2ab2
|
Public Member Functions | |
| def | getInfo (self, filename) |
| def | translate_ccdnum (self, md) |
| def | translate_date (self, md) |
| def | translate_filter (self, md) |
| def | getDestination (self, butler, info, filename) |
Parse calibration products for ingestion. Handle either DECam Community Pipeline calibration products or calibration products produced with the LSST Science Pipelines (i.e., pipe_drivers' constructBias.py and constructFlat.py).
| def lsst.obs.decam.ingestCalibs.DecamCalibsParseTask.getDestination | ( | self, | |
| butler, | |||
| info, | |||
| filename | |||
| ) |
Get destination for the file.
Parameters
----------
butler : `lsst.daf.persistence.Butler`
Data butler.
info : data ID
File properties, used as dataId for the butler.
filename : `str`
Input filename.
Returns
-------
raw : `str`
Destination filename.
| def lsst.obs.decam.ingestCalibs.DecamCalibsParseTask.getInfo | ( | self, | |
| filename | |||
| ) |
Retrieve path, calib_hdu, and possibly calibDate.
Parameters
----------
filename: `str`
Calibration file to inspect.
Returns
-------
phuInfo : `dict`
Primary header unit info.
infoList : `list` of `dict`
List of file properties to use for each extension.
| def lsst.obs.decam.ingestCalibs.DecamCalibsParseTask.translate_ccdnum | ( | self, | |
| md | |||
| ) |
Return CCDNUM as a integer.
Parameters
----------
md : `lsst.daf.base.PropertySet`
FITS header metadata.
| def lsst.obs.decam.ingestCalibs.DecamCalibsParseTask.translate_date | ( | self, | |
| md | |||
| ) |
Extract the date as a strong in format YYYY-MM-DD from the FITS header DATE-OBS.
Return "unknown" if the value cannot be found or converted.
Parameters
----------
md : `lsst.daf.base.PropertySet`
FITS header metadata.
| def lsst.obs.decam.ingestCalibs.DecamCalibsParseTask.translate_filter | ( | self, | |
| md | |||
| ) |
Extract the filter name.
Translate a full filter description into a mere filter name.
Return "unknown" if the keyword FILTER does not exist in the header,
which can happen for some valid Community Pipeline products.
Parameters
----------
md : `lsst.daf.base.PropertySet`
FITS header metadata.
Returns
-------
filter : `str`
The name of the filter to use in the calib registry.
1.8.18