Skip to content

Commit

Permalink
r.clump manual: screenshots added (#902)
Browse files Browse the repository at this point in the history
- screenshots added for both examples
- scripts to generate screenshots included as commented HTML
  • Loading branch information
neteler committed Aug 20, 2020
1 parent 98c3fca commit 7abc3a4
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 2 deletions.
49 changes: 47 additions & 2 deletions raster/r.clump/r.clump.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ <h2>NOTES</h2>

<h2>EXAMPLES</h2>

<h3>Clumping of a raster map</h3>

Perform clumping on "lakes" map (North Carolina sample dataset) and
report area sizes for each lake individually rather by waterbody type:

Expand All @@ -71,7 +73,29 @@ <h2>EXAMPLES</h2>
r.report lakes_individual units=h
</pre></div>

<p>
<!--
# in addition to the example above
g.region raster=lakes
# needed to draw a "box"
v.in.region lakes_box
d.frame -e
d.frame -c frame=first at=0,100,0,50
d.rast lakes
d.vect lakes_box type=boundary
d.frame -c frame=second at=0,100,50,100
d.rast lakes_individual
d.vect lakes_box type=boundary
-->

<div align="center" style="margin: 10px">
<a href="r_clump_lakes.png">
<img src="r_clump_lakes.png" width="600" height="260" alt="r.clump lake clumping example" border="1">
</a><br>
<i>Figure: Clumping of rasterized lakes: original lakes map (left) and clumped lakes map (right)</i>
</div>

<h3>Fuzzy clumping on Landsat bands</h3>

Perform fuzzy clumping on Landsat 7 2002 imagery (North Carolina sample dataset)
<div class="code"><pre>
g.region raster=lsat7_2002_10 -p
Expand All @@ -83,6 +107,27 @@ <h2>EXAMPLES</h2>
out=lsat7_2002_clump_min10 threshold=0.045 minsize=10
</pre></div>


<!--
# in addition to the example above
g.region raster=lsat7_2002_10
d.frame -e
d.frame -c frame=first at=0,100,0,33
d.rgb b=lsat7_2002_10 g=lsat7_2002_20 r=lsat7_2002_30
d.frame -c frame=second at=0,100,33,66
d.rast lsat7_2002_clump
d.frame -c frame=third at=0,100,66,99
d.rast lsat7_2002_clump_min10
-->

<div align="center" style="margin: 10px">
<a href="r_clump_lakes.png">
<img src="r_clump_lsat.png" width="600" height="178" alt="r.clump example Landsat fuzzy clumping" border="1">
</a><br>
<i>Figure: Fuzzy clumping on Landsat bands: original RGB composite (left),
fuzzy clumped map (middle), and fuzzy clumped with minsize map (right)</i>
</div>

<h2>SEE ALSO</h2>

<em>
Expand All @@ -99,7 +144,7 @@ <h2>SEE ALSO</h2>
<a href="r.support.html">r.support</a>
</em>

<h2>AUTHOR</h2>
<h2>AUTHORS</h2>

Michael Shapiro, U.S. Army Construction Engineering Research
Laboratory<br>
Expand Down
Binary file added raster/r.clump/r_clump_lakes.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added raster/r.clump/r_clump_lsat.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7abc3a4

Please sign in to comment.