[GRASS-user] How to copy more raster layers to one layer

Hi,

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…

Thx!
Örs

Kontakt:
Téglásy Örs
orsteglasy@yahoo.com
http://ludens.elte.hu/~tors
+36 (20) 385-5928


Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

2006/6/2, Téglásy Örs <orsteglasy@yahoo.com>:

Hi,

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…

Thx!
Örs

Kontakt:

Téglásy Örs
orsteglasy@yahoo.com
http://ludens.elte.hu/~tors
+36 (20) 385-5928

Hello,

Maybe r.patch could help you ?

you can try r.patch input=mapA,mapB output=result

Wolfgang

Téglásy Örs schrieb:

Hi,

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...

Thx!
Örs

*_Kontakt:_ *
Téglásy Örs
orsteglasy@yahoo.com <mailto:orsteglasy@yahoo.com>
http://ludens.elte.hu/~tors
+36 (20) 385-5928

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

------------------------------------------------------------------------

_______________________________________________
grassuser mailing list
grassuser@grass.itc.it
http://grass.itc.it/mailman/listinfo/grassuser

Thanks a lot guys, you solved my problem!
Thx!
Örs

Wolfgang wollez@gmx.net wrote:

you can try r.patch input=mapA,mapB output=result

Wolfgang

Téglásy Örs schrieb:

Hi,

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…

Thx!
Örs

*Kontakt: *
Téglásy Örs
orsteglasy@yahoo.com

Kontakt:
Téglásy Örs
orsteglasy@yahoo.com
http://ludens.elte.hu/~tors
+36 (20) 385-5928


Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

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