Skip to content

Commit

Permalink
streamline the r.watershed and sink filling part
Browse files Browse the repository at this point in the history
  • Loading branch information
hmitaso committed Nov 12, 2024
1 parent b13558e commit df12212
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions grass/hydrology.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<h2>Flow routing and watershed analysis</h2>
<p>Resources:
<ul>
<li><a href="https://grass.osgeo.org/grass83/manuals/index.html">
<li><a href="https://grass.osgeo.org/grass84/manuals/index.html">
GRASS GIS overview and manual</a></li>
<li> <a href="data_acquisition.html#commands">Recommendations</a>
and <a href="./grass_intro.html">tutorial</a>
<!--and <a href="./grass_intro.html">tutorial</a>-->
how to use GUI from the first assignment</li>
</ul>

Expand Down Expand Up @@ -42,24 +42,19 @@ <h3>Compute flow direction, flow accumulation and subwatersheds</h3>
</code></pre>

<p>
Extract more detailed streams from flow accumulation raster:
Extract more detailed streams from flow accumulation raster,
and convert basins and streams to vector format:

<pre><code>
r.mapcalc "streams_der_30m = if(abs(accum_10K) > 100, 1, null())"
</code></pre>

<p>
Convert to vector format and display results
along with the official Wake county streams (red):

<pre><code>
r.to.vect -s basin_10K output=basin_10K type=area
r.thin streams_der_30m output=streams_der_30m_t
r.to.vect -s streams_der_30m_t out=streams_der_30m type=line
</code></pre>

<p>
Generate shaded map and display:
Generate relief shaded map of basins
and display extracted streams along with the official Wake county streams (red):
<span class="question">How do the derived streams compare with the official stream map?</span><br>
<span class="question">How can you modify the mapcalc expression to make stream origins fit better
with the official stream map?</span>
Expand All @@ -70,14 +65,19 @@ <h3>Compute flow direction, flow accumulation and subwatersheds</h3>
d.vect basin_10K type=boundary
d.rast lakes
d.vect streams_der_30m color=blue
d.vect streams color=red
d.out.file mystreams
d.vect streams color=red
d.out.file streams_compare
</code></pre>

<p>Note that you can also use a MFD routing for r.watershed combined with r.stream.extract
for vectorized streams with topology of stream network. Read the manual pages to learn more.

<h3>Create map of DEM depressions</h3>
Depression filling is often necessary for certain flow routing algorithms but it can alter the elevation data significantly.
Depression filling is sometimes necessary for certain flow routing algorithms
but it can significantly alter the elevation data leading to srtificial straight channels.
Find out how extensive the depressions are in our DEM.<br>
Note that <em class="module">r.watershed</em> doesn't need any depression filling thanks to
Note that <em class="module">r.watershed</em> tool doesn't need any depression filling thanks to
its underlying algorithm which uses least cost path to get over depressions.

<pre><code>
Expand All @@ -102,6 +102,10 @@ <h3>Create map of DEM depressions</h3>
d.out.file depressions
</code></pre>

<span class="question">What is the area mapped as depression in [ha] and [%] ?
(hint: use r.report with depr_bin) </span><br>
Optional: How would you compute the total volume of mapped depressions?


<h3>Derive contributing area for a given outlet</h3>
Set region to the high resolution study area and zoom to it:
Expand Down

0 comments on commit df12212

Please sign in to comment.