Attempt to parse the supplied table lines given the csv dialect values. Problems result in a ParseLinesError exception. If successful, the number of warnings and the lines (parsed into columns) is returned.
Parse VOTS header fields from ‘lines’, which should be an iterable that returns lines of the VOTS table. Returns an dict of header fields where all but ‘description’ are in turn a numpy recarray table.
Read the given ASCII data table (supplied as a list of strings or a file object). Try each of the delimiters and quotechars in order and stop for the first case gives a sensible result. Returns a numpy record array object of the data table.
Allowed values of the headertype parameter are:
name | first row consists of column names |
rdb | first row consists of column names, second row gets ignored |
none | column names auto-generated as col1, col2, ... |
Parameters: |
|
---|
Use pyfits to read the first HDU of the FITS table file ‘infile’. Returns a record array object which can be accessed either by row or column, e.g. data[2] or data.field(‘col1’).
Parameters: |
|
---|---|
Return type: | Table object |
All-purpose function to guess the format of a data table and read via the format-specific parsers. First tries FITS then ASCII.
Parameters: |
|
---|---|
Return type: | Table object |
Read the given VOTS (VOTable Simple) data table (supplied as a list of strings or a file object). Try each of the delimiters and quotechars in order and stop for the first case gives a sensible result.
Parameters: |
|
---|---|
Return type: | (header, data) |
header: dict containing VOTS header elements data: numpy record array object of the data table.
Write recarray to a FITS binary table file.
Parameters: |
|
---|---|
Return type: | None |