meta data for this page
WriteImage – Multispectral Image in ENVI
After creating a multispectral image with ReadStack, you may want to store it on disk. ENVI is an easy format to use for multispectral images.
An ENVI image is stored as two files with the same name: a header file ending in .hdr, and a data file with no extension. Hoku looks for the .hdr extension to find ENVI files. Although you created it with ReadStack, you can easily read a multispectral ENVI file back in later with ReadImage.
In WriteImage, select the Envi format and make sure the file name ends in .hdr. Choose the “interleave” method for the file's purpose:
- If you will use the file as an input image, use BIP, because that is the format the processing routines work in.
- If you are storing processed data with many output bands, such as from PCA, use BSQ, so that you can more easily inspect each band.
If you specify a “window” in ReadStack, only the data from that rectangular region is read from the disk.