Re: new image in ENVI [message #53594] |
Sat, 21 April 2007 07:56 |
Jeff N.
Messages: 120 Registered: April 2005
|
Senior Member |
|
|
On Apr 21, 10:01 am, "skymaxw...@gmail.com" <skymaxw...@gmail.com>
wrote:
> does it possible to detect creating a new image in Available Bands
> List by IDL program?
> I mean if the new image was created and shown in Available Bands List
> can i do some additional actions ???
If you're talking about something like an event, where you can write
an event handler to automatically do something when a new file is
opened, then I think the answer is no. But if you just want to be
able to do something with files that are already open, there are
routines that can help. ENVI_SELECT brings up a dialog that allows a
user to pick from a list of open files, for example. You can get a
list of file IDs for open files with ENVI_GET_FILE_IDS. I suppose you
could even use that function to create code that mimics an event in
some ways. You could get the list of file IDs, wait a certain amount
of time, then get a new list of file IDs. If the list has changed,
you could then do something to handle the new files. I've never
written and IDL/ENVI program that is made to run continuously though,
so I'm not sure how that would affect your system in terms of resource
usage, or if you'd be able to do anything else with IDL/ENVI while
that code was running.
Jeff
|
|
|