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 
Return to the default flat view Create a new topic Submit Reply
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ö
[Message index]
 
Read Message
Read Message
Previous Topic: Create curves
Next Topic: Some MAKE_DLL questions

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

Current Time: Thu Oct 09 13:15:55 PDT 2025

Total time taken to generate the page: 0.80000 seconds