Re: Simple task manager for parallel processing in IDL [message #59146] |
Tue, 11 March 2008 08:38  |
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 #59259 is a reply to message #59146] |
Thu, 13 March 2008 02:14  |
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
|
|
|