Skip to content

Commit 3af8926

Browse files
authored
New tutorials on earthworking (#83)
1 parent 112b45d commit 3af8926

39 files changed

+3962
-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: 404 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
---
2+
title: "Earthworks"
3+
author: "Brendan 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+
Learn how model terrain with {{< meta links.r_earthworks >}}. With this tool you can generate new terrain or modify existing 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.
26+
27+
<!-- Update link when paper published -->
28+
29+
## Installation
30+
31+
::: {.panel-tabset group="language"}
32+
33+
## Command line
34+
35+
```{bash}
36+
g.extension extension=r.earthworks
37+
```
38+
39+
## Python
40+
41+
```{python}
42+
# Install extension
43+
gs.run_command("g.extension", extension="r.earthworks")
44+
```
45+
46+
:::
47+
48+
## Tutorial Collection
49+
50+
1. **[Basic earthworks](./basics.qmd)**
51+
Learn the basics of terrain modeling with r.earthworks.
52+
53+
2. **[Gully modeling](./gullies.qmd)**
54+
Model gullies using relative cut operations.
55+
56+
3. **[Coastal infrastructure](./levees.qmd)**
57+
Model coastal infrastructure projects including levees and restored alluvial ridges.
58+
59+
4. **[Terrain synthesis](./synthesis.qmd)**
60+
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)