Hi,<br clear="all"><br>I am trying to do something really simple but not finding the right way to do it.<div><div>I need to convert nulls into zeros. I have done this:<br><i>r.mapcalc "raster2 = if(raster1 = null(), 0, raster1)"  </i></div>

<div><i>r.mapcalc "raster2 = if(raster1 == null(), 0, raster1)"  </i><i><br></i><div>But this convert all cells into nulls.<div><br></div><div>I have tried another approach with r.reclass, rules:</div><div><div>

null/null()/no data/nodata...=0</div><div>1=1</div><div>2=2</div><div>3=2</div><div>4=2</div><div>5=2</div></div><div><br></div><div>No fun, all I get is an ERROR: null/null()/no data/nodata...=0 </div><div><br></div><div>

What I'm doing wrong?<br><br>Eloi Ribeiro<br>GIS Analyst<br>39,45º -0,40º<br><a href="http://flavors.me/eloiribeiro" target="_blank">flavors.me/eloiribeiro</a><br>
</div></div></div></div>