lsst.pipe.tasks  13.0-66-gfbf2f2ce+5
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
lsst.pipe.tasks.ingestCalibs.CalibsParseTask Class Reference
Inheritance diagram for lsst.pipe.tasks.ingestCalibs.CalibsParseTask:
lsst.pipe.tasks.ingest.ParseTask

Public Member Functions

def getCalibType (self, filename)
 
def getDestination (self, butler, info, filename)
 
def getInfo (self, filename)
 
def getInfoFromMetadata (self, md, info={})
 
def translate_date (self, md)
 
def translate_filter (self, md)
 

Static Public Member Functions

def getExtensionName (md)
 

Static Public Attributes

 ConfigClass = ParseConfig
 

Detailed Description

Task that will parse the filename and/or its contents to get the
required information to populate the calibration registry.

Definition at line 19 of file ingestCalibs.py.

Member Function Documentation

◆ getCalibType()

def lsst.pipe.tasks.ingestCalibs.CalibsParseTask.getCalibType (   self,
  filename 
)
Return a a known calibration dataset type using
the observation type in the header keyword OBSTYPE

@param filename: Input filename

Definition at line 23 of file ingestCalibs.py.

◆ getDestination()

def lsst.pipe.tasks.ingestCalibs.CalibsParseTask.getDestination (   self,
  butler,
  info,
  filename 
)
Get destination for the file

@param butler      Data butler
@param info        File properties, used as dataId for the butler
@param filename    Input filename
@return Destination filename

Definition at line 44 of file ingestCalibs.py.

◆ getExtensionName()

def lsst.pipe.tasks.ingest.ParseTask.getExtensionName (   md)
staticinherited
Get the name of an extension.
@param md: PropertySet like one obtained from afwImage.readMetadata)
@return Name of the extension if it exists.  None otherwise.

Definition at line 92 of file ingest.py.

◆ getInfo()

def lsst.pipe.tasks.ingest.ParseTask.getInfo (   self,
  filename 
)
inherited
Get information about the image from the filename and its contents

Here, we open the image and parse the header, but one could also look at the filename itself
and derive information from that, or set values from the configuration.

@param filename    Name of file to inspect
@return File properties; list of file properties for each extension

Definition at line 57 of file ingest.py.

◆ getInfoFromMetadata()

def lsst.pipe.tasks.ingest.ParseTask.getInfoFromMetadata (   self,
  md,
  info = {} 
)
inherited
Attempt to pull the desired information out of the header

This is done through two mechanisms:
* translation: a property is set directly from the relevant header keyword
* translator: a property is set with the result of calling a method

The translator methods receive the header metadata and should return the
appropriate value, or None if the value cannot be determined.

@param md      FITS header
@param info    File properties, to be supplemented
@return info

Definition at line 104 of file ingest.py.

◆ translate_date()

def lsst.pipe.tasks.ingest.ParseTask.translate_date (   self,
  md 
)
inherited
Convert a full DATE-OBS to a mere date

Besides being an example of a translator, this is also generally useful.
It will only be used if listed as a translator in the configuration.

Definition at line 139 of file ingest.py.

◆ translate_filter()

def lsst.pipe.tasks.ingest.ParseTask.translate_filter (   self,
  md 
)
inherited
Translate a full filter description into a mere filter name

Besides being an example of a translator, this is also generally useful.
It will only be used if listed as a translator in the configuration.

Definition at line 151 of file ingest.py.

Member Data Documentation

◆ ConfigClass

lsst.pipe.tasks.ingest.ParseTask.ConfigClass = ParseConfig
staticinherited

Definition at line 55 of file ingest.py.


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