X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 21 Jul 2008 02:57 PM by  anon
Automatically loading file created with ENVI_OUTPUT_TO_EXTERNAL_FORMAT?
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
21 Jul 2008 02:57 PM
    I'm trying to output the ROI of an image with the following code: ENVI_OUTPUT_TO_EXTERNAL_FORMAT, dims=dims, fid=fid, OUT_NAME=noext+type+time+'.bin', /ENVI, pos=pos Now the code works, the file is created, all is well and good BUT the new file is automatically loaded into my 'Available Bands' list. Does anyone know how to prevent this from happening?

    Deleted User



    New Member


    Posts:
    New Member


    --
    21 Jul 2008 02:57 PM
    I don't think you can do it with that procedure, but since you are writing an ENVI format image, you could just use ENVI_WRITE_ENVI_FILE with the NO_OPEN keyword. Or, write the data to a file with WRITEU and set up a header with ENVI_SETUP_HEAD. If you use ENVI_SETUP_HEAD, do not set the OPEN keyword. Jeff

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    21 Jul 2008 02:57 PM
    If you are not running in true batch mode (IDL- only and using ENVI_BATCH_INIT), then when data are returned from an ENVI routine, they will automatically be placed in the Available Bands List and this widget will be realized. If you do not want data returned to the ABL, then you should instead run your code in true batch mode rather than hybrid batch (with the ENVI menu initialized). As an alternative, in your code, after you create your new file with ENVI_OUTPUT_TO_EXTERNAL_FORMAT, you can do an ENVI_FILE_MNG and remove it.
    You are not authorized to post a reply.