[GRASS-SVN] r63115 - grass/branches/releasebranch_7_0/raster/r.info

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Nov 26 08:33:21 PST 2014


Author: neteler
Date: 2014-11-26 08:33:21 -0800 (Wed, 26 Nov 2014)
New Revision: 63115

Modified:
   grass/branches/releasebranch_7_0/raster/r.info/r.info.html
Log:
r.info manual: example updated

Modified: grass/branches/releasebranch_7_0/raster/r.info/r.info.html
===================================================================
--- grass/branches/releasebranch_7_0/raster/r.info/r.info.html	2014-11-26 16:33:05 UTC (rev 63114)
+++ grass/branches/releasebranch_7_0/raster/r.info/r.info.html	2014-11-26 16:33:21 UTC (rev 63115)
@@ -15,10 +15,10 @@
 The user can save the tabular output to a file 
 by using the UNIX redirection mechanism (>); for example, the user 
 might save a report on the <em>soils</em> map layer in a file called 
-<em>soil.rpt</em> by typing: 
+<em>soil.txt</em> by typing: 
 
 <div class="code"><pre>
-r.info map=soils > soil.rpt
+r.info map=soils > soil.txt
 </pre></div> 
 
 <h2>NOTES</h2>
@@ -28,45 +28,45 @@
 
 <p>
 Some standards (ISO-C90) and compilers do not support the 'long long' type 
-as a 64-bit type. In the case that GRASS was built with such a compiler, 
+as a 64-bit type. In the case that GRASS GIS was built with such a compiler, 
 an accuracy message may be displayed in the output of <em>r.info</em> 
-after Total Cells:
+after Total Cells.
 
-<p>
 <h2>EXAMPLES</h2>
 
 Below is a full report produced by <em>r.info</em> for the raster map 
-<i>slope</i> in the Spearfish sample data base: 
+<i>slope</i> in the North Carolina sample data base: 
 
 <div class="code"><pre>
+r.info slope
  +----------------------------------------------------------------------------+
- | Layer:    slope                          Date: Mon Nov  5 10:55:57 2001    |
- | Mapset:   PERMANENT                      Login of Creator: neteler         |
- | Location: spearfish60                                                      |
- | DataBase: /home/neteler/grassdaten                                         |
- | Title:    slope in degrees ( slope )                                       |
- | Timestamp: 20 Mar 1984 10:30 -0600 / 21 Mar 2020 10:30 -0600               |
+ | Map:      slope                          Date: Tue Nov  7 01:11:23 2006    |
+ | Mapset:   PERMANENT                      Login of Creator: helena          |
+ | Location: nc_spm_08_grass7                                                 |
+ | DataBase: /grassdata                                                       |
+ | Title:    South-West Wake county: slope in degrees ( slope_ned10m )        |
+ | Timestamp: none                                                            |
  |----------------------------------------------------------------------------|
  |                                                                            |
  |   Type of Map:  raster               Number of Categories: 255             |
  |   Data Type:    FCELL                                                      |
- |   Rows:         477                                                        |
- |   Columns:      634                                                        |
- |   Total Cells:  302418                                                     |
- |        Projection: UTM (zone 13)                                           |
- |            N:    4928010    S:    4913700   Res:    30                     |
- |            E:     609000    W:     589980   Res:    30                     |
- |   Range of data:    min =  0.000000 max = 52.520164                        |
+ |   Rows:         1350                                                       |
+ |   Columns:      1500                                                       |
+ |   Total Cells:  2025000                                                    |
+ |        Projection: Lambert Conformal Conic                                 |
+ |            N:     228500    S:     215000   Res:    10                     |
+ |            E:     645000    W:     630000   Res:    10                     |
+ |   Range of data:    min = 0  max = 38.68939                                |
  |                                                                            |
  |   Data Source:                                                             |
- |    raster elevation file elevation.dem                                     |
+ |    raster elevation file elev_ned10m                                       |
  |                                                                            |
  |                                                                            |
  |   Data Description:                                                        |
  |    generated by r.slope.aspect                                             |
  |                                                                            |
  |   Comments:                                                                |
- |    slope map elev = elevation.dem                                          |
+ |    slope map elev = elev_ned10m                                            |
  |    zfactor = 1.00 format = degrees                                         |
  |    min_slp_allowed = 0.000000                                              |
  |                                                                            |
@@ -76,41 +76,65 @@
 Alternatively, the output from <em>r.info</em> may be confined to a more terse
 subset of the available information by passing various flags to the module:
 
-<div class="code"><pre> 
-GRASS> r.info -g slope
-north=4928030
-south=4913690
-east=609000
-west=589980
-nsres=30
-ewres=30
-rows=477
-cols=634
-cells=302418
+<p>
+Output in shell script style, useful for eval (<tt>eval `r.info -g slope`</tt>):
+
+<div class="code"><pre>
+r.info -g slope
+north=228500
+south=215000
+east=645000
+west=630000
+nsres=10
+ewres=10
+rows=1350
+cols=1500
+cells=2025000
 datatype=FCELL
+ncats=255
+</pre></div>
 
-GRASS> r.info -r slope
-min=0.000000
-max=52.520164
+<p>
+Output the map data range:
+<div class="code"><pre>
+r.info -r slope
+min=0
+max=38.68939
+</pre></div>
 
-GRASS> r.info -e slope
-title=slope in degrees (slope)
+<p>
+Output the extended map data metadata in shell style:
+<div class="code"><pre>
+r.info -e slope
+map=slope
+mapset=PERMANENT
+location=nc_spm_08_grass7
+database=/grassdata
+date="Tue Nov  7 01:11:23 2006"
+creator="helena"
+title="South-West Wake county: slope in degrees (slope_ned10m)"
+timestamp="none"
 units="none"
-vertical_datum="none"
-timestamp="none"
+vdatum="none"
+source1="raster elevation file elev_ned10m"
+source2=""
+description="generated by r.slope.aspect"
+comments="slope map elev = elev_ned10mzfactor = 1.00 format = degreesmin_slp_allowed = 0.000000"
 </pre></div>
 
 
 <h2>SEE ALSO</h2>
 
-<em><a href="g.mapsets.html">g.mapsets</a>,</em>
-<em><a href="r.coin.html">r.coin</a>,</em>
-<em><a href="r.describe.html">r.describe</a>,</em>
-<em><a href="r.report.html">r.report</a>,</em>
-<em><a href="r.stats.html">r.stats</a>,</em>
-<em><a href="r.support.html">r.support</a>,</em>
-<em><a href="r.univar.html">r.univar</a>,</em>
-<em><a href="r.what.html">r.what</a></em>
+<em>
+<a href="g.mapsets.html">g.mapsets</a>,
+<a href="r.coin.html">r.coin</a>,
+<a href="r.describe.html">r.describe</a>,
+<a href="r.report.html">r.report</a>,
+<a href="r.stats.html">r.stats</a>,
+<a href="r.support.html">r.support</a>,
+<a href="r.univar.html">r.univar</a>,
+<a href="r.what.html">r.what</a>
+</em>
 
 
 <h2>AUTHOR</h2>



More information about the grass-commit mailing list