Source code for astropy.wcs

# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""World Coordinate System (WCS) transformations in FITS files.

.. _wcslib:
.. _distortion paper:
.. _SIP:
.. _FITS WCS standard:

`astropy.wcs` contains utilities for managing World Coordinate System
(WCS) transformations in FITS files.  These transformations map the
pixel locations in an image to their real-world units, such as their
position on the sky sphere.

It performs three separate classes of WCS transformations:

- Core WCS, as defined in the `FITS WCS standard`_, based on Mark
  Calabretta's `wcslib`_.  See `~astropy.wcs.Wcsprm`.
- Simple Imaging Polynomial (`SIP`_) convention.  See
- table lookup distortions as defined in WCS `distortion paper`_.  See

Each of these transformations can be used independently or together in
a standard pipeline.

from . import utils
from .wcs import *
from .wcs import InvalidTabularParametersError  # just for docs

[docs] def get_include(): """ Get the path to astropy.wcs's C header files. """ import os return os.path.join(os.path.dirname(__file__), "include")