瀏覽代碼

r.surf.fractal: add simple example to manual (the existing is too complicated to be the only example)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@63402 15284696-431f-4ddb-bdfa-cd5b030d7da7
Vaclav Petras 10 年之前
父節點
當前提交
78b6b62e90
共有 2 個文件被更改,包括 29 次插入0 次删除
  1. 29 0
      raster/r.surf.fractal/r.surf.fractal.html
  2. 二進制
      raster/r.surf.fractal/r_surf_fractal_simple.png

+ 29 - 0
raster/r.surf.fractal/r.surf.fractal.html

@@ -15,6 +15,35 @@ for computing Discrete Fourier Transforms.
 
 <h2>EXAMPLE</h2>
 
+Generate surface using fractals in selected region, set color table and
+display with shade.
+
+<div class="code"><pre>
+g.region rast=elevation
+
+r.surf.fractal output=fractals
+
+r.colors map=fractals color=byr
+r.relief input=fractals output=fractals_shade
+
+d.mon wx0
+d.shade relief=fractals_shade drape=fractals b=50
+</pre></div>
+
+<center>
+<img src="r_surf_fractal_simple.png" alt="Artificial surface created with fractals"><br>
+Artificial surface created with fractals<br>
+</center>
+
+<!--
+# leave out d.mon wx0 when generating image
+mogrify -trim map.png
+optipng -o5 map.png
+mv map.png r_surf_fractal_simple.png
+-->
+
+Compare results when using different fractal dimensions:
+
 <div class="code"><pre>
 # D=2.0005
 g.region -dp

二進制
raster/r.surf.fractal/r_surf_fractal_simple.png