[GRASS-SVN] r65270 - grass/trunk/lib/init
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon May 18 11:04:07 PDT 2015
Author: wenzeslaus
Date: 2015-05-18 11:04:07 -0700 (Mon, 18 May 2015)
New Revision: 65270
Modified:
grass/trunk/lib/init/grass7.html
Log:
init: simple example incluing GUI for exec param
Modified: grass/trunk/lib/init/grass7.html
===================================================================
--- grass/trunk/lib/init/grass7.html 2015-05-18 17:22:00 UTC (rev 65269)
+++ grass/trunk/lib/init/grass7.html 2015-05-18 18:04:07 UTC (rev 65270)
@@ -253,6 +253,41 @@
<dd> Creates new GRASS location based on georeferenced GeoTIFF file
</dl>
+<h3>exec interface example</h3>
+
+<!--
+Data created with:
+r.out.gdal input=elevation output=elevation.tiff
+r.out.gdal input=basin_50K output=basins.tiff
+Region issues ignored.
+-->
+
+Create a new Location based on a projection of a file:
+
+<div class="code"><pre>
+grass71 -c elevation.tiff -e .../grassdata/test1/
+</pre></div>
+
+Link external raster data to PERMANENT Mapset:
+
+<div class="code"><pre>
+grass71 .../grassdata/test1/PERMANENT/ exec r.external input=basins.tiff output=basins
+grass71 .../grassdata/test1/PERMANENT/ exec r.external input=elevation.tiff output=elevation
+</pre></div>
+
+Get statistics for one raster map:
+
+<div class="code"><pre>
+grass71 .../grassdata/test1/PERMANENT/ exec r.univar map=elevation
+</pre></div>
+
+Compare the rasters visually:
+
+<div class="code"><pre>
+grass71 .../grassdata/test1/PERMANENT/ exec g.gui.mapswipe first=elevation second=basins
+</pre></div>
+
+
<h3>Other examples</h3>
There are a variety of ways in which the <i>location environment
More information about the grass-commit
mailing list