Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions content/tutorials/map_algebra/basic_map_algebra.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ description: >
Learn the basics of map algebra in GRASS
including arithmetic, functions, and logic.
Use map algebra to model a landscape.
thumbnail: images/map_algebra_00.webp
image: images/map_algebra_01.webp
links:
g_region: "[g.region](https://grass.osgeo.org/grass-stable/manuals/g.region.html)"
r_mapcalc: "[r.mapcalc](https://grass.osgeo.org/grass-stable/manuals/r.mapcalc.html)"
r_mapcalc_simple: "[r.mapcalc.simple](https://grass.osgeo.org/grass-stable/manuals/r.mapcalc.simple.html)"
r_series: "[r.series](https://grass.osgeo.org/grass-stable/manuals/r.series.html)"
Expand Down Expand Up @@ -150,7 +151,7 @@ Map algebra operators, functions, and variables in this tutorial

# Setup
Start a GRASS session in a new project with a Cartesian (XY) coordinate system.
Use [g.region](https://grass.osgeo.org/grass-stable/manuals/g.region.html)
Use {{< meta links.g_region >}}
to set the extent and resolution of the computational region.
Since we are working in a Cartesian coordinate system,
we can simply create a region starting at the origin
Expand Down Expand Up @@ -285,7 +286,7 @@ Print the rescaled elevation range with
```{bash}
r.mapcalc expression="elevation = fractal / 10"
r.colors map=elevation color=elevation
r.info -r map=elevation format=plain
r.info -r map=elevation
```
## Python
```{python}
Expand Down
4 changes: 2 additions & 2 deletions content/tutorials/map_algebra/images/map_algebra_01.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading