Home | Trees | Indices | Help |
|
---|
|
A simplified API to single-table VOTables.
The basic idea is: open(...) -> (table, metadata),
where table is a numpy array.
Classes | |
TableMetadata Metadata for a VOTable table instance, i.e., column definitions, groups, etc. |
Functions | |||
|
|||
|
|||
|
|||
|
Variables | |
numpyType =
|
|
__package__ =
|
Function Details |
returns an record array datatype for a given table metadata. defaultStringLength lets you specify a length for char(*) fields; since makeDtype has no access to the tabular data and numpy insists on having string length, DaCHS needs to guess here. If this isn't fine-grained enough for you, you can always path tableMetadata, replacing * arraysizes with more appropriate values in individual cases. |
returns (data, metadata) from the first table of a VOTable. data is a list of records (as a list), metadata a TableMetadata instance. source can be a string that is then interpreted as a local file name, or it can be a file-like object. |
saves (data, tableDef) in VOTable format to destF. data is a sequence of tuples, tableDef V.TABLE instance as, for example, obtainable from metadata.votTable as returned by load. data must contain type-right python values that match the table definition. A load-save cycle loses all top-level and resource level metadata in the simplified interface. Use the full interface if that hurts you. |
Variables Details |
numpyType
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu May 2 07:29:09 2019 | http://epydoc.sourceforge.net |