TabMapIO

class ndmapper.io.TabMapIO(filename, idx, label=None, ident=None)[source] [edit on github]

Bases: object

A proxy object for lazily loading/saving AstroPy Table instances. This is similar to NDMapIO, but instead of being used by an NDData sub-class to load its own attributes lazily, TabMapIO is used to initialize a normal Table instance on demand, since the latter doesn’t have several data arrays to load separately and sub-classing Table would likely prove more complicated with less benefit.

At the user level, instances are managed by, and the corresponding table data accessed via, DataFile objects. For lazy-loading or saving operations to succeed, the corresponding file must already exist.

Attributes

filename (str) The path to the file from which the data are to be mapped.
label (str) Application-specific label/name identifying the type of Table (EXTNAME for FITS). Multiple tables of the same type can be distinguished via the ident parameter.
ident (int or str or None) Identifier appropriate for the file type (int EXTVER for FITS), which distinguishes this particular instance of a given type of Table within the applicable DataFile.
idx (int) The original array index/number within the host file (extension number for FITS).

Attributes Summary

table

Methods Summary

copy() Generate a new instance that shares any already-loaded data but can be re-mapped independently.
load_data()
load_meta()
load_table()

Attributes Documentation

table

Methods Documentation

copy()[source] [edit on github]

Generate a new instance that shares any already-loaded data but can be re-mapped independently.

load_data()[source] [edit on github]
load_meta()[source] [edit on github]
load_table()[source] [edit on github]