<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <link href="chrome://translator/skin/floatingPanel.css"
      type="text/css" rel="stylesheet">
  </head>
  <body 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<br>
    <br>
    <br>
    <br>
    On 06/18/2012 01:36 PM, Marcello Gorini wrote:
    <blockquote
cite="mid:CAEvwxELv-jHzqfqnQX5ZxAMjPu4jL+D4z9PKduW42CATUDM6UQ@mail.gmail.com"
      type="cite">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 class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">This body part will be downloaded on demand.</pre>
    </blockquote>
    <br>
    <div style="bottom: auto; left: 0px; right: auto; top: 56px;
      display: none;" class="translator-theme-default"
      id="translator-floating-panel">
      <div title="Click to translate"
        id="translator-floating-panel-button"></div>
    </div>
  </body>
</html>