Skip to content

Commit 066466e

Browse files
committed
earthworks tutorials
1 parent 64e9184 commit 066466e

40 files changed

+3895
-0
lines changed

content/tutorials/earthworks/basics.ipynb

Lines changed: 454 additions & 0 deletions
Large diffs are not rendered by default.

content/tutorials/earthworks/basics.qmd

Lines changed: 403 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
---
2+
title: "Terrain modeling with r.earthworks in GRASS"
3+
author: "Brnedan Harmon"
4+
date: 2025-07-07
5+
date-modified: today
6+
image: images/earthworks_01.webp
7+
links:
8+
r_earthworks: "[r.earthworks](https://grass.osgeo.org/grass-stable/manuals/addons/r.earthworks.html)"
9+
g_extension: "[g.extension](https://grass.osgeo.org/grass-stable/manuals/g.extension.html)"
10+
format:
11+
html:
12+
toc: true
13+
code-tools: true
14+
code-copy: true
15+
code-fold: false
16+
categories: [earthworks, terrain, raster, beginner]
17+
description: "A collection of tutorials demonstrating how to model terrain in GRASS with r.earthworks."
18+
engine: jupyter
19+
execute:
20+
eval: false
21+
---
22+
23+
![Random fill operation with r.earthworks](images/earthworks_01.webp)
24+
25+
<!-- Replace with new image -->
26+
27+
Learn how model terrain with {{< meta links.r_earthworks >}}. With this tool you can generate new terrain or modify exisiting terrain using cut and fill operations inspired by earthworking. The first tutorial on the basics of terrain modeling introduces key concepts such as cut and fill operations. The subsequent tutorials introduce more advanced concepts such as relative operations and growth and decay functions. These tutorials demonstrate how to generate terrain, model natural landforms, and model anthropogenic landforms - i.e. earthworks - such as roads, dams, and levees. Read our [paper](https://raw.githubusercontent.com/baharmon/r.earthworks/main/paper/paper.pdf) to learn more.
28+
29+
<!-- Update link when paper published -->
30+
31+
## Installation
32+
33+
::: {.panel-tabset group="language"}
34+
35+
## Command line
36+
37+
```{bash}
38+
g.extension extension=r.earthworks
39+
```
40+
41+
## Python
42+
43+
```{python}
44+
# Install extension
45+
gs.run_command("g.extension", extension="r.earthworks")
46+
```
47+
48+
:::
49+
50+
## Tutorial Collection
51+
52+
1. **[Basic earthworks](./basics.qmd)**
53+
Learn the basics of terrain modeling with r.earthworks.
54+
55+
2. **[Gully modeling](./gullies.qmd)**
56+
Model gullies using relative cut operations.
57+
58+
3. **[Levee improvement & ridge restoration](./levees.qmd)**
59+
Model coastal infrastructure projects including levees and restored alluvial ridges.
60+
61+
4. **[Terrain synthesis](./synthesis.qmd)**
62+
Synthesize terrain by applying landforms from one landscape to another.

content/tutorials/earthworks/gullies.ipynb

Lines changed: 375 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)