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

Home » Public Forums » archive » Re: Converting an ENVI image into a file that can be read by 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: Converting an ENVI image into a file that can be read by IDL [message #52314] Fri, 26 January 2007 14:30
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
Yes, the .dat file is just a binary data file and the .hdr file is an
ASCII file that will tell you all the stuff you need to know: byte
order, dimensions of image, number of bands, interleaving plus plenty
of other stuff. It's very straightforward in IDL to read the binary
file once you know this information. ENVI has routines that
automatically read this header file and use it to read the binary file
(or part of the binary file).

-Mike

On Jan 26, 3:04 pm, "hradilv" <hrad...@yahoo.com> wrote:
>> From what I understand the .dat file is just a raster file and the .hdrfile is an ASCII file describing the .dat file.
>
> cf.http://www.cstars.ucdavis.edu/classes/mexusenvi/tut1.htm# ENVI%20File%...
>
> On Jan 26, 3:58 pm, "procomp9" <proco...@yahoo.com> wrote:
>
>> Hi group,
>
>> Has anyone ever heard of conerting an ENVI image file into a file that
>> can be read by IDL? The file extention that I have is *.dat and
>> *.dat.hdr. Can ENVI do this? If not, is there a third-party program
>> that will do this? If none of these options are available, I will
>> write a program that parses the *.dat and *.dat.hdr contents and
>> returns a file that can be read by IDL. To the experts of ENVI and IDL
>> out there: Do you think parsing the data will be possible? What
>> problems can you forsee? I am aware that the semantics of ENVI and IDL
>> are slightly different but the fact that ENVI uses the IDL platform
>> leads me to believe that this can be done. Thanks in advance...
>
>> Erik
Re: Converting an ENVI image into a file that can be read by IDL [message #52315 is a reply to message #52314] Fri, 26 January 2007 14:04 Go to previous message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
> From what I understand the .dat file is just a raster file and the .hdr
file is an ASCII file describing the .dat file.

cf.
http://www.cstars.ucdavis.edu/classes/mexusenvi/tut1.htm#ENV I%20File%20Formats

On Jan 26, 3:58 pm, "procomp9" <proco...@yahoo.com> wrote:
> Hi group,
>
> Has anyone ever heard of conerting an ENVI image file into a file that
> can be read by IDL? The file extention that I have is *.dat and
> *.dat.hdr. Can ENVI do this? If not, is there a third-party program
> that will do this? If none of these options are available, I will
> write a program that parses the *.dat and *.dat.hdr contents and
> returns a file that can be read by IDL. To the experts of ENVI and IDL
> out there: Do you think parsing the data will be possible? What
> problems can you forsee? I am aware that the semantics of ENVI and IDL
> are slightly different but the fact that ENVI uses the IDL platform
> leads me to believe that this can be done. Thanks in advance...
>
> Erik
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Rasterize an image
Next Topic: ION configure

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

Current Time: Fri Oct 10 10:07:27 PDT 2025

Total time taken to generate the page: 1.12012 seconds