Base Class Elements#

The key elements in astropy.io.ascii are:

  • Column: internal storage of column properties and data.

  • Reader: base class to handle reading and writing tables.

  • Inputter: gets the lines from the table input.

  • Splitter: splits the lines into string column values.

  • Header: initializes output columns based on the table header or user input.

  • Data: populates column data from the table.

  • Outputter: converts column data to the specified output format (e.g., numpy structured array).

Each of these elements is an inheritable class with attributes that control the corresponding functionality. In this way, the large number of tunable parameters are modularized into manageable groups. In certain places these attributes are actually functions for handling special cases.