[GRASS-user] automatically run module/scripts on different regions (Re: memory use of grass modules)

Hamish hamish_nospam at yahoo.com
Tue Jul 18 05:51:00 EDT 2006


> In order to go around with my problem of running out of RAM during
> some grass sessions with large areas, I created subtiles (v.mkgrid) of
> the whole data region and implement analysis for each subtile/region.
> 
> Any ideas on how to automate this?
> 
> The basic idea is as follows: run a script with the following
> parameters: region setting=vector in a v.mkgrid, script/module = a
> script file.
> 
> 1. select region setting from grid 1 of vector from v.mkgrid
> 2. run script file
> 3. save output vector/raster some filename.grid1
> 4. select region setting from grid 2 of vector from v.mkgrid
> 5. run script file and save output vector/raster some filename.grid1
> and so on



r.mapcalc (for one) should only read in one row of data at a time, this
shouldn't fill your memory.


for tiling, in GRASS 6.1 check out the r.tileset module(?) and the
tiling example in the d.out.gpsdrive help page.


Hamish




More information about the grass-user mailing list