Opened 8 years ago

Closed 5 years 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 by martinl, 8 years ago

Keywords: r.watershed added

comment:2 by mankoff, 8 years ago

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?

in reply to:  description comment:3 by mmetz, 8 years ago

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 by martinl, 8 years ago

Milestone: 7.0.47.0.5

comment:5 by neteler, 7 years ago

Milestone: 7.0.57.0.6

comment:6 by neteler, 6 years ago

Milestone: 7.0.67.0.7

comment:7 by mankoff, 5 years ago

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.