Opened 4 years ago

Closed 11 months ago

#2980 closed defect (worksforme)

r.watershed and max_slope_length

Reported by: mankoff Owned by: grass-dev@…
Priority: normal Milestone: 7.0.7
Component: Docs Version: 7.0.1
Keywords: r.watershed Cc: mankoff@…
CPU: OSX/Intel Platform: MacOSX

Description

I'm not sure if this is a bug, but I think it might be. The max_slope_length seems to have no effect in the r.watershed program. Below is an example that should work on the NC data set. I'd expect there to be different accumulation maps based on setting max_slope_length, but they appear identical.

r.mapcalc "rain = 1"
r.watershed -s -a --v elevation=elev_srtm_30m accumulation=acc drainage=fdir flow=rain
r.watershed -s -a --v elevation=elev_srtm_30m accumulation=acc.len drainage=fdir.len flow=rain max_slope_length=15
g.gui.mapswipe first=acc second=acc.len

Also mentioned at https://www.mail-archive.com/grass-user@lists.osgeo.org/msg31665.html and https://gis.stackexchange.com/questions/187312/what-does-the-max-slope-length-option-do-in-grass-r-watershed

Change History (7)

comment:1 Changed 4 years ago by martinl

Keywords: r.watershed added

comment:2 Changed 4 years ago by mankoff

Component: RasterDocs

Turns out that this works, but only influences the length_slope output, not the accumulation output, which is why the example above doesn't appear to work.

Source: https://gis.stackexchange.com/questions/187312/what-does-the-max-slope-length-option-do-in-grass-r-watershed

In this case, this could be considered a documentation bug?

comment:3 in reply to:  description Changed 3 years ago by mmetz

Replying to mankoff:

I'm not sure if this is a bug, but I think it might be. The max_slope_length seems to have no effect in the r.watershed program. Below is an example that should work on the NC data set. I'd expect there to be different accumulation maps based on setting max_slope_length, but they appear identical.

The max_slope_length option only affects RUSLE outputs length_slope and slope_steepness. From the manual: "This input is used for the RUSLE calculations".

comment:4 Changed 3 years ago by martinl

Milestone: 7.0.47.0.5

comment:5 Changed 3 years ago by neteler

Milestone: 7.0.57.0.6

comment:6 Changed 20 months ago by neteler

Milestone: 7.0.67.0.7

comment:7 Changed 11 months ago by mankoff

Resolution: worksforme
Status: newclosed

This issue was submitted many years ago and appears to be due to my misunderstanding some of the features of r.watershed and RUSLE.

Note: See TracTickets for help on using tickets.