Explorar el Código

NC examples added; update HTML

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@48091 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler hace 13 años
padre
commit
8775e1fa0c

+ 5 - 5
scripts/d.correlate/d.correlate.html

@@ -27,11 +27,11 @@ d.correlate map=lsat7_2002_30,lsat7_2002_40
 <h2>SEE ALSO</h2>
 
 <em>
-<a HREF="d.text.html">d.text</a>,
-<a HREF="d.graph.html">d.graph</a>,
-<a HREF="r.coin.html">r.coin</a>,
-<a HREF="r.regression.line.html">r.regression.line</a>,
-<a HREF="r.stats.html">r.stats</a>
+<a href="d.text.html">d.text</a>,
+<a href="d.graph.html">d.graph</a>,
+<a href="r.coin.html">r.coin</a>,
+<a href="r.regression.line.html">r.regression.line</a>,
+<a href="r.stats.html">r.stats</a>
 </em>
 
 <h2>AUTHOR</h2>

+ 1 - 1
scripts/d.out.gpsdrive/d.out.gpsdrive.html

@@ -63,7 +63,7 @@ aspect ratio) and use d.zoom to select the full frame. For example:
 <div class="code"><pre>
 export GRASS_WIDTH=640
 export GRASS_HEIGHT=512
-d.mon x0
+d.mon wx0
 </pre></div>
 
 <BR>

+ 25 - 17
scripts/d.polar/d.polar.html

@@ -1,6 +1,6 @@
-<H2>DESCRIPTION</H2>
+<h2>DESCRIPTION</h2>
 
-<EM>d.polar</EM> calculates and displays a polar diagram of an
+<em>d.polar</em> calculates and displays a polar diagram of an
 angle raster map such as aspect, wind direction, or flow.
 The input angle map orientation must be counter-clockwise (CCW)
 from east, and the angle map units must be degrees. This refers
@@ -20,50 +20,58 @@ the diagram. Strong spikes may indicate an over-representation of
 the related angle(s) which happens in particular if integer maps
 are used.
 
-<H2>NOTES</H2>
+<h2>NOTES</h2>
 
 If the <b>eps</b> parameter is used, the diagram is generated
-as EPS file. If the <b>-x</b> flag is used <EM>xgraph</EM> is lauched.
+as EPS file. If the <b>-x</b> flag is used <em>xgraph</em> is lauched.
 Otherwise <em>d.polar</em> will use <em>d.graph</em> to draw the plot
 in the current display frame.
 <P>
-If <EM>d.polar</EM> is used on an aspect map generated by
-<EM>r.slope.aspect</EM>, the <b>undef</b> parameter should be
+If <em>d.polar</em> is used on an aspect map generated by
+<em>r.slope.aspect</em>, the <b>undef</b> parameter should be
 set to 0 to distinguish NO DATA (NULL) areas from areas where
 aspect is undefined (i.e. flat areas).
-<P>
+<p>
 
 <center>
 <img src="d_polar_aspect.png" alt="Polar diagram of aspect map">
-<BR>
+<br>
 <i>Polar diagram of aspect map</i>
 </center>
 
 <h2>EXAMPLE</h2>
 
 In this example, the polar diagram of the 'aspect' angle map in the
-Spearfish location is generated:
+North Carolina sample dataset location is generated:
 
 <div class="code"><pre>
+g.region rast=aspect -p
 d.polar aspect
 </pre></div>
 
-
 <H2>SEE ALSO</H2>
 
-<EM><A HREF="d.graph.html">d.graph</A></EM>,
-<EM><A HREF="d.histogram.html">d.histogram</A></EM>,
-<EM><A HREF="d.rast.arrow.html">d.rast.arrow</A></EM>,
-<EM><A HREF="r.slope.aspect.html">r.slope.aspect</A></EM>
+<em>
+<a href="d.graph.html">d.graph</a>,
+<a href="d.histogram.html">d.histogram</a>,
+<a href="d.rast.arrow.html">d.rast.arrow</a>,
+<a href="r.slope.aspect.html">r.slope.aspect</a>
+</em>
 
 
-<H2>XGRAPH REQUIREMENT</H2>
+<h2>XGRAPH REQUIREMENT</h2>
 
-<A HREF="http://www.xgraph.org">Xgraph</a> must be installed for the
+<a href="http://www.xgraph.org">Xgraph</a> must be installed for the
 <b>-x</b> flag to function.
 
+<h2>REFERENCE</h2>
+
+J. Hofierka, H. Mitasova, and M. Neteler (2009): Terrain parameterization in GRASS.
+In T. Hengl and H.I. Reuter, editors, Geomorphometry: concepts, software, applications. Elsevier
+(<a href="http://dx.doi.org/10.1016/S0166-2481(08)00017-2">DOI</a>)
+
 
-<H2>AUTHORS</H2>
+<h2>AUTHORS</h2>
 
 Markus Neteler, ITC-irst, Italy<BR>
 Bruno Caprile, ITC-irst, Italy<BR>

+ 32 - 21
scripts/d.rast.leg/d.rast.leg.html

@@ -1,41 +1,52 @@
-<H2>DESCRIPTION</H2>
+<h2>DESCRIPTION</h2>
 
-<EM>d.rast.leg</EM>
-is a GRASS script which clears the entire screen, divides it 
-into a main (left) and a minor (right) frames, and then displays a raster 
+<em>d.rast.leg</em> shows a raster map along with its legend.
+It first clears the entire screen, then divides it 
+into a main (left) and a minor (right) frames, and displays a raster 
 map in the main frame and the map legend in the minor frame. The main
-frame remains active when the program finishs.
+frame remains active when the program finishes.
 
+<h2>NOTES</h2>
 
-<H2>NOTES</H2>
-
-The legend may be flipped with the <B>-f</B> flag.
-<P>
-If the <B>num_of_lines</B> parameter is not given then the legend frame will 
+The legend may be flipped with the <b>-f</b> flag.
+<p>
+If the <b>num_of_lines</b> parameter is not given then the legend frame will 
 display as many lines as number of categories in the map, otherwise, it 
-will display the first <B>num_of_lines</B> minus 1 categories with the
+will display the first <b>num_of_lines</b> minus 1 categories with the
 rest being truncated.
-<P>
-The user may adjust the <B>num_of_lines</B> parameter or
+<p>
+The user may adjust the <b>num_of_lines</b> parameter or
 the size of graphics window to get an appropriate result.
 
-<P>
+<p>
 The user may specify a second raster map with the <b>rast</b> parameter from
 which the legend is generated. This is useful to visualize (time) series of
 raster maps with a common static legend instead of the default dynamic legend.
-<P>
+<p>
 To remove all frames when clearing the display, use
 "<em><tt>d.erase -f</tt></em>".
 
-<H2>SEE ALSO</H2>
+<h2>EXAMPLE</h2>
+
+In this example, the polar diagram of the 'aspect' angle map in the
+North Carolina sample dataset location is generated:
+
+<div class="code"><pre>
+g.region rast=landclass96 -p
+d.rast.leg landclass96
+</pre></div>
+
+<h2>SEE ALSO</h2>
 
-<EM><A HREF="d.legend.html">d.legend</A></EM><BR>
-<EM><A HREF="d.erase.html">d.erase</A></EM><BR>
-<EM><A HREF="d.rast.html">d.rast</A></EM>
+<em>
+<a href="d.legend.html">d.legend</a>,
+<a href="d.erase.html">d.erase</a>,
+<a href="d.rast.html">d.rast</a>
+</em>
 
-<H2>AUTHORS</H2>
+<h2>AUTHORS</h2>
 
-Jianping Xu, Scott Madry, Rutgers University<BR>
+Jianping Xu, Scott Madry, Rutgers University<br>
 Markus Neteler
 
 <p><i>Last changed: $Date$</i>

+ 21 - 15
scripts/d.shadedmap/d.shadedmap.html

@@ -1,29 +1,35 @@
-<H2>DESCRIPTION</H2>
+<h2>DESCRIPTION</h2>
 
-<EM>d.shadedmap</EM> will drape a color raster map over a shaded relief map.
+<em>d.shadedmap</em> will drape a color raster map over a shaded relief map.
 
+<h2>NOTES</h2>
 
-<H2>NOTES</H2>
-
-Refer to the <em>d.his</em> help page for more details; <EM>d.shadedmap</EM>
+refer to the <em>d.his</em> help page for more details; <em>d.shadedmap</em>
 is simply a frontend to that module.
-<P>
-<EM>(GRASS Shell Script)</EM>
 
+<h2>EXAMPLE</h2>
+
+In this example, the aspect map in the North Carolina sample
+dataset location is used to hillshade the elevation map:
+
+<div class="code"><pre>
+g.region rast=aspect -p
+d.shadedmap reliefmap=aspect drapemap=elevation
+</pre></div>
 
-<H2>SEE ALSO</H2>
+<h2>SEE ALSO</h2>
 
 <em>
-<A HREF="d.his.html">d.his</A>,
-<A HREF="g.pnmcomp.html">g.pnmcomp</A>,
-<A HREF="nviz.html">NVIZ</A>,
-<A HREF="r.slope.aspect.html">r.slope.aspect</A>,
-<A HREF="r.shaded.relief.html">r.shaded.relief</A>
+<a href="d.his.html">d.his</a>,
+<a href="g.pnmcomp.html">g.pnmcomp</a>,
+<a href="nviz.html">NVIZ</a>,
+<a href="r.slope.aspect.html">r.slope.aspect</a>,
+<a href="r.shaded.relief.html">r.shaded.relief</a>
 </em>
 
-<H2>AUTHORS</H2>
+<h2>AUTHORS</h2>
 
 Unknown; updated to GRASS 5.7 by Michael Barton
 
-<P>
+<p>
 <i>Last changed: $Date$</i>

+ 41 - 31
scripts/d.vect.thematic/d.vect.thematic.html

@@ -1,39 +1,41 @@
 <h2>DESCRIPTION</h2>
 
-<p><em><b>d.vect.thematic</b></em>  - Creates thematic  maps from vectors of
-  all types and numeric attributes (stored in the data table connected to a vector
-  map). Thematic maps can be displayed by either a graduated color scheme (for
-  all vector types), as graduated icon sizes (for point and centroid types), or
-graduated line widths (for lines and boundaries with associated
-attributes).
-  The user selects the vector map to be mapped and attribute column from which
-  to derive mapping intervals, and (optionally) the layer for attribute data. </p>
+<em>d.vect.thematic</em>  - Creates thematic  maps from vectors of
+all types and numeric attributes (stored in the data table connected to a vector
+map). Thematic maps can be displayed by either a graduated color scheme (for
+all vector types), as graduated icon sizes (for point and centroid types), or
+graduated line widths (for lines and boundaries with associated attributes).
+The user selects the vector map to be mapped and attribute column from which
+to derive mapping intervals, and (optionally) the layer for attribute data.
 
 <p>In thematic maps, the color or point size changes for each range of attribute
-  values. Value ranges for thematic mapping can be
-  set at regular intervals, standard deviation units on either
-  side of the mean, quartiles, or delimited by user-defined breakpoints. User-defined
-  breakpoints also can  be entered, or piped into d.vect.thematic from standard input or
-  other external source. </p>
+values. Value ranges for thematic mapping can be
+set at regular intervals, standard deviation units on either
+side of the mean, quartiles, or delimited by user-defined breakpoints.
+User-defined breakpoints also can  be entered, or piped into d.vect.thematic
+from standard input or other external source.
 
 <p>There are options to define the color scheme (graduated
-    colors) and range of point sizes (graduated points) for thematic maps. A
-  simple text legend is printed. Optionally, a graphic legend can be drawn in
-  the selected display monitor. Thematic colors can be uploaded to a GRASSRGB
-  column for later display,  and thematic map display commands can
-  be saved to a group file (*.dm) that can be opened, edited, and displayed in
-the GIS Manager.</p>
+colors) and range of point sizes (graduated points) for thematic maps. A
+simple text legend is printed. Optionally, a graphic legend can be drawn in
+the selected display monitor. Thematic colors can be uploaded to a GRASSRGB
+column for later display,  and thematic map display commands can be saved to a
+group file (*.dm) that can be opened, edited, and displayed in
+the GIS Manager.
 
-<p>When the psmap option is set to 'name', two psmap instruction files are created (in the current directory if no path is given), one for the map ('name.psmap') and one for the legend ('name_legend.psmap'). The map file also contains 'label' commands which allow to create a legend directly in the map by adding a 'vlegend' command. See the <em><a href="ps.map">ps.map</a></em> man page for more details.</p>
+<p>When the psmap option is set to 'name', two psmap instruction files are
+created (in the current directory if no path is given), one for the map
+('name.psmap') and one for the legend ('name_legend.psmap'). The map file also
+contains 'label' commands which allow to create a legend directly in the map by
+adding a 'vlegend' command. See the <em><a href="ps.map">ps.map</a></em> man
+page for more details.
 
-<p><em>(GRASS Shell Script)</em></p>
 
-<h2>ATTENTION</h2>
+<h2>NOTES</h2>
 
-
-The algorithm currently uses the script <em><a href="v.univar.sh.html">v.univar.sh</a></em>
-to calculate basic descriptive statistics needed for thematic mapping (minimum,
-maximum, mean, standard deviation, and quartiles).
+The algorithm currently uses the <em>v.univar</em> to calculate basic
+descriptive statistics needed for thematic mapping (minimum, maximum, mean,
+standard deviation, and quartiles).
 
 <h2>EXAMPLES</h2>
 
@@ -68,21 +70,29 @@ v.sample in=random col=el10 rast=elevation.dem out=elev_sample
 v.db.select elev_sample
 
 # thematic map:
-d.mon x0
+d.mon wx0
 d.vect.thematic -l elev_sample column=diff type=point
 </pre></div>
 
+<p>
+North Carolina data set example:
+<div class="code"><pre>
+g.region vect=nc_state
+d.vect.thematic -l precip_30ynormals column=annual type=point
+</pre></div>
+
 
 <h2>SEE ALSO</h2>
 
 <em>
 <a href="d.vect.html">d.vect</a>, 
 <a href="d.vect.chart.html">d.vect.chart</a>,
-<a href="v.univar.sh.html">v.univar.sh</a></em>
+<a href="v.univar.html">v.univar</a>
+</em>
 
 <h2>AUTHORS</h2>
 
- Michael Barton, Arizona State University, Daniel Cavelo Aros,
- Martin Landa, and Jachym Cepicky.
+Michael Barton, Arizona State University, Daniel Cavelo Aros,
+Martin Landa, and Jachym Cepicky.
 
-<p><i>Last changed: $Date$</i></p>
+<p><i>Last changed: $Date: 2008-08-15 08:16:42 +0200 (Fri, 15 Aug 2008)$</i>

+ 5 - 4
scripts/db.out.ogr/db.out.ogr.html

@@ -9,22 +9,23 @@ PostgreSQL, SQLite, MySQL, ODBC, etc.).
 Export of GRASS table to a DBF table (default format):
 <p>
 <div class="code"><pre>
-db.out.ogr points_tab dsn=/tmp/points_tab.dbf
+db.out.ogr precip_30ynormals dsn=/tmp/precip_30ynormals.dbf
 </pre></div>
 
 <p>
 Export of GRASS table to a CSV table file:<br>
 <p>
 <div class="code"><pre>
-db.out.ogr points_tab dsn=points.csv format=CSV
+db.out.ogr precip_30ynormals dsn=precip_30ynormals.csv format=CSV
 </pre></div>
 
 <p>
 Export of GRASS table into a PostgreSQL table:
 <p>
 <div class="code"><pre>
-db.out.ogr points_tab dsn="PG:host=localhost dbname=postgres user=neteler" format=PostgreSQL
-echo "SELECT * FROM points_tab" | psql postgres
+db.out.ogr precip_30ynormals dsn="PG:host=localhost dbname=meteo user=neteler" \
+           format=PostgreSQL
+echo "SELECT * FROM precip_30ynormals" | psql meteo
 </pre></div>
 
 

+ 1 - 1
scripts/g.extension/g.extension.html

@@ -13,7 +13,7 @@ the requested extension which may include updates.
 Download and install i.landsat.toar into current GRASS installation:
 
 <div class="code"><pre>
-  g.extension extension=i.landsat.toar operation=add
+g.extension extension=i.points.auto operation=add
 </pre></div>
 
 <h2>AUTHOR</h2>

+ 4 - 3
scripts/i.in.spotvgt/i.in.spotvgt.html

@@ -29,19 +29,20 @@ i.in.spotvgt 0001_NDV.HDF
 
 # export:
 g.region w=180W e=180E n=75:00:16.071429N s=56:00:16.069919S res=0:00:32.142857 -p
-r.out.tiff -t 0001_NDV out=spotndvi
+r.out.gdal 0001_NDV format=GTiff out=spotndvi.tif
 </pre></div>
 
 <h2>SEE ALSO</h2>
 
 <em>
-<a HREF="r.in.gdal.html">r.in.gdal</a>
+<a HREF="r.in.gdal.html">r.in.gdal</a>,
+<a HREF="r.out.gdal.html">r.out.gdal</a>
 </em>
 
 <H2>REFERENCES</H2>
 
 <a href="http://free.vgt.vito.be/">SPOT Vegetation (1km, global) NDVI data set server</a><br>
-<a href="http://www.vgt.vito.be/faq/faq.html">SPOT Vegetation FAQ</a><br>
+<a href="http://www.vgt.vito.be/faqnew/index.html">SPOT Vegetation FAQ</a><br>
 <a href="http://nieuw.vgt.vito.be/faq/FAQS/faq22.html">SPOT Vegetation Status Map (SM)</a> - Quality map
 
 <h2>AUTHOR</h2>

+ 3 - 3
scripts/i.in.spotvgt/i.in.spotvgt.py

@@ -11,7 +11,7 @@
 #               SPOT Vegetation (1km, global) data:
 #               http://free.vgt.vito.be/
 #
-# COPYRIGHT:    (c) 2004-2008 GRASS Development Team
+# COPYRIGHT:    (c) 2004-2011 GRASS Development Team
 #
 #               This program is free software under the GNU General Public
 #               License (>=v2). Read the file COPYING that comes with GRASS
@@ -106,8 +106,8 @@ def cleanup():
 def main():
     global vrtfile, tmpfile
 
-    infile  = options['file']
-    rast = options['rast']
+    infile  = options['input']
+    rast = options['output']
     also = flags['a']
 
     #### check for gdalinfo (just to check if installation is complete)

+ 24 - 21
scripts/i.landsat.rgb/i.landsat.rgb.html

@@ -1,58 +1,61 @@
-<H2>DESCRIPTION</H2>
+<h2>DESCRIPTION</h2>
 
-<EM>i.landsat.rgb</EM> auto-balances and enhances the color channels of a
+<em>i.landsat.rgb</em> auto-balances and enhances the color channels of a
 LANDSAT RGB image to provide a more natural color mixture. Only the color
 table of each image band is modified, the base data remains untouched.
-<P>
+<p>
 The module works by calculating a histogram for each color channel and 
 removing an adjustable amount of outliers from either end before recalibrating
 the color scale with <em>r.colors</em>.
-<P>
+<p>
 It will work with any 8-bit RGB imagery set and the script is easily modified
 to work with other datasets of greater band-depth.
 
-<H2>NOTES</H2>
+<h2>NOTES</h2>
 
-Depending on the image, it may or may not be advantageous to use the <B>-p</B>
+Depending on the image, it may or may not be advantageous to use the <b>-p</b>
 flag to preserve the relative color scaling. You will have to experiment
 with the different options to find a setting that works best for your
 particular imagery.
-<P>
+<p>
 The <b>strength</b> option should generally be set in the 90-99 range. The
 lower the number, the more saturated the image becomes. It represents the
 percentage cut-off for the top end of the color histogram curve. The lower
 end is fixed at 2% of the area under the curve.
-<P>
+<p>
 For quicker execution of this module on large images you can achieve largely
 similar results by switching to a coarser resolution before the running of
-the module (using <EM>g.region</EM>) and then back to the original resolution
+the module (using <em>g.region</em>) and then back to the original resolution
 afterwards.
 
 
 <H2>EXAMPLE</H2>
 
+North Carolina sample dataset:
 <div class="code"><pre>
-i.landsat.rgb red=tm.3 green=tm.2 blue=tm.1
+g.region rast=lsat7_2002_10
+i.landsat.rgb blue=lsat7_2002_10 green=lsat7_2002_20 red=lsat7_2002_30
 </pre></div>
 
-<H2>TODO</H2>
+<h2>TODO</h2>
 
 The <b>strength</b> option requires further refinement.
 
+<h2>SEE ALSO</h2>
 
-<H2>SEE ALSO</H2>
+<em>
+<a href="d.rgb.html">d.rgb</a>,
+<a href="g.region.html">g.region</a>,
+<a href="i.oif.html">i.oif</a>,
+<a href="r.colors.html">r.colors</a>,
+<a href="r.composite.html">r.composite</a>,
+<a href="r.univar.html">r.univar</a>
+</em>
 
-<EM><A HREF="d.rgb.html">d.rgb</A></EM>,
-<EM><A HREF="g.region.html">g.region</A></EM>,
-<EM><A HREF="i.oif.html">i.oif</A></EM>,
-<EM><A HREF="r.colors.html">r.colors</A></EM>,
-<EM><A HREF="r.composite.html">r.composite</A></EM>,
-<EM><A HREF="r.univar.html">r.univar</A></EM>,
 
+<h2>AUTHORS</h2>
 
-<H2>AUTHORS</H2>
-
-Markus Neteler<BR>
+Markus Neteler<br>
 M. Hamish Bowman, Dept. Marine Science, Otago University, New Zealand
 
 <p><i>Last changed: $Date$</i>