read_table_yanny¶
-
pydl.pydlutils.yanny.
read_table_yanny
(filename, tablename=None)[source]¶ Read a yanny file into a
Table
.Because yanny files can contain multiple tables, it is necessary to specify the table name to return. However, all “headers” (keyword-value pairs) will be included in the Table metadata.
This function is for use with
register_reader()
.Parameters: Returns: - :class:`~astropy.table.Table`
The table read from the file.
Raises: - :exc:`PydlutilsException`
If
tablename
is not set.- :exc:`KeyError`
If
tablename
does not exist in the file.