[GRASSLIST:5836] Re: Spawning processes
Glynn Clements
glynn at gclements.plus.com
Thu Feb 17 20:22:29 EST 2005
Jose Luis Gomez Dans wrote:
> I need to process a large data set with s.surf.rst (I
> went back to using
> 5.4 due to Bug#2903). The idea is to spawn several
> s.sur.rst processes
> on an SMP machine, each with a different region (set
> to have some
> overlapping). The individual rasters are then patched
> together into a
> single large raster file.
>
> The idea is to have a script doing this
> g.region north=.... south=...
> s.surf.rst <params> &
> g.region north=... south=...
> s.surf.rst <params>&
>
> This of course, assumes that once s.surf.rst is
> called, the region
> information is no longer used, and can be changed for
> the next process
> to use a different region.
>
> Can anyone see any showstoppers in this?
At a minimum, you need to introduce a delay between starting
s.surf.rst in the background and changing the region, otherwise the
region might get changed before s.surf.rst actually reads it.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-user
mailing list