lsst.obs.decam gff490e6085+238a0b469f
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
lsst.obs.decam.ingestCalibs.DecamCalibsParseTask Class Reference
Inheritance diagram for lsst.obs.decam.ingestCalibs.DecamCalibsParseTask:

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)
 

Protected Member Functions

def _translateFromCalibId (self, field, md)
 

Detailed Description

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).

Member Function Documentation

◆ _translateFromCalibId()

def lsst.obs.decam.ingestCalibs.DecamCalibsParseTask._translateFromCalibId (   self,
  field,
  md 
)
protected
Fetch the ID from the CALIB_ID header.

Calibration products made with constructCalibs have some metadata
saved in its FITS header CALIB_ID.

◆ getDestination()

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.

◆ getInfo()

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.

◆ translate_ccdnum()

def lsst.obs.decam.ingestCalibs.DecamCalibsParseTask.translate_ccdnum (   self,
  md 
)
Return CCDNUM as a integer.

Parameters
----------
md : `lsst.daf.base.PropertySet`
    FITS header metadata.

◆ translate_date()

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.

◆ translate_filter()

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.

The documentation for this class was generated from the following file: