lsst.pipe.tasks 21.0.0-180-gec3f5457+6afaa46061
|
Public Member Functions | |
def | getInfo (self, filename) |
def | getInfoFromMetadata (self, md, info=None) |
def | translate_date (self, md) |
def | translate_filter (self, md) |
def | getDestination (self, butler, info, filename) |
Static Public Member Functions | |
def | getExtensionName (md) |
Static Public Attributes | |
ConfigClass = ParseConfig | |
translator_class = None | |
Task that will parse the filename and/or its contents to get the required information for putting the file in the correct location and populating the registry.
def lsst.pipe.tasks.ingest.ParseTask.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
Reimplemented in lsst.pipe.tasks.ingestCalibs.CalibsParseTask.
|
static |
def lsst.pipe.tasks.ingest.ParseTask.getInfo | ( | self, | |
filename | |||
) |
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. Parameters ---------- filename : `str` Name of file to inspect Returns ------- phuInfo : `dict` File properties infoList : `list` List of file properties for each extension
def lsst.pipe.tasks.ingest.ParseTask.getInfoFromMetadata | ( | self, | |
md, | |||
info = None |
|||
) |
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
def lsst.pipe.tasks.ingest.ParseTask.translate_date | ( | self, | |
md | |||
) |
def lsst.pipe.tasks.ingest.ParseTask.translate_filter | ( | self, | |
md | |||
) |
|
static |
|
static |