r.report.html 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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. <p>
  21. When multiple (typically two) raster maps are specified, cross-tabulation
  22. table for each combination of categories in the raster maps will be computed
  23. and formatted in a human-readable way (see example).
  24. <h2>NOTES</h2>
  25. <!--
  26. If the user runs <em>r.report</em> interactively and saves the report output
  27. in a file, this file will be placed into the user's current working
  28. directory.
  29. If the user runs <em>r.report</em> non-interactively, report output can be
  30. saved by redirecting it to a file or a printer using the UNIX redirection
  31. mechanism.
  32. -->
  33. Note that, unlike <em><a href="r.stats.html">r.stats</a></em>,
  34. <em>r.report</em> allows the user to select the specific units of
  35. measure in which statistics will be reported. To output
  36. computer-friendly data suitable for importing into a spreadsheet use
  37. the <em><a href="r.stats.html">r.stats</a></em> module. In
  38. fact <em>r.report</em> is running
  39. <em><a href="r.stats.html">r.stats</a></em> in the background and
  40. reformatting the results to be more human-friendly.
  41. <h2>EXAMPLE</h2>
  42. Report sorted areas in square miles and acres for each
  43. category. No-data are not reported (see <b>-n</b> flag).
  44. <div class="code"><pre>
  45. r.report -n map=geology_30m units=mi,a sort=desc
  46. </pre></div>
  47. <div class="code"><pre>
  48. +-----------------------------------------------------------------------------+
  49. | RASTER MAP CATEGORY REPORT |
  50. |LOCATION: nc_spm_08_grass7 Fri Dec 6 17:00:21 2013|
  51. |-----------------------------------------------------------------------------|
  52. | north: 279073.97546639 east: 798143.31179672 |
  53. |REGION south: 113673.97546639 west: 595143.31179672 |
  54. | res: 200 res: 200 |
  55. |-----------------------------------------------------------------------------|
  56. |MASK: none |
  57. |-----------------------------------------------------------------------------|
  58. |MAP: South-West Wake county: geology derived from vector map (geology_30m in |
  59. |-----------------------------------------------------------------------------|
  60. | Category Information | square| |
  61. | #|description | miles| acres|
  62. |-----------------------------------------------------------------------------|
  63. |217|CZfg . . . . . . . . . . . . . . . . . . . . . . . | 27.783911|17,781.703|
  64. |270|CZig . . . . . . . . . . . . . . . . . . . . . . . | 26.162282|16,743.861|
  65. |405|CZbg . . . . . . . . . . . . . . . . . . . . . . . | 9.698886| 6207.287|
  66. |262|CZlg . . . . . . . . . . . . . . . . . . . . . . . | 7.629379| 4882.802|
  67. |862|CZam . . . . . . . . . . . . . . . . . . . . . . . | 2.532830| 1621.011|
  68. |910|CZbg . . . . . . . . . . . . . . . . . . . . . . . | 1.683405| 1077.379|
  69. |583|CZve . . . . . . . . . . . . . . . . . . . . . . . | 0.972977| 622.706|
  70. |921|Km . . . . . . . . . . . . . . . . . . . . . . . . | 0.463323| 296.526|
  71. |766|CZg. . . . . . . . . . . . . . . . . . . . . . . . | 0.324326| 207.569|
  72. |720|CZam . . . . . . . . . . . . . . . . . . . . . . . | 0.185329| 118.611|
  73. |946|CZam . . . . . . . . . . . . . . . . . . . . . . . | 0.138997| 88.958|
  74. |948|CZam . . . . . . . . . . . . . . . . . . . . . . . | 0.030888| 19.768|
  75. |-----------------------------------------------------------------------------|
  76. |TOTAL | 77.606534|49,668.182|
  77. +-----------------------------------------------------------------------------+
  78. </pre></div>
  79. Report areas for each category of land use for each zipcode (included only part of the table):
  80. <div class="code"><pre>
  81. r.report map=zipcodes@PERMANENT,landclass96@PERMANENT units=h,p
  82. </pre></div>
  83. <div class="code"><pre>
  84. +-----------------------------------------------------------------------------+
  85. | RASTER MAP CATEGORY REPORT |
  86. |LOCATION: nc_spm_08_latest Tue Feb 11 10:10:46 2014|
  87. |-----------------------------------------------------------------------------|
  88. | north: 228527.25 east: 644971 |
  89. |REGION south: 215018.25 west: 629980 |
  90. | res: 28.5 res: 28.5 |
  91. |-----------------------------------------------------------------------------|
  92. |MASK: none |
  93. |-----------------------------------------------------------------------------|
  94. |MAPS: South West Wake: Zipcode areas derived from vector map (zipcodes@PERMAN|
  95. | South-West Wake county: Simplified landuse classes (landclass96@PERMA|
  96. |-----------------------------------------------------------------------------|
  97. | Category Information | | % |
  98. | #|description | hectares| cover|
  99. |-----------------------------------------------------------------------------|
  100. |27511|CARY | 1053.813| 5.20|
  101. | |-----------------------------------------------------|----------|------|
  102. | |1|developed. . . . . . . . . . . . . . . . . . . . . | 197.214| 18.71|
  103. | |3|herbaceous . . . . . . . . . . . . . . . . . . . . | 25.017| 2.37|
  104. | |4|shrubland. . . . . . . . . . . . . . . . . . . . . | 58.563| 5.56|
  105. | |5|forest . . . . . . . . . . . . . . . . . . . . . . | 771.313| 73.19|
  106. | |6|water. . . . . . . . . . . . . . . . . . . . . . . | 1.625| 0.15|
  107. | |*|no data. . . . . . . . . . . . . . . . . . . . . . | 0.081| 0.01|
  108. |-----------------------------------------------------------|----------|------|
  109. |27513|CARY | 204.525| 1.01|
  110. | |-----------------------------------------------------|----------|------|
  111. | |1|developed. . . . . . . . . . . . . . . . . . . . . | 32.571| 15.93|
  112. | |3|herbaceous . . . . . . . . . . . . . . . . . . . . | 6.011| 2.94|
  113. | |4|shrubland. . . . . . . . . . . . . . . . . . . . . | 51.659| 25.26|
  114. | |5|forest . . . . . . . . . . . . . . . . . . . . . . | 114.284| 55.88|
  115. |-----------------------------------------------------------|----------|------|
  116. ...
  117. |-----------------------------------------------------------------------------|
  118. |TOTAL |22,968.900|100.00|
  119. +-----------------------------------------------------------------------------+
  120. </pre></div>
  121. <h2>SEE ALSO</h2>
  122. <em>
  123. <a href="r.stats.html">r.stats</a>,
  124. <a href="g.region.html">g.region</a>,
  125. <a href="r.coin.html">r.coin</a>,
  126. <a href="r.describe.html">r.describe</a>,
  127. <a href="r.info.html">r.info</a>,
  128. <a href="r.univar.html">r.univar</a>
  129. </em>
  130. <h2>AUTHORS</h2>
  131. Michael Shapiro, U.S. Army Construction Engineering Research Laboratory<br>
  132. Sort option by Martin Landa, Czech Technical University in Prague, 2013
  133. <p>
  134. <i>Last changed: $Date$</i>