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

Home » Public Forums » archive » Simplest way to spawn multiple IDL processes from within IDL?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Simplest way to spawn multiple IDL processes from within IDL? [message #88704] Fri, 06 June 2014 05:27 Go to previous message
rjp23 is currently offline  rjp23
Messages: 97
Registered: June 2010
Member
I have a piece of code that I want to run on multiple data files with the only difference in the input being the date within each filename.

Previously for a small number of files I've just done it in a loop something like this:

dates=['200901', '200902', '200903']

FOR i=0, n_elements(dates)-1 do begin
this_date=dates[i]
processing_code, this_date
ENDFOR

The processing_code routine itself can take a while to run and now that the number of dates I'm processing is getting larger I wondered if there was a straightforward wait to spawn multiple instances of IDL from within the main IDL procedure. I don't need any input back into the main procedure from the subroutine that does the processing so I was hoping that there was a straightforward way.

I've looked at http://slugidl.pbworks.com/w/page/37642590/split_for%20tutor ial and while it does what I want to some extent, it'd be nicer if I could explicitly control the number of splits (so as not to swamp our server).

I wondered whether a simple spawn command that echoed the commands back into an IDL process would work but I can't seem to get it to.

Any other thoughts?

Cheers

Rob
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: gridded interpolation
Next Topic: RSI ENVI listserv

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

Current Time: Fri Oct 10 01:23:45 PDT 2025

Total time taken to generate the page: 1.27619 seconds