Python wrappers to WCSLIB
pywcs is a set of routines for handling the FITS World Coordinate System (WCS) standard. It is a thin wrapper around the high- and mid-level interfaces of Dr. Mark Calabretta’s WCSLIB available here:
In addition, there are extensions (written in C) to support Spitzer Simple Imaging Polynomial (SIP) convention keywords and Paper IV table lookup distortion.
Please direct any questions to:
pywcs includes its own copy of WCSLIB.
- Numpy 1.3 or later
- pyfits 1.4 or later
pywcs uses the standard Python distutils system to build and install itself. From the command line run:
python setup.py install
to install pywcs.
Optionally, the documentation can be built using Sphinx (http://sphinx.pocoo.org).
After installing pywcs, ‘cd’ into the ‘doc’ directory and:
The documentation is also available online at:
Support binary image arrays and pixel list format WCS by presenting a way to call wcslib’s wcsbth()
Updated underlying wcslib to version 4.5, which fixes the following:
- Fixed the interpretation of VELREF when translating AIPS-convention spectral types. Such translation is now handled by a new special- purpose function, spcaips(). The wcsprm struct has been augmented with an entry for velref which is filled by wcspih() and wcsbth(). Previously, selection by VELREF of the radio or optical velocity convention for type VELO was not properly handled.
Earlier versions of pywcs had two versions of every conversion method:
X(…) – treats the origin of pixel coordinates at (0, 0) X_fits(…) – treats the origin of pixel coordinates at (1, 1)
From version 1.3 onwards, there is only one method for each conversion, with an ‘origin’ argument:
- 0: places the origin at (0, 0), which is the C/Numpy convention.
- 1: places the origin at (1, 1), which is the Fortran/FITS convention.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|File Name & Checksum SHA256 Checksum Help||Version||File Type||Upload Date|
|pywcs-1.12-py2.7-win32.egg (467.1 kB) Copy SHA256 Checksum SHA256||2.7||Egg||Mar 14, 2014|
|pywcs-1.12.tar.gz (2.0 MB) Copy SHA256 Checksum SHA256||–||Source||Mar 14, 2014|
|pywcs-1.12.zip (2.4 MB) Copy SHA256 Checksum SHA256||–||Source||Mar 14, 2014|