Astropy
Developer(s) | The Astropy Collaboration |
---|---|
Stable release | 6.0.1[1]
/ 26 March 2024 |
Repository | |
Written in | BSD-new license |
Website | https://www.astropy.org/ |
Astropy is a collection of software packages written in the
Development
Around the turn of the millennium the Space Telescope Science Institute (STScI) started development of Python-based utilities to extend or substitute existing astronomical data analysis tools on a modern, object-oriented platform. Among the first projects were a replacement of the command language for the Image Reduction and Analysis Facility (IRAF) with a Python frontend,[8] and the PyFITS interface to the
By 2011, the use of Python in astronomy had reached significant levels. At the 2012 Astronomy meeting, 42% of attendees preferred Python according to an informal survey.[3] Many astronomy-related Python packages have been developed over the years, albeit without cooperation or coordination, which led to duplication and difficult interoperability between packages. There was also no easy way to install all the required packages needed in an astronomer’s toolkit. A number of smaller packages are sometimes no longer maintained or unavailable. The Astropy project started in 2011, motivated by these difficulties, and a desire to unite developers in astronomy to coordinate the development of a unified set of Python modules for astronomers, and reduce the confusion of available packages.[2]
The Space Telescope Science Institute, operators of the Hubble Space Telescope, are merging the work on Astropy into stsci_python releases. PyFITS and PyWCS will be maintained solely within Astropy, with separate releases of these packages stopping, after the next release. PyFITS has been included as part of the Astropy project, and as a result, the next release of STScI_Python will depend on Astropy for the PyFITS library instead of using this standalone release.[11]
Use
- The National Virtual Observatory Python integration includes support for the Astropy VOTable class[12]
- The Subaru Telescope Hyper Suprime-Cam, a 900-megapixel ultra-wide-field camera[13]
- A data mining toolkit for exploring large data cubes in radioastronomy from facilities like ALMA or CARMA.[14]
- pcigale, the port to Python of CIGALE (Code Investigating Galaxy Emission)[15]
- Analyzing the optical afterglow of gamma-ray bursts[16]
- The High Energy Astrophysics Science Archive Research Center (HEASARC) refers to Astropy as "A single core package for Astronomy in Python"
- Project PANOPTES "makes extensive use of the Astropy package"
- Astropy has been accepted to the Astrophysics Source Code Library – Starship Asterisk*[17]
Video sources
There are several videos recorded in seminars and conferences. These are intended to help beginners learn how Astropy works. The .Astronomy 4 meeting (9–11 July 2012) held a session on Astropy.[18]
Core functionality
This article is in prose. is available. (July 2017) |
Core data structures and operations
- Generalized container classes for representing gridded and tabular data as multidimensional arrays or tables[19]
- Unit and physical quantity conversions
- Physical constants specific to astronomy
- Celestial coordinateand time transformations
- World coordinate system (WCS) support, implementing PyWCS, the Python wrapper to WCSLIB. WCSLIB is a C library which implements the WCS standard in the
File I/O
- FITS files, implementing the former standalone PyFITS interface[22]
- Virtual Observatory(VO) tables
- Common ASCII table formats, e.g. for online catalogues or data supplements of scientific publications
- Hierarchical Data Format (HDF5) files
Computational utilities
- Framework for cosmological transformations and conversions
- Toolset for statistical analyses
Affiliated packages
A major part of the Astropy project is the concept of "affiliated packages”. An affiliated package is an astronomy-related Python package that is not part of the astropy core but has been suggested for inclusion as part of the project’s community. Such packages are intended to improve reuse, interoperability, and interface standards for Python astronomy and astrophysics packages. Current affiliated packages include:[23]
- montage-wrapper
- ginga
- APLpy
- astroML: tools for machine learning and data mining in astronomy
- Astropysics: library of IDL astronomy routines converted to Python.
- astroplan: observation planning for astronomers
A few additional affiliated packages are currently in development, including:
- photutils: photometry tools
- astroquery: online database querying
- specutils: spectroscopic analysis utilities
- kcorrect: Python bindings to kcorrect code of Blanton et al. 2007
- gammapy: A high level gamma-ray astronomy data analysis package
See also
- List of numerical analysis software
- Planetarium software
- List of observatory software
References
- ^ "Release 6.0.1". 26 March 2024. Retrieved 19 April 2024.
- ^ a b
Astropy Collaboration (2013). "Astropy: A community Python package for astronomy". S2CID 26378335.
- ^ a b
Simpson, Robert A.; et al. (2013). "Unproceedings of the Fourth .Astronomy Conference, Heidelberg, Germany, July 9–11 2012". arXiv:1301.5193 [astro-ph.IM].
- ^ "Package: python-astropy (0.2.4-3)". Debian.
- ^ "py-astropy 0.2.5". MacPorts.
- ^ "astropy-py33". Fink.
- ^ "Ureka Sources". Gemini Observatory/Space Telescope Science Institute.
- ^
Greenfield, P.; White, R. L. (2000). "A New CL for IRAF Based On Python". ISBN 1-58381-047-1.
- ^
Barrett, P. E.; Bridgman, W. T. (2000). "PyFITS, a Python FITS Module". ISBN 1-58381-047-1.
- ^ "History of SciPy". scipy.org. Archived from the original on 2013-11-12.
- ^ "STScI_Python 2.14 Release Notes". Space Telescope Science Institute.
- ^
Tody, D.; Fitzpatrick, M. J.; Graham, M.; Young, W. (2013). "Scripting the Virtual Observatory in Python" (PDF). Bibcode:2013AAS...22124034T.
- ^ "Subaru Telescope HSC Wide Field Corrector completed".
- ^ "AStute".
- ^
Roehlly, Y.; Burgarella, D.; Buat, V.; Boquien, M.; Ciesla, L.; Heinis, S. (2013). "pcigale: porting Code Investigating Galaxy Emission to Python". Astronomical Data Analysis Software and Systems Xxiii. 485: 347. Bibcode:2014ASPC..485..347R.
- ^
Singer, L. P.; et al. (2013). "Discovery and redshift of an optical afterglow in 71 square degrees: iPTF13bxl and GRB 130702A". S2CID 16420599.
- ^
Bibcode:2013AAS...22124001A.
- ^ ".Astronomy 4". Archived from the original on 2012-12-09. Retrieved 2012-07-11.
- ^ "ATPy". Retrieved 2013-11-05.
- S2CID 3248582.
- ^ Mark Calabretta. "WCSLIB". CSIRO Australia Telescope National Facility. Retrieved 15 November 2013.
- ^ "PyFITS". Space Telescope Science Institute. Archived from the original on 2015-07-26.
- ^ The Astropy collaboration (2012). "About affiliated packages". astropy. Retrieved 6 November 2013.
External links
- Official website
- GitHub repository
- Scipy2013 presentation video
- ADASS Poster abstract
- MPIK Astropy workshop
- Topical software – scipy.org
Publications
Books and scientific publications citing Astropy
- Tollerud, E. J.; Greenfield, P. E.; Robitaille, T. P. (2013). "Astropy: A community Python package for astronomy". Bibcode:2013ASPC..475..241T.
- Simpson, Robert A.; et al. (2013). "Unproceedings of the Fourth .Astronomy Conference, Heidelberg, Germany, July 9–11 2012". arXiv:1301.5193 [astro-ph.IM].
- Bibcode:2013ASPC..475..383A.