comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: reading ENVI hdr files in IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: reading ENVI hdr files in IDL [message #67818] Thu, 27 August 2009 08:58
Jean H. is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: reading ENVI hdr files in IDL
Next Topic: Restore problem.

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:42:18 PDT 2025

Total time taken to generate the page: 0.00548 seconds