r.report.html 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <h2>DESCRIPTION</h2>
  2. <em>r.report</em> allows the user to set up a series of report
  3. parameters to be applied to a raster map, and creates a report. The
  4. report will print out to the standard output if <b>output</b>
  5. parameter is not given.
  6. <p>
  7. The report itself consists of two parts, a header section and the main
  8. body of the report.
  9. <p>
  10. The header section of the report identifies the raster map(s) (by map
  11. name and title), location, mapset, report date, and the region of
  12. interest. The area of interest is described in two parts: the user's
  13. current geographic region is presented, and the mask is presented (if
  14. any is used).
  15. <p>
  16. The main body of the report consists of from one to three tables which
  17. present the statistics for each category and the totals for each unit
  18. column. Note that the statistics is always computed in the current
  19. geographical region.
  20. <h2>NOTES</h2>
  21. <!--
  22. If the user runs <em>r.report</em> interactively and saves the report output
  23. in a file, this file will be placed into the user's current working
  24. directory.
  25. If the user runs <em>r.report</em> non-interactively, report output can be
  26. saved by redirecting it to a file or a printer using the UNIX redirection
  27. mechanism.
  28. -->
  29. Note that, unlike <em><a href="r.stats.html">r.stats</a></em>,
  30. <em>r.report</em> allows the user to select the specific units of
  31. measure in which statistics will be reported. To output
  32. computer-friendly data suitable for importing into a spreadsheet use
  33. the <em><a href="r.stats.html">r.stats</a></em> module. In
  34. fact <em>r.report</em> is running
  35. <em><a href="r.stats.html">r.stats</a></em> in the background and
  36. reformatting the results to be more human-friendly.
  37. <h2>EXAMPLE</h2>
  38. Report sorted areas in square miles and acres for each
  39. category. No-data are not reported (see <b>-n</b> flag).
  40. <div class="code"><pre>
  41. r.report -n map=geology_30m units=mi,a sort=desc
  42. +-----------------------------------------------------------------------------+
  43. | RASTER MAP CATEGORY REPORT |
  44. |LOCATION: nc_spm_08_grass7 Fri Dec 6 17:00:21 2013|
  45. |-----------------------------------------------------------------------------|
  46. | north: 279073.97546639 east: 798143.31179672 |
  47. |REGION south: 113673.97546639 west: 595143.31179672 |
  48. | res: 200 res: 200 |
  49. |-----------------------------------------------------------------------------|
  50. |MASK: none |
  51. |-----------------------------------------------------------------------------|
  52. |MAP: South-West Wake county: geology derived from vector map (geology_30m in |
  53. |-----------------------------------------------------------------------------|
  54. | Category Information | square| |
  55. | #|description | miles| acres|
  56. |-----------------------------------------------------------------------------|
  57. |217|CZfg . . . . . . . . . . . . . . . . . . . . . . . | 27.783911|17,781.703|
  58. |270|CZig . . . . . . . . . . . . . . . . . . . . . . . | 26.162282|16,743.861|
  59. |405|CZbg . . . . . . . . . . . . . . . . . . . . . . . | 9.698886| 6207.287|
  60. |262|CZlg . . . . . . . . . . . . . . . . . . . . . . . | 7.629379| 4882.802|
  61. |862|CZam . . . . . . . . . . . . . . . . . . . . . . . | 2.532830| 1621.011|
  62. |910|CZbg . . . . . . . . . . . . . . . . . . . . . . . | 1.683405| 1077.379|
  63. |583|CZve . . . . . . . . . . . . . . . . . . . . . . . | 0.972977| 622.706|
  64. |921|Km . . . . . . . . . . . . . . . . . . . . . . . . | 0.463323| 296.526|
  65. |766|CZg. . . . . . . . . . . . . . . . . . . . . . . . | 0.324326| 207.569|
  66. |720|CZam . . . . . . . . . . . . . . . . . . . . . . . | 0.185329| 118.611|
  67. |946|CZam . . . . . . . . . . . . . . . . . . . . . . . | 0.138997| 88.958|
  68. |948|CZam . . . . . . . . . . . . . . . . . . . . . . . | 0.030888| 19.768|
  69. |-----------------------------------------------------------------------------|
  70. |TOTAL | 77.606534|49,668.182|
  71. +-----------------------------------------------------------------------------+
  72. </div>
  73. <h2>SEE ALSO</h2>
  74. <em>
  75. <a href="r.stats.html">r.stats</a>,
  76. <a href="g.region.html">g.region</a>,
  77. <a href="r.coin.html">r.coin</a>,
  78. <a href="r.describe.html">r.describe</a>,
  79. <a href="r.info.html">r.info</a>,
  80. <a href="r.univar.html">r.univar</a>
  81. </em>
  82. <h2>AUTHORS</h2>
  83. Michael Shapiro, U.S. Army Construction Engineering Research Laboratory<br>
  84. Sort option by Martin Landa, Czech Technical University in Prague, 2013
  85. <p>
  86. <i>Last changed: $Date$</i>