<br>&quot;
<em><b>r.patch</b></em>  - Creates a composite raster map layer by using
 known category values from one (or more) map layer(s) to fill in areas 
of &quot;no data&quot; in another map layer. &quot;<br><br>&quot;

The GRASS program <em>r.patch</em> allows the user to build a new
raster map the size and resolution of the current region by assigning
known data values from input raster maps to the cells in this region.
This is done by filling in &quot;no data&quot; cells, those that do not yet
contain data, contain NULL data, or, optionally contain 0 data,
with the data from the first input map.
Once this is done the remaining holes are filled in by the next input map,
and so on.
This program
is useful for making a composite raster map layer from two or more adjacent
map layers, for filling in &quot;holes&quot; in a raster map layer&#39;s data (e.g., in
digital elevation data), or for updating an older map layer with more recent
data. The current geographic region definition and mask settings are
respected.
&quot;<br><br><a href="http://grass.osgeo.org/grass64/manuals/html64_user/r.patch.html">http://grass.osgeo.org/grass64/manuals/html64_user/r.patch.html</a><br><br><br><br><div class="gmail_quote">2011/1/16 Gabriele N. <span dir="ltr">&lt;<a href="http://gis.gn">gis.gn</a>@<a href="http://libero.it">libero.it</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><br>
Ciao grass users.<br>
<br>
I have three maps A, B, C.<br>
<br>
I would use r.mapcalc to combine them according to this logic:<br>
Put the values of A and if A is null you put the values of B and if B is<br>
null you put the values of C.<br>
<br>
I have tried in various ways without success. .. now I&#39;m trying with a<br>
double IF...<br>
r.mapcalc &quot;output = if((isnull(a)),b,if(isnull(b)),c)&quot;  .....but in this<br>
case I do not put the values of A<br>
<br>
<br>
Help / advice?<br>
<br>
Thanks<br>
<font color="#888888">--<br>
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/r-mapcalc-3-maps-tp5929440p5929440.html" target="_blank">http://osgeo-org.1803224.n2.nabble.com/r-mapcalc-3-maps-tp5929440p5929440.html</a><br>

Sent from the Grass - Users mailing list archive at Nabble.com.<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>
</font></blockquote></div><br>