Ipac

class astropy.io.ascii.ipac.Ipac(definition='ignore') [edit on github][source]

Bases: astropy.io.ascii.core.BaseReader

Read an IPAC format table. See http://irsa.ipac.caltech.edu/applications/DDGEN/Doc/ipac_tbl.html:

\name=value
\ Comment
|  column1 |  column2 | column3 | column4  |    column5       |
|  double  |  double  |   int   |   double |     char         |
|   unit   |   unit   |   unit  |    unit  |     unit         |
|   null   |   null   |   null  |    null  |     null         |
 2.0978     29.09056   73765     2.06000    B8IVpMnHg

Or:

|-----ra---|----dec---|---sao---|------v---|----sptype--------|
  2.09708   29.09056     73765    2.06000   B8IVpMnHg
Parameters :

definition : str, optional

Specify the convention for characters in the data table that occur directly below the pipe (|) symbol in the header column definition:

  • ‘ignore’ - Any character beneath a pipe symbol is ignored (default)
  • ‘right’ - Character is associated with the column to the right
  • ‘left’ - Character is associated with the column to the left

Notes

Caveats:

  • Data type, Units, and Null value specifications are ignored.
  • Keywords are ignored.
  • The IPAC spec requires the first two header lines but this reader only requires the initial column name definition line

Overcoming these limitations would not be difficult, code contributions welcome from motivated users.

Methods Summary

write([table]) Not available for the Ipac class (raises NotImplementedError)

Methods Documentation

write(table=None) [edit on github][source]

Not available for the Ipac class (raises NotImplementedError)

Page Contents