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 aDataFile
instance) with reasonable overheads, rather than to provide a robust API: for the user-level interface, seeDataFile
instead.Attributes
filename ( str
) The path to the file from which the data are to be mapped.ident ( int
orstr
orNone
) Group identifier appropriate for the file type (int EXTVER for FITS), which labels this particularNDData
instance within aDataFile
.data_idx ( int
)uncertainty_idx ( int
orNone
)flags_idx ( int
orNone
) 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]¶
-