Under the hood, there are 3 separate classes that perform different parts of the transformation:
Additionally, the class WCS aggregates all of these transformations together in a pipeline:
- Detector to image plane correction (by a pair of DistortionLookupTable objects).
- SIP distortion correction (by an underlying Sip object)
- Paper IV table-lookup distortion correction (by a pair of DistortionLookupTable objects).
- wcslib WCS transformation (by a Wcsprm object)
The unit tests are written for use with nose. To run them, install pywcs and then at the commandline:
nosetests pywcs.tests