Excuse me if I seem stupid but I have a problem with r.mapcalc. I have a dem stored in FCELL with range of data(z) : min = -26.670000  max = 695.960022 . I try to extract a raster/dem with all values &lt; 0.<br>I try <br>r.mapcalc &#39;test = if(mydem &gt;0.0000,mydem,null())&#39; <br>

Results give me<br>Range of datafor test :    min = 0.200000  max = 695.960022  <br>with r.mapcalc &#39;test = if(mydem &lt; 0.0000,mydem,null())&#39; <br>results <br>Range of data:    min = -26.670000  max = -0.010000  -&gt; ok for me<br>

But when i  display test map, i allways get the full dem and not only a map with values &lt; 0.<br>I try replacing test with MASK but same result<br>What is the error I made or how can I do ?<br><br>