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

Home » Public Forums » archive » Read ENVI file
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
Read ENVI file [message #92135] Mon, 19 October 2015 05:48 Go to next message
Kai Heckel is currently offline  Kai Heckel
Messages: 51
Registered: April 2015
Member
Hey!

I'd like to read a ENVI file. It is a file array (1980*2100) and I'd like to some math about the pixel values.

What is the right way to import it and then use the data in IDL?

Thanks for suggestions!
Re: Read ENVI file [message #92140 is a reply to message #92135] Mon, 19 October 2015 09:55 Go to previous message
Jonas Ardo is currently offline  Jonas Ardo
Messages: 12
Registered: April 2014
Junior Member
On 19/10/2015 14:48, Kai Heckel wrote:
> Hey!
>
> I'd like to read a ENVI file. It is a file array (1980*2100) and I'd like to some math about the pixel values.
>
> What is the right way to import it and then use the data in IDL?
>
> Thanks for suggestions!
>

Try

X = READ_BINARY(file, DATA_DIMS=[1980,2100], data_type = 2)

and change DATA_TYPE if needed

see
http://www.exelisvis.com/docs/READ_BINARY.html

--
Jonas Ardö
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Create curves
Next Topic: Some MAKE_DLL questions

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

Current Time: Wed Oct 08 07:16:16 PDT 2025

Total time taken to generate the page: 0.00399 seconds