[GRASS-dev] Building a map to test my module

Glynn Clements glynn at gclements.plus.com
Mon Apr 21 12:09:37 EDT 2008


roberto caselli wrote:

> I need to test a part of my module and I'd like to know if it is
> possible to build a very little raster map starting with some data I'd
> send in input in that script (like elevations, areas, number of rows
> and cols and so on).

There are many ways to generate test maps. r.surf.random and
r.surf.gauss will generate random values, r.mapcalc can be used to
generate surfaces specified by an equation and/or random values,
r.in.xyz and r.in.ascii can be used to generate a map from data which
can be easily generated by a script.

Except for r.in.ascii, the bounds and resolution of any raster map
created as above will be determined by the current region.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list