Greetings<div><br></div><div>I'm having some unexpected difficulties on setting negative valeus to null using r.mapcalc.</div><div><br></div><div>I have a raster named d_data (DCELL) with the following range of values</div>
<div> | Range of data: min = -0.001399 max = 0.356480 </div><div>Only a few values are negative so I want to set them to null</div><div><br></div><div>I have used this expression</div><div>if(d_cell@National <0 , null(), d_cell@National) </div>
<div>and when i do <a href="http://r.info">r.info</a> output I get:</div><div>| Data Type: DCELL </div><div> | Range of data: min = nan max = nan </div><div><br></div><div>Which is not expected</div><div><br>
</div><div>What am I doing wrong in this expression?</div><div><br>Thanks</div><div>Luisa</div>