Skip to content

Commit be647a5

Browse files
committed
changed CLI formatting and fixed a typo
Switched formatting of CLI from {python} to {bash}, and fixed a typo.
1 parent 1405604 commit be647a5

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

content/tutorials/terrain_and_DEMs/GRASS_terrain.qmd

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ Try out some other color tables. ETOPO2, terrain, and the SRTM color tables are
152152

153153
#### Command line
154154

155-
```{python}
155+
```{bash}
156156
r.colors -e map=elevation color=elevation
157157
```
158158

@@ -211,7 +211,7 @@ We will keep the defaults for sun direction and height, but increase the vertica
211211

212212
#### Command line
213213

214-
```{python}
214+
```{bash}
215215
r.relief input=elevation output=relief zscale=3
216216
```
217217

@@ -276,7 +276,7 @@ We will start by creating a new color-shaded relief map using [r.shade](https://
276276

277277
#### Command line
278278

279-
```{python}
279+
```{bash}
280280
r.shade shade=relief color=elevation output=topography_colored_relief brighten=40]
281281
```
282282

@@ -399,7 +399,7 @@ We will create new maps from the *elevation* DEM for slope (each cell will store
399399

400400
Add the "-n" flag so that aspect will be recorded as degrees clockwise from North. Otherwise, aspect will be calculated as degrees counter clockwise from East.
401401

402-
```{python}
402+
```{bash}
403403
r.slope.aspect elevation=elevation slope=slope aspect=aspect -n
404404
```
405405

@@ -520,7 +520,7 @@ The raster legend tool can be accessed from the display window tool bar. This to
520520

521521
A legend can be generated using the [d.legend](https://grass.osgeo.org/grass-stable/manuals/d.legend.html) command.
522522

523-
```{python}
523+
```{bash}
524524
d.legend -d raster=slope title=Slope title_fontsize=14 units=° labelnum=4 range=0,75 fontsize=12
525525
```
526526

@@ -552,7 +552,7 @@ Here is the result.
552552

553553
### Displaying specific slope values
554554

555-
Rather than seeing all slopes or other terrain characteristics, it is sometimes useful to focus on a limited range values. This can be done quickly the display properties for raster maps.
555+
Rather than seeing all slopes or other terrain characteristics, it is sometimes useful to focus on a limited range values. This can be done quickly in the display properties tool for raster maps.
556556

557557
:::::::::::: {.panel-tabset group="language"}
558558

@@ -570,7 +570,7 @@ Rather than seeing all slopes or other terrain characteristics, it is sometimes
570570

571571
You can display only slopes ≥ 10° using the ([d.rast](https://grass.osgeo.org/grass-stable/manuals/d.rast.html)) tool.
572572

573-
```{python}
573+
```{bash}
574574
d.rast map=slope values=10-76
575575
```
576576

@@ -677,7 +677,7 @@ Now create an analysis of very small landforms using a search radius of only 5 c
677677

678678
We will start with a large outer search radius of 200 cells (600 m on the Flagstaff DEM). This will classify larger scale landforms.
679679

680-
```{python}
680+
```{bash}
681681
r.geomorphon elevation=elevation forms=landforms200 search=200 skip=10 flat=1 comparison=anglev2_distance
682682
```
683683

@@ -882,7 +882,7 @@ As with slope, a legend can help convey the information of a flow accumulation m
882882

883883
#### Command line
884884

885-
```{python}
885+
```{bash}
886886
d.legend -l raster=watershed_accumulation100000 title="Flow Accumulation" title_fontsize=14 label_values=1,10,100,1000,10000,100000,1000000 fontsize=12
887887
```
888888

@@ -956,7 +956,7 @@ We can make the streams more easily visible if we convert the raster stream map
956956

957957
#### Command line
958958

959-
```{python}
959+
```{bash}
960960
r.to.vect -v input=watershed_streams10000 output=watershed_streams10000 type=line
961961
```
962962

@@ -1041,7 +1041,7 @@ An alternative way to generate a stream network from a watershed analysis is wit
10411041

10421042
#### Command line
10431043

1044-
```{python}
1044+
```{bash}
10451045
r.stream.extract elevation=elevation accumulation=watershed_accumulation10000@ threshold=5000 stream_vector=streams5000accumulation
10461046
```
10471047

0 commit comments

Comments
 (0)