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 | addEntry |
def | setAttributes |
Private Member Functions | |
def | _applyVal |
Class to hold mapping of header cards to attributes
Definition at line 31 of file fitsUtils.py.
|
private |
Definition at line 68 of file fitsUtils.py.
def lsst.afw.cameraGeom.fitsUtils.HeaderMap.addEntry | ( | self, | |
keyname, | |||
attribute_name, | |||
default = None , |
|||
transform = lambda x: x |
|||
) |
Adds an entry to the registr @param[in] keyname Key used to retrieve the header record @param[in] attribute_name Name of the attribute to store the value in @param[jn] default Default velue to store if the header card is not available @param[in] transform Transform to apply to the header value before assigning it to the attribute.
Definition at line 33 of file fitsUtils.py.
def lsst.afw.cameraGeom.fitsUtils.HeaderMap.setAttributes | ( | self, | |
obj, | |||
metadata, | |||
doRaise = True |
|||
) |
Sets the attributes on the give object given a metadata object. @param[in, out] obj Object on which to operate in place @param[in] metadata Metadata object used for applying the mapping @param[in] doRaise Raise exceptions on calling methods on the input object that do not exist?
Definition at line 45 of file fitsUtils.py.