Reference/API#
astropy.wcs Package#
World Coordinate System (WCS) transformations in FITS files.
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
Wcsprm
.table lookup distortions as defined in WCS distortion paper. See
DistortionLookupTable
.
Each of these transformations can be used independently or together in a standard pipeline.
Functions#
|
Find all the WCS transformations in the given header. |
Get the path to astropy.wcs's C header files. |
|
|
Prints a WCS validation report for the given FITS file. |
Classes#
|
Class that contains auxiliary coordinate system information of a specialist nature. |
Class that contains information required to transform celestial coordinates. |
|
|
Represents a single lookup table for a distortion paper transformation. |
The warning raised when the contents of the FITS header have been modified to be standards compliant. |
|
The WCS header inconsistent or unrecognized coordinate axis type(s). |
|
One or more of the world coordinates is invalid. |
|
The given projection parameters are invalid. |
|
The subimage specification is invalid. |
|
The given tabular parameters are invalid. |
|
The WCS transformation is invalid, or the transformation parameters are invalid. |
|
|
An error class used to report non-convergence and/or divergence of numerical methods. |
No solution can be found in the given interval. |
|
No WCS keywords were found in the given header. |
|
Non-separable subimage coordinate system. |
|
Class that contains information needed to project or deproject native spherical coordinates. |
|
The linear transformation matrix is singular. |
|
|
The |
|
A class to store the information related to tabular coordinates, i.e., coordinates that are defined via a lookup table. |
|
WCS objects perform standard WCS transformations, and correct for SIP and distortion paper table-lookup transformations, based on the WCS keywords and supplementary data read from a FITS file. |
|
Wcs objects amalgamate basic WCS (as provided by wcslib), with SIP and distortion paper operations. |
Base class of all invalid WCS errors. |
|
|
|
|
Classes to construct coordinate lookup tables from a binary table extension (BINTABLE). |
Class Inheritance Diagram#
astropy.wcs.utils Module#
Functions#
|
Convert a WCS obsgeo property into an ITRS coordinate frame. |
|
Add a new Stokes axis that is uncorrelated with any other axes. |
|
For a given coordinate frame, return the corresponding WCS object. |
For a given WCS, return the coordinate frame that matches the celestial component of the WCS. |
|
For a WCS returns pixel scales along each axis of the image pixel at the |
|
For a celestial WCS (see |
|
|
For a WCS returns |
|
Calculate the pixel scale along each axis of a non-celestial WCS, for example one with mixed spectral and spatial axes. |
|
Convert a set of SkyCoord coordinates into pixels. |
|
Convert a set of pixel coordinates into a |
|
Transform pixel coordinates in a dataset with a WCS to pixel coordinates in another dataset with a different WCS. |
|
Return a matrix of shape |
|
Given two matching sets of coordinates on detector and sky, compute the WCS. |
Classes#
|
|
|
Class Inheritance Diagram#
astropy.wcs.wcsapi Package#
Functions#
|
Deserialize classes recursively. |
|
Given a slice as input sanitise it to an easier to parse format.format. |
|
Validate a list of physical types against the UCD1+ standard. |
|
Classes#
Abstract base class for the high-level WCS interface. |
|
Abstract base class for the low-level WCS interface. |
|
|
A base wrapper class for things that modify Low Level WCSes. |
Mix-in class that automatically provides the high-level WCS API for the low-level WCS object given by the |
|
|
Wrapper class that can take any |
|
A Low Level WCS wrapper which applies an array slice to a WCS. |