X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 22 May 2014 05:49 AM by  anon
OpenRaster in ENVI Classic
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
22 May 2014 05:49 AM
    Hi there, i've got another question regarding ENVI Classic and IDL. I have a raster which i want to open in ENVI Classic from IDL. Code: e=envi() raster=e.OpenRaster(A) print, raster data = raster.GetData();BANDS=[0]) view=e.GetView() layer=view.createlayer(raster) So this opens my raster in ENVI, but want it to open just in ENVI Classic. I've found a way to cheat it by using ENVI_Classic+IDL and closing the new ENVI window everytime it pops up, but it just would be nice if i can do it without closing it everytime. Thanks in advance

    Deleted User



    New Member


    Posts:59
    New Member


    --
    22 May 2014 11:58 AM
    Hi, You can start ENVI Classic from the IDL command line using a procedural statement as follows: IDL > envi However, you're restricted to using the ENVI Classic API for file management, display, and everything else. This API is described in the ENVI Classic help. Another option is to use the newer ENVI API (i.e., e = envi()) to open your rasters just like you have done, then use the ENVIRasterToFID routine to pass in a file reference to Classic in order to perform image processing routines. I'm not sure if this is your intent though. This process is described at http://www.exelisvis.com/...sitioningtoAPI.html. We are continually working on adding more functionality and image-processing routines to the ENVI API so that, in a future release, there won't be any more mixing Classic with ENVI programming. Hope this helps!
    You are not authorized to post a reply.