[GRASS-user] automatically run module/scripts on different regions
(Re: memory use of grass modules)
maning sambale
emmanuel.sambale at gmail.com
Mon Jul 17 04:35:56 EDT 2006
Hi,
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
Thanks!
Maning
On 7/11/06, maning sambale <emmanuel.sambale at gmail.com> wrote:
> Hi,
>
> I want to know how grass modules uses computer memory?
>
> Some of my v.in.ogr and r.in.gdal and r.mapcalc operations fails
> because my computer lacks sufficient ram (dismal 256 MB on XP using
> Cygwin).
>
> Based from the documentation I've read only the r.watershed has option
> to enable disk swap memory option. What about the other modules like
> v.in.ogr, r.in.gdal and mapcalc operations?
>
> AFAIK, XP do not have swap memory so that means I can't use one. Does
> the r.mapcalc operations for instance uses RAM before writing the
> whole file? I'm not sure if I have made the right questions.
>
> In order to go around this problem, I'm trying to create subtiles of
> the data and do some analysis from there. How can I approximate the
> maximum extent for each region that can be processed by my RAM? I've
> read somewhere fragstats gives you an approximate RAM requirements and
> time of processing given a number of cells in a grid (not sure though)
> .
>
> Hope someone would clarify me on this or direct for a link I can go.
>
> Cheers,
>
> Maning
>
> --
> |---------|----------------------------------------------------------|
> | __.-._ |"Ohhh. Great warrior. Wars not make one great." -Yoda |
> | '-._"7' |"Freedom is still the most radical idea of all" -N.Branden|
> | /'.-c |Linux registered user #402901, http://counter.li.org/ |
> | | /T |http://esambale.wikispaces.com|
> | _)_/LI |http://www.geocities.com/esambale/philbiodivmap/philbirds.html |
> |---------|----------------------------------------------------------|
>
--
|---------|----------------------------------------------------------|
| __.-._ |"Ohhh. Great warrior. Wars not make one great." -Yoda |
| '-._"7' |"Freedom is still the most radical idea of all" -N.Branden|
| /'.-c |Linux registered user #402901, http://counter.li.org/ |
| | /T |http://esambale.wikispaces.com|
| _)_/LI |http://www.geocities.com/esambale/philbiodivmap/philbirds.html |
|---------|----------------------------------------------------------|
More information about the grass-user
mailing list