2

In Grass r.watershed the D8 drainage directions generated from r.watershed are -8. -6.-4.-2, 2, 4, 6, 8 (-1 No Data)

What actual directions are these?

For example in ArcGIS I know 128 is up and so on from this diagram.

enter image description here

What in Grass r.watershed which is up, right, etc?

When I compare the value to ArcGIS it would be

r,waterhsed (grass).....ArcGIS (flow).....Direction

8 ..........................................1.....................East

6 ..........................................4.....................South

4 .........................................16.....................West

2 .........................................64.....................North

The minus value are very few and likely edge pixel as the grass manual states.

But I would like a source to confirm this (and why only 8 values?)

1
  • In ArcGIS 128 is Northeast; 64 is up (North) ;)
    – Nahas
    Oct 1, 2015 at 15:06

2 Answers 2

2

GRASS numbers the directions in a drainage (flow direction) raster from 1-8 starting eastward and going counter clock-wise.

What about the negative numbers? GRASS uses negative direction to indicate that the flow from this cell is going off the map. But the absolute value still indicates the direction. So both 4 and -4 mean west. Also, GRASS uses 0 to indicate a sink = no flow at all from this cell.

Copied from here.

0

r.watershed documentation says:

Negative values indicate that surface runoff is leaving the boundaries of the current geographic region. The absolute value of these negative cells indicates the direction of flow.

also see Michael Silver post about flow directions.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.