Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > Re: Create an E...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 5 Topic 5475 of 6457
Post > Topic >>

Re: Create an ENVI .img file

by Jean H <jghasban@[EMAIL PROTECTED] > Feb 26, 2008 at 05:04 PM

Good to hear that it works!
But you should really write the header file at the same time... without 
it, it is very difficult to open the file in Envi...especially a few 
months from now!!. you should specify the data type, the type of 
interleave (if you have more than one band) and the number of rows and 
columns!

Cheers
Jean

frankosuna wrote:
> On Feb 26, 2:29 pm, Jean H <jghas...@[EMAIL PROTECTED]
>
> wrote:
>>   > You can call ENVI's functions in IDL!
>>
>>> Have a look at
>>> ENVI_WRITE_ENVI_FILE
>>> Jean
>> and if you don't have Envi, you can save your data as a tiff or else
and
>> write an header file for Envi.. as a mater of fact, you can use WRITEU
>> to save the data, which is the same "format" (no format indeed) as the
>> Envi files... then you just have to write the header file, saying what
>> data is present in the file!
>>
>> Jean
> 
> Thank you very much for that hint!! I was able to get what I needed by
> using the writeu function.
> This is what I did in case anybody else runs into this problem:
> 
> This first way that I did it I passed an array and wrote the
> information from it into testidl.dat
>   OPENW, lun, 'testidl.dat', /get_lun
>   WRITEU, lun, array
>   FREE_LUN, lun
> 
> This second way of doing it I took the information from a .bmp file
> and wrote it as wireframe.dat
>   file = FILEPATH('wireframe.bmp')
>   image = READ_BMP('/home/users/fjosuna/CASVU_ISS/wireframe.bmp')
>   OPENW, lun, 'wireframe.dat', /GET_LUN
>   WRITEU, lun, image
>   FREE_LUN, lun
> 
> Thanks again Jean!!
 




 5 Posts in Topic:
Create an ENVI .img file
frankosuna <frankosuna  2008-02-26 12:44:29 
Re: Create an ENVI .img file
Jean H <jghasban@[EMAI  2008-02-26 14:26:14 
Re: Create an ENVI .img file
Jean H <jghasban@[EMAI  2008-02-26 14:29:36 
Re: Create an ENVI .img file
frankosuna <frankosuna  2008-02-26 15:19:39 
Re: Create an ENVI .img file
Jean H <jghasban@[EMAI  2008-02-26 17:04:08 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Dec 4 0:11:40 CST 2008.