3
<em>r.report</em> allows the user to set up a series of report parameters to
4
be applied to a raster map layer, and creates a report. If invoked with
5
command line arguments, the report will print out to the screen only.
6
However, output may be redirected to a file or another program using the
7
UNIX redirection mechanism. If invoked without command line arguments, the
8
user is given the option of printing out each report and/or saving output to
12
The report itself consists of two parts, a header section and the main body
16
The header section of the report identifies the raster map layer(s) (by map
17
layer name and TITLE), location, mapset, report date, and the region of
18
interest. The area of interest is described in two parts: the user's current
19
geographic region is presented, and the mask is presented (if any is used).
22
The main body of the report consists of from one to three tables which
23
present the statistics for each category and the totals for each unit
27
Note that, unlike <em><a href="r.stats.html">r.stats</a></em>,
28
<em>r.report</em> allows the user to select the specific units of measure in
29
which statistics will be reported.
32
Following is the result of a <em>r.report</em> run on the raster map layer
33
<em>geology</em> (located in the Spearfish, SD sample data base), with the
34
units expressed in square miles and acres. Here, <em>r.report</em> output is
35
directed into the file <em>report.file</em>.
41
<b>r.report map=</b><em>geology</em> <b>units=</b><em>miles,acres</em> > <em>report.file </em>
45
____________________________________________________________
46
| RASTER MAP CATEGORY REPORT |
47
| LOCATION: spearfish Fri Sep 2 09:20:09|
48
|____________________________________________________________|
49
| north: 4928000.00 east: 609000.00 |
50
| REGION: south: 4914000.00 west: 590000.00 |
51
| res: 100.00 res: 100.00 |
52
|____________________________________________________________|
54
|____________________________________________________________|
55
| MAP: geology in PERMANENT |
56
|____________________________________________________________|
57
| Category Information | Acres Square |
58
| # description | Miles |
59
|________|_________________________|_________________________|
60
| 0 | no data | 415.13| 0.65 |
61
| 1 | metamorphic | 2597.02| 4.06 |
62
| 2 | transition | 32.12| 0.05 |
63
| 3 | igneous | 8117.24| 12.68 |
64
| 4 | sandstone | 16691.60| 26.08 |
65
| 5 | limestone | 13681.93| 21.38 |
66
| 6 | shale | 10304.07| 16.10 |
67
| 7 | sandy shale | 2517.95| 3.93 |
68
| 8 | claysand | 3229.60| 5.05 |
69
| 9 | sand | 8141.95| 12.72 |
70
|__________________________________|___________|_____________|
71
| TOTAL | 65728.60| 102.70 |
72
|__________________________________|___________|_____________|
78
If the user runs <em>r.report</em> interactively and saves the report output
79
in a file, this file will be placed into the user's current working
83
If the user runs <em>r.report</em> non-interactively, report output can be
84
saved by redirecting it to a file or a printer using the UNIX redirection
88
To output computer-friendly data suitable for importing into a spreadsheet
89
use the <em>r.stats</em> module. In fact <em>r.report</em> is running
90
<em>r.stats</em> in the background and reformatting the results to be
96
<em><a href="g.region.html">g.region</a>,
97
<a href="r.coin.html">r.coin</a>,
98
<a href="r.describe.html">r.describe</a>,
99
<a href="r.info.html">r.info</a>,
100
<a href="r.stats.html">r.stats</a>,
101
<a href="r.univar.html">r.univar</a>
108
U.S. Army Construction Engineering Research Laboratory
111
<i>Last changed: $Date: 2013-04-18 14:21:53 +0200 (Thu, 18 Apr 2013) $</i>