[GRASSLIST:4319] mode()

Maciek Sieczka werchowyna at pf.pl
Tue Sep 7 13:12:56 EDT 2004


hi!

I encountered something strange in mapcalc

when doing:

r.mapcalc
'map_neigh=if(map==0,mode(map[-1,-1],map[-1,0],map[-1,1],map[0,1],map[1,1],m
ap[1,0],map[1,-1],map[0,-1]),map)'

100%
Segmentation fault

and no result layer or crippled

any other mode() calculation is mostly the same
but e.g. median() works ok

my grass is cvs 5.3 (grass53_exp_2004_08_21) built from source on a Mandrake
9.2

what other way can I obtain the result I intend to in my r.mapcalc equation?

cheers!
Maciek




More information about the grass-user mailing list