reading ENVI hdr files in IDL [message #67821] |
Thu, 27 August 2009 08:41 |
topher hughes
Messages: 1 Registered: August 2009
|
Junior Member |
|
|
Hi:
I am interested in reading in a variety of data files, all of which
have ENVI outputted hdr files. I am trying to find a nice, elegant way
(preferably written by someone else - my code is anything but
elegant!) to read in those files and extract data from them. In
particular, I'm interested in preserving things such as the wavelength
values associated with .sli files, seeing the format of the image (in
terms of samples, lines, bands, interleave, byte order), etc without
having to ask the user to simply type in that information each time
they select a file.
The closest things I've found to being relevant were references to
ENVI_SETUP_HEAD, which seems to do the exact opposite of what I need
(in that it prepares all the metadata for writing to an .hdr file).
Does anyone know of a nice way to do this, or is it best just to use
readf? I feel like I'm missing something really obvious here.
Thanks in advance!
--Topher
|
|
|