LSSTApplications
10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
|
Public Member Functions | |
def | getInfo |
def | getInfoFromMetadata |
def | translate_date |
def | translate_filter |
def | getDestination |
Static Public Member Functions | |
def | getExtensionName |
Static Public Attributes | |
ConfigClass = ParseConfig | |
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 | |||
) |
|
static |
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 79 of file ingest.py.
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. @param filename Name of file to inspect @return File properties; list of file properties for each extension
Definition at line 47 of file ingest.py.
def lsst.pipe.tasks.ingest.ParseTask.getInfoFromMetadata | ( | self, | |
md, | |||
info = {} |
|||
) |
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 91 of file ingest.py.
def lsst.pipe.tasks.ingest.ParseTask.translate_date | ( | self, | |
md | |||
) |
def lsst.pipe.tasks.ingest.ParseTask.translate_filter | ( | self, | |
md | |||
) |
|
static |