standardizeAmplifierParameters¶
-
lsst.obs.base.formatters.fitsExposure.standardizeAmplifierParameters(parameters, on_disk_detector)¶ Preprocess the Exposure storage class’s “amp” and “detector” parameters
This checks the given objects for consistency with the on-disk geometry and converts amplifier IDs/names to Amplifier instances.
Parameters: - parameters :
dict Dictionary of parameters passed to formatter. See the Exposure storage class definition in daf_butler for allowed keys and values.
- on_disk_detector :
lsst.afw.cameraGeom.DetectororNone Detector that represents the on-disk image being loaded, or
Noneif this is unknown (and hence the user must provide one inparametersif “amp” is inparameters).
Returns: - amplifier :
lsst.afw.cameraGeom.AmplifierorNone An amplifier object that defines a subimage to load, or
Noneif there was no “amp” parameter.- detector :
lsst.afw.cameraGeom.DetectororNone A detector object whose amplifiers are in the same s/orientation state as the on-disk image. If there is no “amp” parameter,
on_disk_detectoris simply passed through.- regions_differ :
bool Trueif the on-disk detector and the detector given in the parameters had different bounding boxes for one or more regions. This can happen if the true overscan region sizes can only be determined when the image is actually read, but otherwise it should be considered user error.
- parameters :