lsst.obs.decam  19.0.0-25-gbdfd142+2
Public Member Functions | Static Public 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)
 

Static Public Member Functions

def getExtensionName (md)
 

Member Function Documentation

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

◆ getExtensionName()

def lsst.obs.decam.ingestCalibs.DecamCalibsParseTask.getExtensionName (   md)
static
Get the name of the extension.

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

Returns
-------
result : `str`
    The string from the EXTNAME header card.

◆ getInfo()

def lsst.obs.decam.ingestCalibs.DecamCalibsParseTask.getInfo (   self,
  filename 
)
Get information about the image from the filename and/or its contents.

Parameters
----------
filename: `str`
    Name of file to inspect.

Returns
-------
phuInfo : `dict`
    Primary header unit info.
infoList : `list` of `dict`
    File properties; list of file properties 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.

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