Get a WCS from an exposureInfo, with distortion terms if possible.
If the WCS in the exposure is a pure TAN WCS and distortion information is available in the exposure's Detector, then return a DistortedTanWcs that combines the distortion information with the pure TAN WCS. Otherwise return the WCS in the exposureInfo without modification.
This function is intended as a temporary workaround until ISR puts a WCS with distortion information into its exposures.
- Parameters
-
| [in] | exposureInfo | exposure information (an lsst.afw.image.ExposureInfo), e.g. from exposure.getInfo() |
| [in] | log | an lsst.log.Log or None; if specified then a warning is logged if:
- the exposureInfo's WCS has no distortion and cannot be cast to a TanWcs
- the expousureInfo's detector has no TAN_PIXELS transform (distortion information)
|
- Exceptions
-
| RuntimeError | if exposureInfo has no WCS. |
Definition at line 60 of file utils.py.