Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > 413e0bdb3c48563b2d8d9038d07d5533 > files > 2087

grass-6.3.0-15.fc13.i686.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>GRASS GIS: r.report</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="grassdocs.css" type="text/css">
</head>
<body bgcolor="white">

<img src="grass_logo.png" alt="GRASS logo"><hr align=center size=6 noshade>

<h2>NAME</h2>
<em><b>r.report</b></em>  - Reports statistics for raster map layers.
<h2>KEYWORDS</h2>
raster, statistics
<h2>SYNOPSIS</h2>
<b>r.report</b><br>
<b>r.report help</b><br>
<b>r.report</b> [-<b>qhfenNCi</b>] <b>map</b>=<em>name</em>[,<i>name</i>,...]  [<b>units</b>=<em>string</em>[,<i>string</i>,...]]   [<b>null</b>=<em>string</em>]   [<b>pl</b>=<em>integer</em>]   [<b>pw</b>=<em>integer</em>]   [<b>output</b>=<em>string</em>]   [<b>nsteps</b>=<em>integer</em>]   [--<b>verbose</b>]  [--<b>quiet</b>] 

<h3>Flags:</h3>
<DL>
<DT><b>-q</b></DT>
<DD>Quiet</DD>

<DT><b>-h</b></DT>
<DD>Suppress page headers</DD>

<DT><b>-f</b></DT>
<DD>Use formfeeds between pages</DD>

<DT><b>-e</b></DT>
<DD>Scientific format</DD>

<DT><b>-n</b></DT>
<DD>Filter out all no data cells</DD>

<DT><b>-N</b></DT>
<DD>Filter out cells where all maps have no data</DD>

<DT><b>-C</b></DT>
<DD>Report for cats fp ranges (fp maps only)</DD>

<DT><b>-i</b></DT>
<DD>Read fp map as integer (use map's quant rules)</DD>

<DT><b>--verbose</b></DT>
<DD>Verbose module output</DD>
<DT><b>--quiet</b></DT>
<DD>Quiet module output</DD>
</DL>

<h3>Parameters:</h3>
<DL>
<DT><b>map</b>=<em>name[,<i>name</i>,...]</em></DT>
<DD>Raster map(s) to report on</DD>

<DT><b>units</b>=<em>string[,<i>string</i>,...]</em></DT>
<DD>mi(les),me(ters),k(ilometers),a(cres),h(ectares),c(ell_counts),p(ercent_cover)</DD>
<DD>Options: <em>mi,me,k,a,h,c,p</em></DD>

<DT><b>null</b>=<em>string</em></DT>
<DD>Character representing no data cell value</DD>
<DD>Default: <em>*</em></DD>

<DT><b>pl</b>=<em>integer</em></DT>
<DD>Page length (default: 0 lines)</DD>

<DT><b>pw</b>=<em>integer</em></DT>
<DD>Page width (default: 79 characters)</DD>

<DT><b>output</b>=<em>string</em></DT>
<DD>Name of an output file to hold the report</DD>

<DT><b>nsteps</b>=<em>integer</em></DT>
<DD>Number of fp subranges to collect stats from</DD>
<DD>Default: <em>255</em></DD>

</DL>
<H2>DESCRIPTION</H2>

<EM>r.report</EM> allows the user to set up a series of report parameters to
be applied to a raster map layer, and creates a report.  If invoked with
command line arguments, the report will print out to the screen only.
However, output may be redirected to a file or another program using the
UNIX redirection mechanism. If invoked without command line arguments, the
user is given the option of printing out each report and/or saving output to
a file.

<P>
The report itself consists of two parts, a header section and the main body
of the report.

<P>
The header section of the report identifies the raster map layer(s) (by map
layer name and TITLE), location, mapset, report date, and the region of
interest. The area of interest is described in two parts: the user's current
geographic region is presented, and the mask is presented (if any is used).

<P>
The main body of the report consists of from one to three tables which
present the statistics for each category and the totals for each unit
column.

<P>
Note that, unlike <EM><A HREF="r.stats.html">r.stats</A></EM>,
<EM>r.report</EM> allows the user to select the specific units of measure in
which statistics will be reported.

<P>
Following is the result of a <EM>r.report</EM> run on the raster map layer
<EM>geology</EM> (located in the Spearfish, SD sample data base), with the
units expressed in square miles and acres. Here, <EM>r.report</EM> output is
directed into the file <EM>report.file</EM>.

<H2>EXAMPLE:</H2>
<DL>
<DD>
<B>r.report map=</B><EM>geology</EM> <B>units=</B><EM>miles,acres</EM> &gt; <EM>report.file </EM>
</DL>

<PRE>
 ____________________________________________________________
|                 RASTER MAP CATEGORY REPORT                 |
| LOCATION: spearfish                      Fri Sep 2 09:20:09|
|____________________________________________________________|
|           north:   4928000.00   east:   609000.00          |
| REGION:   south:   4914000.00   west:   590000.00          |
|           res:         100.00   res:       100.00          |
|____________________________________________________________|
| MASK:     none                                             |
|____________________________________________________________|
| MAP:      geology in PERMANENT                             |
|____________________________________________________________|
|         Category Information     |    Acres       Square   |
|    #      description            |                Miles    |
|________|_________________________|_________________________|
|    0   |  no data                |     415.13|      0.65   |
|    1   |  metamorphic            |    2597.02|      4.06   |
|    2   |  transition             |      32.12|      0.05   |
|    3   |  igneous                |    8117.24|     12.68   |
|    4   |  sandstone              |   16691.60|     26.08   |
|    5   |  limestone              |   13681.93|     21.38   |
|    6   |  shale                  |   10304.07|     16.10   |
|    7   |  sandy shale            |    2517.95|      3.93   |
|    8   |  claysand               |    3229.60|      5.05   |
|    9   |  sand                   |    8141.95|     12.72   |
|__________________________________|___________|_____________|
|                 TOTAL            |   65728.60|    102.70   |
|__________________________________|___________|_____________|
</PRE>

<H2>NOTES</H2>
If the user runs <EM>r.report</EM> interactively and saves the report output
in a file, this file will be placed into the user's current working
directory.

<P>
If the user runs <EM>r.report</EM> non-interactively, report output can be
saved by redirecting it to a file or a printer using the UNIX redirection
mechanism.

<H2>SEE ALSO</H2>

<EM><A HREF="g.region.html">g.region</A>,
<A HREF="r.coin.html">r.coin</A>,
<A HREF="r.describe.html">r.describe</A>,
<A HREF="r.info.html">r.info</A>,
<A HREF="r.stats.html">r.stats</A>,
<A HREF="r.univar.html">r.univar</A>
</EM>

<H2>AUTHOR</H2>
Michael Shapiro,
U.S. Army Construction Engineering Research Laboratory

<p><i>Last changed: $Date: 2007-12-17 14:53:55 +0100 (Mon, 17 Dec 2007) $</i>
<HR>
<P><a href="index.html">Main index</a> - <a href="raster.html">raster index</a> - <a href="full_index.html">Full index</a></P>
<P>&copy; 2003-2008 <a href="http://grass.osgeo.org">GRASS Development Team</a></p>
</body>
</html>