[Paper Review] New Features in AST - a WCS Management and Manipulation Library
This paper presents new features in the AST library for managing and manipulating world coordinate systems (WCS) in astronomy, including a Python interface (PyAST), support for FITS-WCS 'TAB' tables, and enhanced handling of distorted projections such as IRAF TNX/ZPX, Spitzer SIP, NOAO TPV, and SCAMP/TAN. The key contribution is improved interoperability and accuracy in WCS transformations across diverse astronomical software tools.
Recent developments in the AST library are described, including a Python interface, support for the FITS-WCS "-TAB" system for storing tabular co-ordinate information, and extended support for representing distortions in spatial projections, using several schemes in common use (IRAF TNX/ZPX, Spitzer SIP, NOAO TPV and SCAMP).
Motivation & Objective
- To extend AST with a Python interface (PyAST) for broader accessibility and integration with scientific Python stacks.
- To support the FITS-WCS 'TAB' algorithm for tabular coordinate information in FITS headers.
- To improve handling of distorted spatial projections used in modern astronomical instruments.
- To enhance compatibility with widely used tools like DS9 and GAIA through standardized WCS processing.
- To enable accurate world coordinate grid rendering, especially for complex projections with singularities or discontinuities.
Proposed method
- Implementing PyAST as a Python wrapper for the AST C library, bundling AST and depending only on numpy.
- Adding support for reading and writing FITS headers via PyFITS-compatible header objects in PyAST.
- Integrating iterative inverse transformation for SIP headers lacking explicit inverse polynomials.
- Recognizing and parsing multiple distortion schemes (TNX, ZPX, SIP, TPV, SCAMP/TAN, AUTOASTROM/TAN) by analyzing CTYPE and keyword patterns (e.g., PV, QV, or PV on latitude axis).
- Enabling matplotlib-based plotting with AST’s Plot class for accurate axis labeling and grid drawing within plot bodies.
- Using AST’s internal WCS modeling to interpret and render coordinate grids for projections like HEALPix and ZEA.
Experimental results
Research questions
- RQ1How can AST be extended to support modern, complex distortion models used in astronomical imaging?
- RQ2What is the most effective way to expose AST’s WCS functionality to Python-based scientific workflows?
- RQ3How can AST improve the accuracy and reliability of WCS transformations when inverse polynomials are missing?
- RQ4In what ways can AST enhance visualization of world coordinates in complex projections like all-sky or HEALPix?
- RQ5How can AST be integrated into popular astronomical software like DS9 to improve coordinate grid rendering?
Key findings
- PyAST provides a fully functional Python interface to AST with minimal dependencies, enabling seamless integration into scientific Python environments.
- AST now supports the FITS-WCS 'TAB' algorithm for tabular coordinate information, allowing storage and retrieval of non-linear, non-separable coordinate solutions.
- Iterative inverse transformation has been successfully implemented for SIP headers lacking explicit inverse polynomials, improving robustness.
- AST correctly distinguishes between SCAMP/TAN and standard TAN projections by detecting PV keywords on the latitude axis.
- The library now correctly interprets AUTOASTROM/TAN and TPV projections using QV keywords, ensuring compatibility with multiple software pipelines.
- DS9 version 7.0 adopted AST for all WCS transformations, confirming the library’s reliability and performance in production use.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.