Data representation

Reference/API

ndmapper.data Module

A module representing files containing pixel data as high-level objects that contain astropy.nddata-like instances (and vice versa).

Functions

load_file_list(filename) Load a text file containing a list of filenames (or other strings) as a Python list.
temp_saved_datafile(datafile) Save a copy of a DataFile instance using a temporary filename, eg.

Classes

FileName([path, sep, strip, prefix, suffix, ...]) A class used by DataFile and, potentially, user scripts for parsing filenames into components, modifying and reconstructing them.
DataFile([filename, data, meta, mode, ...]) A class representing a data-file-like object, including a filename and/or a list of associated NDData instances, along with any ancillary data such as a primary header, binary tables that describe the file as a whole and aren’t part of the NDData structure itself or processing history.
DataFileList([filenames, data, meta, mode, ...]) A class that holds a list of DataFile objects, tracking filenames and/or NDData collections with ancillary information.
NDLater([data, uncertainty, mask, wcs, ...]) A compatible variant of NDDataArray that facilitates lazy loading of pixel data, allowing code to work freely with NDData-like objects (including just doing bookeeping with the headers) without using more memory than necessary.