Browse Source

NC examples added; HTML updated

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@48105 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 13 years ago
parent
commit
6f84f9eb8c

+ 8 - 0
scripts/r.mapcalculator/r.mapcalculator.html

@@ -4,6 +4,14 @@
 Up to 5 maps can be combined using simple expressions.
 Up to 5 maps can be combined using simple expressions.
 In the expert mode, it runs <em>r.mapcalc</em> for more complex expressions.
 In the expert mode, it runs <em>r.mapcalc</em> for more complex expressions.
 
 
+Enter an <em>r.mapcalc</em> expression in the formula field using the
+format: A+C or exp(A+C)+(B-2)*7 where A, B, C are raster maps entered
+in the A field, B field, and C field. 
+<p>
+Do not enter output file in the formula field: correct: A+B; incorrect: newfile = A+B. Use no spaces or blanks. 
+<p>
+Expert mode runs <em>r.mapcalc</em> for more complex expressions.
+
 <h2>SEE ALSO</h2>
 <h2>SEE ALSO</h2>
 
 
 <em><A HREF="r.mapcalc.html">r.mapcalc</A></em>
 <em><A HREF="r.mapcalc.html">r.mapcalc</A></em>

+ 14 - 11
scripts/r3.mapcalculator/r3.mapcalculator.html

@@ -1,21 +1,24 @@
-<H2>DESCRIPTION</H2>
+<h2>DESCRIPTION</h2>
 
 
+<em>r3.mapcalculator</em> provides a GUI frontend to <em>r3.mapcalc</em>.
+Up to 5 maps can be combined using simple expressions.
+In the expert mode, it runs <em>r3.mapcalc</em> for more complex expressions.
 
 
-<EM>r3.mapcalculator</EM> Provides a GUI frontend to r3.mapcalc. Up to 5 maps can be combined using simple expressions. 
-
-Enter an r3.mapcalc expression in the formula field using the format: A+C or exp(A+C)+(B-2)*7 where A, B, C are grid3D volumes entered in the A field, B field, and C field. 
-
+Enter an <em>r3.mapcalc</em> expression in the formula field using the
+format: A+C or exp(A+C)+(B-2)*7 where A, B, C are 3D raster volumes entered
+in the A field, B field, and C field. 
+<p>
 Do not enter output file in the formula field: correct: A+B; incorrect: newfile = A+B. Use no spaces or blanks. 
 Do not enter output file in the formula field: correct: A+B; incorrect: newfile = A+B. Use no spaces or blanks. 
+<p>
+Expert mode runs <em>r3.mapcalc</em> for more complex expressions.
 
 
-Expert mode runs r.mapcalc for more complex expressions.
-<br>
+<h2>SEE ALSO</h2>
 
 
-<H2>SEE ALSO</H2>
+<em><A HREF="r3.mapcalc.html">r3.mapcalc</A></em>
 
 
-<EM><A HREF="r3.mapcalc.html">r.mapcalc</A></EM>,
 
 
-
-<H2>AUTHOR</H2>
+<h2>AUTHOR</h2>
 
 
 Michael Barton, Arizona State University. Based on r.mapcalculator by R. Brunzema (r.brunzema@web.de)
 Michael Barton, Arizona State University. Based on r.mapcalculator by R. Brunzema (r.brunzema@web.de)
+
 <p><i>Last changed: $Date$</i>
 <p><i>Last changed: $Date$</i>

+ 23 - 23
scripts/v.in.gpsbabel/v.in.gpsbabel.html

@@ -1,21 +1,21 @@
-<H2>DESCRIPTION</H2>
+<h2>DESCRIPTION</h2>
 
 
-<EM>v.in.gpsbabel</EM> allows the user to import waypoint, route, and track
+<em>v.in.gpsbabel</em> allows the user to import waypoint, route, and track
 data from a locally connected GPS receiver or a text file containing 
 data from a locally connected GPS receiver or a text file containing 
 GPS data of many common formats. Translation is done via the 
 GPS data of many common formats. Translation is done via the 
-<EM><A HREF="http://www.gpsbabel.org">gpsbabel</a></EM> program. 
+<em><a href="http://www.gpsbabel.org">GPSBabel</a></em> program. 
 
 
-<P>
+<p>
 This software is not intended as a primary means of navigation.
 This software is not intended as a primary means of navigation.
 
 
-<H2>NOTES</H2>
+<h2>NOTES</h2>
 
 
 <em>v.in.gpsbabel</em> automatically reprojects data using the 
 <em>v.in.gpsbabel</em> automatically reprojects data using the 
 projection settings of the current location.
 projection settings of the current location.
 
 
 The default input data projection is lat/lon WGS84. If your GPS outputs data
 The default input data projection is lat/lon WGS84. If your GPS outputs data
 using another projection or map datum, you may include the 
 using another projection or map datum, you may include the 
-<EM><A HREF="http://proj.maptools.org">PROJ.4</a></EM>
+<em><a href="http://trac.osgeo.org/proj/">PROJ.4</a></em>
 parameters defining your projection in the <b>proj</b> option and 
 parameters defining your projection in the <b>proj</b> option and 
 <em>v.in.gpsbabel</em> will reproject your data accordingly.
 <em>v.in.gpsbabel</em> will reproject your data accordingly.
 Great care must be taken to get these parameters correct!
 Great care must be taken to get these parameters correct!
@@ -23,13 +23,13 @@ Great care must be taken to get these parameters correct!
 The automatic transform may be skipped by using the <b>-k</b> flag in which 
 The automatic transform may be skipped by using the <b>-k</b> flag in which 
 case the data will be imported unprojected, as it appears in the <b>input</b>.
 case the data will be imported unprojected, as it appears in the <b>input</b>.
 
 
-<P>
-Route and Track data may be uploaded as a series of points by using the <B>-p</B> 
-flag, otherwise they will be imported as lines. You can run <EM>v.in.gpsbabel</EM>
-multiple times and merge the line and point vectors with the <EM>v.patch</EM>
+<p>
+Route and Track data may be uploaded as a series of points by using the <b>-p</b> 
+flag, otherwise they will be imported as lines. You can run <em>v.in.gpsbabel</em>
+multiple times and merge the line and point vectors with the <em>v.patch</em>
 command if you want, but take care when merging dissimilar attribute tables.
 command if you want, but take care when merging dissimilar attribute tables.
 
 
-<H2>EXAMPLES</H2>
+<h2>EXAMPLES</h2>
 
 
 <h3>GPS device connected via USB adapter</h3>
 <h3>GPS device connected via USB adapter</h3>
 
 
@@ -69,25 +69,25 @@ v.in.gpsbabel -r -p file=/dev/gps format=garmin output=routePoints
 </pre></div>
 </pre></div>
 
 
 
 
-<H2>SEE ALSO</H2>
-<EM><A HREF="db.execute.html">db.execute</A></EM><BR>
-<EM><A HREF="v.in.ascii.html">v.in.ascii</A></EM><BR>
-<EM><A HREF="v.in.garmin.html">v.in.garmin</A></EM><BR>
-<EM><A HREF="v.db.connect.html">v.db.connect</A></EM><BR>
-<EM><A HREF="v.patch.html">v.patch</A></EM><BR>
-<BR>
+<h2>SEE ALSO</h2>
+<em>
+<a href="db.execute.html">db.execute</a>,
+<a href="v.in.ascii.html">v.in.ascii</a>,
+<a href="v.in.garmin.html">v.in.garmin</a>,
+<a href="v.db.connect.html">v.db.connect</a>,
+<a href="v.patch.html">v.patch</a>
+</em>
 
 
-<A HREF="http://www.gpsbabel.org">gpsbabel</a> from gpsbabel.org<BR>
-cs2cs from <A HREF="http://proj.maptools.org">PROJ.4</a><BR>
+<a href="http://www.gpsbabel.org">gpsbabel</a> from gpsbabel.org<br>
+cs2cs from <A HREF="http://trac.osgeo.org/proj/">PROJ.4</a>
 
 
-<P>
-<H2>AUTHORS</H2>
+<h2>AUTHORS</h2>
 Claudio Porta and Lucio Davide Spano, students of Computer Science at
 Claudio Porta and Lucio Davide Spano, students of Computer Science at
 University of Pisa (Italy).<br>
 University of Pisa (Italy).<br>
 Commission from Faunalia Pontedera (PI)<br><br>
 Commission from Faunalia Pontedera (PI)<br><br>
 Based on <em>v.in.garmin</em> for GRASS 6.0 by Hamish Bowman<br>
 Based on <em>v.in.garmin</em> for GRASS 6.0 by Hamish Bowman<br>
 and <em>v.in.garmin.sh</em> for GRASS 5 by Andreas Lange
 and <em>v.in.garmin.sh</em> for GRASS 5 by Andreas Lange
-<BR>
+<br>
 
 
 <!--
 <!--
 When we tested the script with a Garmin GPS we noticed that importing waypoints 
 When we tested the script with a Garmin GPS we noticed that importing waypoints 

+ 25 - 25
scripts/v.rast.stats/v.rast.stats.html

@@ -1,6 +1,6 @@
-<H2>DESCRIPTION</H2>
+<h2>DESCRIPTION</h2>
 
 
-<EM><b>v.rast.stats</b></EM> - Calculates basic univariate statistics from
+<em>v.rast.stats</em> calculates basic univariate statistics from
 a raster map only for the parts covered by the specified vector map.
 a raster map only for the parts covered by the specified vector map.
 The vector map will be rasterized according to the raster map resolution.
 The vector map will be rasterized according to the raster map resolution.
 Then univariate statistics are calculated per vector category (cat) from
 Then univariate statistics are calculated per vector category (cat) from
@@ -9,14 +9,14 @@ New columns are generated in the attribute table if not already present.
 <p>
 <p>
 Nine columns are generated (n, min, max, range, mean, stddev, variance, 
 Nine columns are generated (n, min, max, range, mean, stddev, variance, 
 coeff_var, sum) according to the output of <em>r.univar</em>.
 coeff_var, sum) according to the output of <em>r.univar</em>.
-If the <B>-e</B> extended statistics flag is given the 1st quartile,
+If the <b>-e</b> extended statistics flag is given the 1st quartile,
 median, 3rd quartile, and given percentile are also calculated.
 median, 3rd quartile, and given percentile are also calculated.
 
 
 
 
-<H2>NOTES</H2>
+<h2>NOTES</h2>
 
 
 The module may take a long time to run if the raster region contains a large
 The module may take a long time to run if the raster region contains a large
-number of cells. In this case the <B>--verbose</B> flag may be used to track
+number of cells. In this case the <b>--verbose</b> flag may be used to track
 progress.
 progress.
 <p>
 <p>
 The script stops if a (prefixed) upload column is already present in the
 The script stops if a (prefixed) upload column is already present in the
@@ -24,7 +24,7 @@ vector map attribute table, unless otherwise instructed with the <B>-c</B>
 continue flag. The column prefix will be separated from the statistic name
 continue flag. The column prefix will be separated from the statistic name
 with an underscore. For example with a prefix of "<tt>elev</tt>" the sum
 with an underscore. For example with a prefix of "<tt>elev</tt>" the sum
 column will be named <tt>elev_sum</tt>.
 column will be named <tt>elev_sum</tt>.
-<P>
+<p>
 If a DBF database is being used, note that column names are restricted by the
 If a DBF database is being used, note that column names are restricted by the
 DBF specification to 10 characters. Therefore it is advised to be economical
 DBF specification to 10 characters. Therefore it is advised to be economical
 in the use of the column prefix when using DBF as any additional characters
 in the use of the column prefix when using DBF as any additional characters
@@ -32,7 +32,7 @@ will be chopped off.
 <p>
 <p>
 If a MASK is present, it will be restored after the script finished.
 If a MASK is present, it will be restored after the script finished.
 The script changes temporarily to the resolution of the given raster map.
 The script changes temporarily to the resolution of the given raster map.
-<P>
+<p>
 <!-- r.univar limitation -->
 <!-- r.univar limitation -->
 Large amounts of system memory can be used when the <B>-e</B> extended
 Large amounts of system memory can be used when the <B>-e</B> extended
 statistics flag is used with a very large region setting. If the region
 statistics flag is used with a very large region setting. If the region
@@ -40,36 +40,36 @@ is too large the module should display memory allocation errors.
 Basic statistics can be calculated using any size input region.
 Basic statistics can be calculated using any size input region.
 
 
 
 
-<H2>EXAMPLES</H2>
+<h2>EXAMPLES</h2>
 
 
-Example to upload DEM statistics to vector field patches:
+Example to upload DEM statistics to ZIP codes vector map
+(North Carolina sample dataset):
 
 
 <div class="code"><pre>
 <div class="code"><pre>
-# work on copy of original map:
-g.copy vect=fields,myfields
-# if needed, zoom to raster map:
-g.region rast=elevation.dem -p
+g.copy vect=zipcodes_wake,myzipcodes_wake
+# set computational region to DEM:
+g.region rast=elevation -p
 # calculate DEM statistics, upload to vector map table:
 # calculate DEM statistics, upload to vector map table:
-v.rast.stats myfields raster=elevation.dem colprefix=dem
+v.rast.stats myzipcodes_wake raster=elevation colprefix=elev
 # verify results:
 # verify results:
-v.info -c myfields
-v.db.select myfields
-v.univar myfields column=dem_range type=centroid
+v.info -c myzipcodes_wake
+v.db.select myzipcodes_wake
+v.univar myzipcodes_wake column=elev_range type=centroid
 </pre></div>
 </pre></div>
 
 
 
 
-<H2>SEE ALSO</H2>
+<h2>SEE ALSO</h2>
 
 
-<EM>
-<A HREF="r.univar.html">r.univar</A>, 
-<A HREF="v.univar.html">v.univar</A>,
-<a HREF="v.what.rast.html">v.what.rast</a>,
+<em>
+<a href="r.univar.html">r.univar</a>, 
+<a href="v.univar.html">v.univar</a>,
+<a href="v.what.rast.html">v.what.rast</a>,
 <a href="v.what.vect.html">v.what.vect</a>
 <a href="v.what.vect.html">v.what.vect</a>
-</EM>
+</em>
 
 
-<H2>AUTHOR</H2>
+<h2>AUTHOR</h2>
 
 
-Markus Neteler, CEA (<a href="http://www.eden-fp6project.net/">EDEN Project</a>)
+Markus Neteler, CEA (for the <a href="http://www.eden-fp6project.net/">EDEN EU/FP6 Project</a>)
 
 
 <p>
 <p>
 <i>Last changed: $Date$</i>
 <i>Last changed: $Date$</i>

+ 11 - 10
scripts/v.report/v.report.html

@@ -1,29 +1,30 @@
-<H2>DESCRIPTION</H2>
+<h2>DESCRIPTION</H2>
 
 
 <em>v.report</em> generates a table showing the area present in 
 <em>v.report</em> generates a table showing the area present in 
 each of the categories of a user-selected data layer.
 each of the categories of a user-selected data layer.
-<P>
+<p>
 Area is given in hectares, square meters, and square kilometers.
 Area is given in hectares, square meters, and square kilometers.
 If the units option is used, area is given in acres, square feet,
 If the units option is used, area is given in acres, square feet,
 and square miles.
 and square miles.
-<P>
+<p>
 Feet and acre units are always reported in their common versions
 Feet and acre units are always reported in their common versions
 (i.e. the International Foot, exactly 5280 feet in a mile), even
 (i.e. the International Foot, exactly 5280 feet in a mile), even
 when the location's standard map unit is the US Survey foot.
 when the location's standard map unit is the US Survey foot.
-<P>
-<EM>v.report</EM> works on the full map data; therefore, the current
+<p>
+<em>v.report</em> works on the full map data; therefore, the current
 region is ignored. If you wish to spatially limit the statistics,
 region is ignored. If you wish to spatially limit the statistics,
-a map subset must be created with <EM>v.in.region</EM> and 
-<EM>v.overlay</EM>, and then run <EM>v.report</EM> on the new map.
+a map subset must be created with <em>v.in.region</em> and 
+<em>v.overlay</em>, and then run <em>v.report</em> on the new map.
 
 
 
 
 <h2>EXAMPLE</h2>
 <h2>EXAMPLE</h2>
 
 
-Spearfish example:
+North Carolina sample dataset:
 <div class="code"><pre>
 <div class="code"><pre>
-v.report fields option=area units=hectares
+v.report zipcodes_wake option=area units=hectares
 </pre></div>
 </pre></div>
 
 
+In the output, there is an extra column added containing the results.
 
 
 <h2>SEE ALSO</h2>
 <h2>SEE ALSO</h2>
 
 
@@ -34,7 +35,7 @@ v.report fields option=area units=hectares
 </em>
 </em>
 
 
 
 
-<H2>AUTHOR</H2>
+<h2>AUTHOR</h2>
 
 
 Markus Neteler, GDF Hannover
 Markus Neteler, GDF Hannover