<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div>
<div style="font-family:sans-serif">
<p></p><div class="">"The mask is just 0 and 1’s"<br></div>
you must use null and non null<br></div></div></blockquote><div><br><div class="gmail_default" style="color:rgb(39,78,19);display:inline">Or maybe try with "maskcats=1" as an aditional parameter on the r.mask command, in any case you can do this:<br>
<br></div><div class="gmail_default" style="color:rgb(39,78,19);display:inline">r.mapcalc exp="MASK</div> <div class="gmail_default" style="color:rgb(39,78,19);display:inline">= if(MASK == 0, null(), 1)"<br><br clear="all">
</div></div></div>-- <br><div dir="ltr"><div style="text-align:right"><b style="color:rgb(39,78,19)">César Augusto Ramírez Franco</b></div><font color="#274e13"><div style="text-align:right">Laboratorio de Sistemas Complejos Naturales</div>
<span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><div style="text-align:right">Escuela de Geociencias</div></span></font><div><div style="text-align:right"><span style="white-space:pre-wrap;font-family:Arial;color:rgb(39,78,19)">Facultad de Ciencias</span></div>
<font color="#274e13"><div style="text-align:right">Universidad Nacional de Colombia - Sede Medellín</div></font></div><font color="#274e13"><div style="text-align:right">Teléfono: (57-4) 430 9369 -<font face="arial, helvetica, sans-serif"> 30<div class="gmail_default" style="color:rgb(39,78,19);display:inline">
0 459 6085</div></font></div></font></div>
</div></div>