Gabriele N. wrote:

> I have three maps A, B, C.
> 
> I would use r.mapcalc to combine them according to this logic:
> Put the values of A and if A is null you put the values of B and if B is
> null you put the values of C.
> 
> I have tried in various ways without success. .. now I'm trying with a
> double IF...
> r.mapcalc "output = if((isnull(a)),b,if(isnull(b)),c)"  .....but in this
> case I do not put the values of A

        r.mapcalc "output = if(!isnull(a),a,if(!isnull(b),b,c))"

-- 
Glynn Clements <[email protected]>
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to