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 anNDData
sub-class to load its own attributes lazily,TabMapIO
is used to initialize a normalTable
instance on demand, since the latter doesn’t have several data arrays to load separately and sub-classingTable
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 ofTable
(EXTNAME for FITS). Multiple tables of the same type can be distinguished via the ident parameter.ident ( int
orstr
orNone
) 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]¶
-