Skip to content

Commit

Permalink
r.surf.volcano: redo man page examples, add screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
HamishB committed Sep 9, 2024
1 parent 47c8599 commit cb5cf45
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 6 deletions.
32 changes: 26 additions & 6 deletions src/raster/r.surf.volcano/r.surf.volcano.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,19 @@ <h2>NOTES</h2>

<h2>EXAMPLES</h2>

Create a simple Gaussian bell:
<div class="code"><pre>
r.surf.volcano -r output=seamount
r.surf.volcano -r output=seamount method=gaussian

# view in the display monitor
r.colors seamount color=sepia -e
r.colors seamount color=roygbiv
d.rast seamount

# render in 3D
m.nviz.image elevation_map=seamount out=gaussian \
perspective=10 resolution_fine=1 height=3500
pnmtopng gaussian.ppm > gaussian.png

# export to Matlab
r.out.mat in=seamount out=seamount.mat

Expand All @@ -44,6 +50,11 @@ <h2>EXAMPLES</h2>
r.colors seamount_dem color=srtm
</pre></div>

<div align="center" style="margin: 10px">
<img src="r_surf_volcano_gaussian.jpg" border=0><br>
<i>Gaussian bell</i>
</div>


Create a roughened volcano with a crater:
<div class="code"><pre>
Expand All @@ -53,14 +64,23 @@ <h2>EXAMPLES</h2>

Create a fancy 3D scene:
<div class="code"><pre>
r.surf.volcano -r output=base_volcano peak=600 crater=120
r.surf.volcano -r output=base_volcano peak=1000 crater=200
r.surf.fractal output=base_fractal
r.mapcalc "artificial_land = base_volcano*10 + base_fractal"
r.colors artificial_land color=srtm
<!-- nviz artificial_land -->
r.mapcalc "artificial_land = base_volcano*3.5 + base_fractal"

m.nviz.image elevation_map=artificial_land out=volcano3D \
perspective=25 resolution_fine=1 height=30000
pnmtopng volcano3D.ppm > volcano3D.png
</pre></div>


<div align="center" style="margin: 10px">
<img src="r_surf_volcano_volcano3D.jpg" border=0><br>
<i>Synthetic volcano from r.surf.volcano combined with fractal
landscape from r.surf.fractal</i>
</div>


<h2>SEE ALSO</h2>

<em>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit cb5cf45

Please sign in to comment.