Re: reading ENVI hdr files in IDL [message #67818] |
Thu, 27 August 2009 08:58 |
Jean H.
Messages: 472 Registered: July 2006
|
Senior Member |
|
|
topher hughes wrote:
> 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
Hi,
you can open and query the file header via ENVI_FILE_QUERY
Jean
|
|
|