[GRASS-user] Re: null to equal zero

Achim Kisseler ak7 at jupiter.uni-freiburg.de
Thu Mar 18 05:26:34 EDT 2010


Hi Gary,

 > so
 > r.mapcalc "result=if( isnull(Bones_AVE),0,outputmap)"
 >
 > Is that right, no need for A=Bones_AVE?
 > could the output map be the original? Or does it have to be a new raster?

r.mapcalc "result=if( isnull(Bones_AVE),0,Bones_AVE)"

and yes, it can be the original

r.mapcalc "Bones_AVE=if( isnull(Bones_AVE),0,Bones_AVE)"

Achim


More information about the grass-user mailing list