AstroLib Project Page
Astrolib is an astronomical utility library for Python analogous to the ASTRON library for IDL. There's a (mostly inactive) wiki that includes discussion of its design philosophy, requirements, envisioned components, etc.
Send questions to the "astropy at scipy dot org" mailing list.
Astrolib presently has six active components:
read/modify/write ASCII tables
AstroAsciiData is a Python module to handle ASCII tables. Features:
- Imports all reasonably well-formed Ascii tables
- Easy creation and manipulation of tables, columns, rows and attached comments
- Retains formatting of data values
- Support for SExtractor style header
- Column sorting
- Interchangeable comment character, column delimiter and null value
- Data export to Numpy/Numarray?, FITS, HTML and LaTex?
Read and write ASCII tables
Asciitable is an extensible ASCII table reader/writer that handles a wide range of input formats:
- Basic: basic table with customizable delimiters and header configurations
- Cds: CDS format table (also Vizier and !ApJ machine readable tables)
- CommentedHeader: column names given in a line that begins with the comment character
- Daophot: table from the IRAF DAOphot package
- Ipac: IPAC format table
- Memory: table already in memory (list of lists, dict of lists, etc)
- NoHeader: basic table with no header where columns are auto-named
- Rdb: tab-separated values with an extra line after the column definition line
- Tab: tab-separated values
By default the table is read as a NumPy record array which can then be manipulated using the full complement of NumPy methods. Below the hood asciitable is built on a modular and extensible class structure. The basic functionality required for reading or writing a table is largely broken into independent base class elements so that new formats can be accomodated by modifying the underlying class methods as needed.
- Get the most recent stable release.
- Browse the [documentation.
An intended replacement for synphot
Pysynphot is a synthetic photometry software package suitable for either library or interactive use. Intended as a modern-language successor to the IRAF/STSDAS synphot package, it provides improved algorithms that address known shortcomings in synphot, and its object-oriented design is more easily extensible than synphot's task-oriented approach. Written in Python, it will run under PyRAF, and a backwards compatibility mode is provided that will recognize all spectral and throughput tables, obsmodes, and spectral expressions used by synphot, to facilitate the transition for legacy code.
- no IRAF dependencies
- improved precision arithmetic
- improved handling of wavelength sampling
- extensive graphics capabilities available using matplotlib/pylab
Pysynphot is distributed as part of stsci_python, but it can be downloaded separately here:
- v0.9.1, used by the HST ETC 20.1
- the complete set of data files used by the HST ETC 20.1, including spectral models
- the current throughput files only
- Browse the user documentation (in progress)
- Browse the v0.9 API documentation (distributed with stsci_python 2.14)
- Browse the PysynphotInstallationGuide
- v0.8.3, used by the HST ETC 19.2
- the v0.55 version, complete with all data needed for full functionality, and two demo scripts. This version was demonstrated at ADASS 2008 on 4 November 2008, Quebec City.
- You may also wish to obtain the spectra, both HST calibration spectra and model spectra, that are used in some of the examples
for managing astronomical coordinate systems (http://www.scipy.org/AstroLibCoordsHome)
- Current release v0.37 (5 Jan 2009), r768: adds leap second
- Previous release v0.3 (12 Feb 2007)
- Download source
- Download TPM Manual (pdf)
for photometry of mixed-resolution data sets (a software project by the GOODS team)
TFIT is presently an inactive project.
- Current release is v1.2.1. This is a bugfix release:
pywcs is now part of astropy. While bug fixes and some new features will be made available to the standalone package, future large changes will be made as part of the astropy project, and we encourage moving to it when possible.
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.
Contact: Michael Droettboom
- Current release is v1.10-4.7:
- Older releases:
- Download pywcs v1.10-4.7 (March 17, 2011)
- Download pywcs v1.9-4.4.4 (July 21, 2010)
- Download pywcs v1.8.1-4.4.4 (March 18, 2010)
- Download pywcs v1.8-4.4.4 (February 23, 2010)
- Download pywcs v1.7-4.4.4 (December 3, 2009)
- Download pywcs v1.6-4.3.3 (October, 2009)
- Download pywcs v1.5.1-4.3.3 (July 9, 2009)
- Download pywcs v1.4.2-4.3 (May 13, 2009)
- Download pywcs v1.1a3-4.3 (Jan 30, 2009)
- Download pywcs v1.0a1-4.3 (Jan 25, 2008)
vo.table is now part of astropy. While bug fixes and some new features will be made available to the standalone package, future large changes will be made as part of the astropy project, and we encourage moving to it when possible.
A library to parse, validate and generate VOTABLE XML files. On the Python side, the data is stored as a Numpy structured array.
- Python 2.6, 2.7, 3.1 or 3.2
- Numpy 1.0 or later (though 1.3 or later is recommended for a more user-friendly recarray interface). Versions prior to 1.5 have a bug handling complex numbers.
- pyfits 2.2 or later is optional for FITS data format support
Contact: Michael Droettboom
- Latest release:
- Download vo-0.8.tar.gz (May 15, 2012)
- Download vo-0.7.2.tar.gz (August 11, 2011)
- Download vo-0.6.tar.gz (July 21, 2010)
- Download vo-0.5.tar.gz (January 19, 2010)
- Download vo-0.4.tar.gz (September 9, 2009)
- Download vo-0.3.1.tar.gz (July 21, 2009)
- Download vo-0.2.tar.gz (June 24, 2009)
- Download vo-0.1.1.tar.gz (Nov 10, 2008)