NDMapIO¶
-
class
ndmapper.io.NDMapIO(filename, ident=None, data_idx=None, uncertainty_idx=None, flags_idx=None)[source] [edit on github]¶ Bases:
objectPropagate additional information needed for
NDLaterinstances 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 aDataFileinstance) with reasonable overheads, rather than to provide a robust API: for the user-level interface, seeDataFileinstead.Attributes
filename ( str) The path to the file from which the data are to be mapped.ident ( intorstrorNone) Group identifier appropriate for the file type (int EXTVER for FITS), which labels this particularNDDatainstance within aDataFile.data_idx ( int)uncertainty_idx ( intorNone)flags_idx ( intorNone) 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]¶
-