[GRASS-user] Re: r.mapcalc and nested if

thedok78 thedoktor78 at gmail.com
Wed Apr 14 10:27:37 EDT 2010


Sorry, this is the expression:
r.mapcalc 'map2=if(map ==1
,if(mode(map[-1,-1],map[-1,0],map[-1,1],map[0,1],map[1,1],map[1,0],map[1,-1],map[0,-1])==1,0,mode(map[-1,-1],map[-1,0],map[-1,1],map[0,1],map[1,1],map[1,0],map[1,-1],map[0,-1]),map))'

Thanks
Luca
-- 
View this message in context: http://n2.nabble.com/r-mapcalc-and-nested-if-tp4901916p4901925.html
Sent from the Grass - Users mailing list archive at Nabble.com.


More information about the grass-user mailing list