astropy.io.ascii DocumentationΒΆ

An extensible ASCII table reader and writer for Python 2 and 3.

The astropy.io.ascii packge can read and write a wide range of ASCII table formats via built-in Extension Reader Classes:

  • 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
  • FixedWidth: table with fixed-width columns (Fixed-width Gallery)
  • Ipac: IPAC format table
  • Latex, AASTex: LaTeX tables (plain and AASTex)
  • 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

The astropy.io.ascii package is built on a modular and extensible class structure with independent Base class elements so that new formats can be easily accomodated.

Contents:

Project Versions

Previous topic

astropy.io.vo.converters: Conversions between XML and Numpy datatypes

Next topic

Reading tables

This Page