Skip to content

Commit 52ab3f4

Browse files
authored
Update earthworking tutorials (#98)
Fixes issues in CLI commands raised by @micha-silver in baharmon/r.earthworks#25 for earthworking tutorials. I came across two small problems with the tutorials: In Gully Modeling, under the Fractal Terrain section, I believe that the accumulation=accumulation parameter should be removed. That (input) map does not yet exist, until after running r.watershed in the following code snippet. In Modeling Coastal Infrastructure, I believe that --overwrite needs to be added in the Flood Simulation section and later in the final Flood Simulation section, since the lake raster exists in the original data.
1 parent 565c919 commit 52ab3f4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

content/tutorials/earthworks/gullies.qmd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ to scale it vertically so that the mountains are not too high.
196196
```{bash}
197197
r.surf.fractal output=fractal seed=1
198198
r.mapcalc expression="fractal = fractal / 10" --overwrite
199-
r.stream.extract elevation=fractal accumulation=accumulation threshold=1000 stream_vector=streams
200199
```
201200

202201
## Python

content/tutorials/earthworks/levees.qmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ would be overtopped by a meter of surge.
272272
## Command line
273273

274274
```{bash}
275-
r.lake elevation=elevation water_level=1 lake=flooding coordinates=1109000,102750
275+
r.lake elevation=elevation water_level=1 lake=flooding coordinates=1109000,102750 --overwrite
276276
d.shade shade=relief color=elevation brighten=36
277277
d.rast map=flooding
278278
d.legend raster=flooding digits=1 color=white at=5,95,1,3
@@ -614,7 +614,7 @@ would be not overtopped by a meter of surge.
614614
## Command line
615615

616616
```{bash}
617-
r.lake elevation=earthworks water_level=1 lake=flooding coordinates=1109000,102750
617+
r.lake elevation=earthworks water_level=1 lake=flooding coordinates=1109000,102750 --overwrite
618618
d.shade shade=relief color=earthworks brighten=36
619619
d.rast map=flooding
620620
d.legend raster=flooding digits=1 color=white at=5,95,1,3

0 commit comments

Comments
 (0)