[GRASS-user] Raster Mask under version 7 causes map to go white

cboscari at sbcglobal.net cboscari at sbcglobal.net
Fri Jun 20 11:24:31 PDT 2014


It looks like I figured out what is going on…


The mask file was having the non-null areas interpreted as “No Data” and the Null areas were seen as “0” in version 7. This blanked out everything.  I ran it through raster calculator and now it is back to normal. 

Haven’t a clue why the mask works under 6.4 and not 7.






Sent from Windows Mail





From: César Augusto Ramírez Franco
Sent: ‎Friday‎, ‎June‎ ‎20‎, ‎2014 ‎6‎:‎42‎ ‎AM
To: grass-user at lists.osgeo.org








 



"The mask is just 0 and 1’s"

you must use null and non null



​Or maybe try with "maskcats=1" as an aditional parameter on the r.mask command, in any case you can do this:



r.mapcalc exp="MASK​
 
​= if(MASK == 0, null(), 1)"


-- 


César Augusto Ramírez Franco

Laboratorio de Sistemas Complejos Naturales
Escuela de Geociencias


Facultad de Ciencias

Universidad Nacional de Colombia - Sede Medellín

Teléfono: (57-4) 430 9369 - 30
​0 459 6085
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20140620/fd380e11/attachment-0001.html>


More information about the grass-user mailing list