I knew it! Just testing you all.... :)<br><br><br><div class="gmail_quote">On Mon, Jun 18, 2012 at 12:54 PM, Paulo van Breugel <span dir="ltr"><<a href="mailto:p.vanbreugel@gmail.com" target="_blank">p.vanbreugel@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000099">
First set the region to fit all maps, like suggested by Marcello.
Then, use r.patch to combine the maps.<br>
<br>
Cheers,<br>
<br>
Paulo<div><div class="h5"><br>
<br>
<br>
<br>
On 06/18/2012 01:36 PM, Marcello Gorini wrote:
</div></div><blockquote type="cite"><div><div class="h5">Büro Seling said:<br>
<br>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
My problem begins, when I now try to add up all these single
maps into one larger map.<br>
I searched for a solution and tried several things, but
nothing worked.<br>
<br>
Any tipps or hinds?<br>
</blockquote>
</div>
<br>
<br>
Hey,<br>
<br>
As always, there is probably a much more elegant solution to this
problem, but this should get you going for now:<br>
<br>
> g.region
rast=map1,map2
# just to make sure your region encompass everything<br>
> r.mapcalc
"bigmap=if(isnull(map1),99999,map1)+if(inull(map2),99999,map2)"
# replace nulls on the fly by a specific value that your data does
not contain<br>
> r.mapcalc
"bigmap=if(bigmap==99999,null(),bigmap)"
# put back the nulls<br>
<br>
Well, ugly like all my codes, but it works.<br>
<br>
Cheers,<br>
Marcello.<br>
<br>
<br>
<br>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>This body part will be downloaded on demand.</pre>
</blockquote>
<br>
<div>
<div title="Click to translate"></div>
</div>
</div>
<br>_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
<br></blockquote></div><br>