envifile¶
This modules loads general envifiles via mmap, to get good random access performance.
-
class
runmacs.spec.io.envifile.
EnviFile
[source]¶ Represents an bil, bip or bsq envi-file as numpy array.
Load a file, by passing the filename (without .hdr or .raw) to the constructor. After loading, the object behaves like a standary numpy array:
data = EnviFile('basefilename')
The dimensions are ordered as follows:
data[lines, samples, bands]