comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Simple task manager for parallel processing in IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Simple task manager for parallel processing in IDL [message #59146] Tue, 11 March 2008 08:38 Go to next message
devin.white is currently offline  devin.white
Messages: 50
Registered: March 2007
Member
Nice! Here's one way you can use the IDL-IDL Bridge with ENVI:

IDL> r -> execute, 'envi, /restore_base_save_files & message, /reset'

That kills the problematic error messages in the child process and
allows you to proceed with sending tasks over the bridge. You might
still run into issues as various ENVI functionality is automatically
restored during calls to documented routines, so try adding "&
message, /reset" to the end of every call you make that involves one
of those routines. Example:

IDL> r -> execute, 'envi_convert_file_coordinates, fid, xfile, yfile,
xmap, ymap, /to_map & message, /reset'

Seems to work pretty well.


> Now some of you may be wondering "why isn't this guy using the
> IDL_IDLbridge?". The point is that many of the work I do involves ENVI
> functionality and so far I had some problems to get ENVI to initialize
> on an IDL_IDLBridge session (although the IDLPATH settings on the
> bridge are OK):
>
> IDL> r = obj_new('idl_idlbridge')
> % Loaded DLM: IDL_IDLBRIDGE.
> IDL> r -> execute, 'envi, /restore_base_save_files'
> % IDL_IDLBRIDGE Error: Attempt to call undefined procedure/function:
>   'ENVI_IOU'.
> % Execution halted at: $MAIN$
> IDL> r -> execute, 'envi_batch_init'
> % IDL_IDLBRIDGE Error: Attempt to call undefined procedure/function:
>   'ENVI_RV'.
> % Execution halted at: $MAIN$
>
> It needs some further testing whether ENVI is initialized properly on
> the bridge (despite the error messages) as some functionality seems to
> work properly.
>
> Cheers,
>
> Allard
Re: Simple task manager for parallel processing in IDL [message #59159 is a reply to message #59146] Mon, 10 March 2008 08:44 Go to previous messageGo to next message
wita is currently offline  wita
Messages: 43
Registered: January 2005
Member
Small addition to the previous post: In order to have complete
functionality, I added some routines to the zip archive that come from
the libraries of David Fanning and Craig Markwardt. If you already
have these in your IDLPATH you can delete them.

Allard
Re: Simple task manager for parallel processing in IDL [message #59259 is a reply to message #59146] Thu, 13 March 2008 02:14 Go to previous message
wita is currently offline  wita
Messages: 43
Registered: January 2005
Member
On Mar 11, 4:38 pm, "devin.wh...@gmail.com" <devin.wh...@gmail.com>
wrote:
> Nice! Here's one way you can use the IDL-IDL Bridge with ENVI:

Dear Devin,

Thanks for the suggestions, I will try to implement a new version of
the process manager using the IDL_IDLbridge when I find some time.
Using the IDL_IDLbridge would eliminate the startup time of IDL which
could become significant when each task involves only a relatively
small amount of processing time.

Cheers

Allard
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: itools (mouse) events
Next Topic: How to plot the magnetic field vector along the trajectory

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 23:08:29 PDT 2025

Total time taken to generate the page: 2.31885 seconds