[GRASS-user] How to copy more raster layers to one layer
Hamish
hamish_nospam at yahoo.com
Sat Jun 3 04:47:03 EDT 2006
> Téglásy Örs schrieb:
> > I have several raster layers containing DEM data for an area of 1*1
> > degree each. I would like to "copy" those layers together having
> > just one dem raster layer for the whole area. I started with
> > r.mapcalculator using expressions like "max(A, ... , F) " or
> > A+...+F, but I always got an empy layer probably because the
> > rasters dont overlap each other. Any idea how to do that? Shouldn't
> > be too difficult...
Wolfgang[, Laurent] wrote:
> you can try r.patch input=mapA,mapB output=result
tip o' the day:
It's also useful to use g.region's multiple rast= capability to expand
the region to the extent of all maps automatically:
MAPS=`g.mlist pattern="srtm_*" sep=,`
g.region rast=$MAPS
r.patch in=$MAPS out=srtm_mosaic
Hamish
More information about the grass-user
mailing list