X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 13 May 2008 03:33 PM by  anon
Programmatic opening of annotation overlay
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
13 May 2008 03:33 PM
    Hi, I have written an IDL script to read a custom file format and parse annotation data into a separate .ann file using ENVI_USER_DEFINED_ANNOTATION. I would like to overlay the annotation over the newly displayed image automatically at the end of the script without having to manually File->Restore annotation, is there any way to do this. As a relatively similar example of what Im trying to do, when an NITF file is loaded the composite virtual mosaic bands display the image and overlayed annotation immediately. Thank you, Craig.

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    13 May 2008 03:33 PM
    There is an undocumented routine you can use to do this, but as always with undocumented routines, they are 'use at your own risk', meaning they could change in a new version of ENVI and we cannot guarantee backwards compatibility. But its a pretty straight-forward routine, so it should be fairly 'safe'. So once you display your image, get the display number with: ENVI> dn=envi_get_display_numbers() Then call the annotation widget with the annotation file (this example hides the widget itself): ENVI> ann_init, dn, ann_file = 'bh.ann', /hide_window
    You are not authorized to post a reply.