NDMapIO

class ndmapper.io.NDMapIO(filename, ident=None, data_idx=None, uncertainty_idx=None, flags_idx=None)[source] [edit on github]

Bases: object

Propagate additional information needed for NDLater instances to support lazy loading, allow saving only arrays/header attributes that have changed & report which FITS extensions they came from for IRAF etc.

For lazy-loading or saving operations to succeed, the corresponding file must already exist. This class is intended to encapsulate bookkeeping within NDLater (managed by a DataFile instance) with reasonable overheads, rather than to provide a robust API: for the user-level interface, see DataFile instead.

Attributes

filename (str) The path to the file from which the data are to be mapped.
ident (int or str or None) Group identifier appropriate for the file type (int EXTVER for FITS), which labels this particular NDData instance within a DataFile.
data_idx (int)
uncertainty_idx (int or None)
flags_idx (int or None) The original index of each constituent data/uncertainty/flags array within the host file (extension number for FITS).

Methods Summary

load_data()
load_flags()
load_meta()
load_uncertainty()

Methods Documentation

load_data()[source] [edit on github]
load_flags()[source] [edit on github]
load_meta()[source] [edit on github]
load_uncertainty()[source] [edit on github]