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 | __init__ |
def | buildDetector |
def | makeCalib |
def | makeExposure |
Public Attributes | |
inAmpCoords | |
defaultAmpMap | |
defaultDetectorMap | |
detectorMetadata | |
ampMetadataList | |
detector | |
doRaise | |
plateScale | |
focalPlaneToPupil | |
Private Member Functions | |
def | _sanitizeHeaderMetadata |
def | _defaultSanitization |
def | _makeDefaultAmpMap |
def | _makeDefaultDetectorMap |
def | _makeExt |
def | _makeBbox |
def | _getBboxX0 |
def | _getBboxX1 |
def | _getBboxY0 |
def | _getBboxY1 |
def | _makeRadialTransform |
Definition at line 85 of file fitsUtils.py.
def lsst.afw.cameraGeom.fitsUtils.DetectorBuilder.__init__ | ( | self, | |
detectorFileName, | |||
ampFileNameList, | |||
inAmpCoords = True , |
|||
plateScale = 1. , |
|||
radialCoeffs = (0., 1. , |
|||
clobberMetadata = False , |
|||
doRaise = True |
|||
) |
@param[in] detectorFileName FITS file containing the detector description. May use [] notation to specify an extension in an MEF. @param[in] ampFileNameList List of FITS file names to use in building the amps. May contain duplicate entries if the raw data are assembled. @param[in] inAmpCoords Boolean, True if raw data are in amp coordinates, False if raw data are assembled into pseudo detector pixel arrays @param[in] plateScale Nominal platescale (arcsec/mm) @param[in] radialCoeffs Radial distortion coefficients for a radial polynomial in normalized units. @param[in] clobberMetadata Clobber metadata from input files if overridden in the _sanitizeMetadata method @param[in] doRaise Raise exception if not all non-defaulted keywords are defined? Default is True.
Definition at line 87 of file fitsUtils.py.
|
private |
Does the default sanitization of the header metadata. @param[in,out] metadata Header metadata to extend/modify @param[in] clobber Override values in existing header cards?
Definition at line 123 of file fitsUtils.py.
|
private |
Definition at line 246 of file fitsUtils.py.
|
private |
Definition at line 249 of file fitsUtils.py.
|
private |
Definition at line 252 of file fitsUtils.py.
|
private |
Definition at line 255 of file fitsUtils.py.
|
private |
Helper funtion to make a bounding box from a string representing a FITS style bounding box @param[in] boxString String describing the bounding box @return Box2I for the bounding box
Definition at line 232 of file fitsUtils.py.
|
private |
Make the default map from header information to amplifier information @return The HeaderAmpMap object containing the mapping
Definition at line 170 of file fitsUtils.py.
|
private |
Make the default map from header information to detector information @return The HeaderDetectorMap object containing the mapping
Definition at line 197 of file fitsUtils.py.
|
private |
Helper function to make an extent from an array @param[in] extArr Length 2 array to use in creating the Extent object @return Extent2I constructed from the input list
Definition at line 225 of file fitsUtils.py.
|
private |
Helper function to get the radial transform given the radial polynomial coefficients given in the constructor. @param[in] radialCoeffs List of coefficients describing a polynomial radial distortion in normalized units. @return RadialXYTransform object describing the radial distortion
Definition at line 258 of file fitsUtils.py.
|
private |
This method is called for all metadata and gives an opportunity to add/modify header information for use downstream. Override this method if more than the default is needed. @param[in, out] metadata Metadata to read/modify @param[in] clobber Clobber keys that exist with default keys?
Definition at line 114 of file fitsUtils.py.
def lsst.afw.cameraGeom.fitsUtils.DetectorBuilder.buildDetector | ( | self | ) |
Take all the information and build a Detector object. The Detector object is necessary for doing things like assembly. @return Detector object
Definition at line 268 of file fitsUtils.py.
def lsst.afw.cameraGeom.fitsUtils.DetectorBuilder.makeCalib | ( | self | ) |
PLaceholder for subclasses to implement construction of a calib to associate with the exposure. @return empty afwImage.Calib object
Definition at line 289 of file fitsUtils.py.
def lsst.afw.cameraGeom.fitsUtils.DetectorBuilder.makeExposure | ( | self, | |
im, | |||
mask = None , |
|||
variance = None |
|||
) |
Method for constructing an exposure object from an image and the information contained in this class to construct the Detector and Calib objects. @param[in] im Image used to construct the exposure @param[in] mask Optional mask plane as a <askU @param[in] variance Optional variance plance as an image of the same type as im @param[out] Exposure object
Definition at line 295 of file fitsUtils.py.
lsst.afw.cameraGeom.fitsUtils.DetectorBuilder.ampMetadataList |
Definition at line 105 of file fitsUtils.py.
lsst.afw.cameraGeom.fitsUtils.DetectorBuilder.defaultAmpMap |
Definition at line 101 of file fitsUtils.py.
lsst.afw.cameraGeom.fitsUtils.DetectorBuilder.defaultDetectorMap |
Definition at line 102 of file fitsUtils.py.
lsst.afw.cameraGeom.fitsUtils.DetectorBuilder.detector |
Definition at line 106 of file fitsUtils.py.
lsst.afw.cameraGeom.fitsUtils.DetectorBuilder.detectorMetadata |
Definition at line 103 of file fitsUtils.py.
lsst.afw.cameraGeom.fitsUtils.DetectorBuilder.doRaise |
Definition at line 107 of file fitsUtils.py.
lsst.afw.cameraGeom.fitsUtils.DetectorBuilder.focalPlaneToPupil |
Definition at line 112 of file fitsUtils.py.
lsst.afw.cameraGeom.fitsUtils.DetectorBuilder.inAmpCoords |
Definition at line 100 of file fitsUtils.py.
lsst.afw.cameraGeom.fitsUtils.DetectorBuilder.plateScale |
Definition at line 111 of file fitsUtils.py.