[GRASS-user] r.terraflow

G. Allegri giohappy at gmail.com
Mon Jul 28 10:15:39 EDT 2008


Hi list.
I'm trying to use terraflow for the very first time, because
r.watershed is too much time consuming for my dataset. I've updated it
to include the recent patches to categories coding.
In the new coding scheme, when using the sdf option, 9 directions are
depicted (0,1,2,4,8,16,32,64,128). I reclassify them to compare the
result with r.watershed, but I'm not sure about the 0 values returned
by r.terraflow. In r.watershed the positive values, multiplied for 45,
give the direction angle relative to north, so 8 directions are used
(1-8), and I've setup the following reclassifying rules:

1=2
2=3
4=4
8=5
16=6
32=7
64=8
128=1

I miss the zeroes... I've given a rapid look to the source code, and I
see it's used as "default" return value. ???

Thanks,
Giovanni


More information about the grass-user mailing list