Reference/API#
astropy.io.votable Package#
This package reads and writes data formats used by the Virtual Observatory (VO) initiative, particularly the VOTable XML format.
Functions#
|
Parses a VOTABLE xml file (or file-like object), and returns a |
|
Parses a VOTABLE xml file (or file-like object), reading and returning only the first |
|
Prints a validation report for the given file. |
|
Given an |
|
Reads the header of a file to determine if it is a VOTable file. |
|
Writes a |
Classes#
|
Configuration parameters for |
astropy.io.votable.tree Module#
Classes#
|
LINK elements: used to reference external documents and servers through a URI. |
|
INFO elements: arbitrary key-value pairs for extensions to the standard. |
|
VALUES element: used within FIELD and PARAM elements to define the domain of values. |
|
FIELD element: describes the datatype of a particular column of data. |
|
PARAM element: constant-valued columns in the data. |
|
COOSYS element: defines a coordinate system. |
|
TIMESYS element: defines a time system. |
|
FIELDref element: used inside of GROUP elements to refer to remote FIELD elements. |
|
PARAMref element: used inside of GROUP elements to refer to remote PARAM elements. |
|
|
|
TABLE element: optionally contains data. |
|
|
|
VOTABLE element: represents an entire file. |
|
A base class for all classes that represent XML elements in the VOTABLE file. |
|
MIVOT Block holder: Processing VO model views on data is out of the scope of Astropy. |
astropy.io.votable.converters Module#
This module handles the conversion of various VOTABLE datatypes to/from TABLEDATA and BINARY formats.
Functions#
|
Get an appropriate converter instance for a given field. |
|
Given a |
Classes#
|
The base class for all converters. |
astropy.io.votable.ucd Module#
This file contains routines to verify the correctness of UCD strings.
Functions#
|
Parse the UCD into its component parts. |
|
Returns False if ucd is not a valid unified content descriptor. |
astropy.io.votable.util Module#
Various utilities and cookbook-like things.
Functions#
|
Returns a writable file-like object suitable for streaming output. |
|
Coerces and/or verifies the object p into a valid range-list-format parameter. |
astropy.io.votable.validator Package#
Validates a large collection of web-accessible VOTable files, and generates a report as a directory tree of HTML files.
Functions#
|
Validates a large collection of web-accessible VOTable files. |
astropy.io.votable.xmlutil Module#
Various XML-related utilities.
Functions#
|
Raises a |
|
Given an arbitrary string, create one that can be used as an xml id. |
|
Raises a |
|
Raises a |
|
Raises a |
|
Validates the given file against the appropriate VOTable schema. |