r.info.html 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <h2>DESCRIPTION</h2>
  2. <em>r.info</em> reports some basic information about a
  3. user-specified raster map layer. This map layer must exist
  4. in the user's current mapset search path. Information
  5. about the map's boundaries, resolution, projection, data
  6. type, category number, data base location and mapset,
  7. the timestamp and history are put into a table and written to standard
  8. output. The types of information listed can also be found
  9. in the <i>cats</i>, <i>cellhd</i>, and <i>hist</i>
  10. directories under the mapset in which the named map is
  11. stored.
  12. <p>
  13. The user can save the tabular output to a file
  14. by using the UNIX redirection mechanism (&gt;); for example, the user
  15. might save a report on the <em>soils</em> map layer in a file called
  16. <em>soil.rpt</em> by typing:
  17. <div class="code"><pre>
  18. r.info map=soils &gt; soil.rpt
  19. </pre></div>
  20. <h2>NOTES</h2>
  21. On large maps, the total number of cells in the map may not be displayed
  22. with an accurate number. This is only cosmetic.
  23. <p>
  24. Some standards (ISO-C90) and compilers do not support the 'long long' type
  25. as a 64-bit type. In the case that GRASS was built with such a compiler,
  26. an accuracy message may be displayed in the output of <em>r.info</em>
  27. after Total Cells:
  28. <p>
  29. <h2>EXAMPLES</h2>
  30. Below is a full report produced by <em>r.info</em> for the raster map
  31. <i>slope</i> in the Spearfish sample data base:
  32. <div class="code"><pre>
  33. +----------------------------------------------------------------------------+
  34. | Layer: slope Date: Mon Nov 5 10:55:57 2001 |
  35. | Mapset: PERMANENT Login of Creator: neteler |
  36. | Location: spearfish60 |
  37. | DataBase: /home/neteler/grassdaten |
  38. | Title: slope in degrees ( slope ) |
  39. | Timestamp: 20 Mar 1984 10:30 -0600 / 21 Mar 2020 10:30 -0600 |
  40. |----------------------------------------------------------------------------|
  41. | |
  42. | Type of Map: raster Number of Categories: 255 |
  43. | Data Type: FCELL |
  44. | Rows: 477 |
  45. | Columns: 634 |
  46. | Total Cells: 302418 |
  47. | Projection: UTM (zone 13) |
  48. | N: 4928010 S: 4913700 Res: 30 |
  49. | E: 609000 W: 589980 Res: 30 |
  50. | Range of data: min = 0.000000 max = 52.520164 |
  51. | |
  52. | Data Source: |
  53. | raster elevation file elevation.dem |
  54. | |
  55. | |
  56. | Data Description: |
  57. | generated by r.slope.aspect |
  58. | |
  59. | Comments: |
  60. | slope map elev = elevation.dem |
  61. | zfactor = 1.00 format = degrees |
  62. | min_slp_allowed = 0.000000 |
  63. | |
  64. +----------------------------------------------------------------------------+
  65. </pre></div>
  66. Alternatively, the output from <em>r.info</em> may be confined to a more terse
  67. subset of the available information by passing various flags to the module:
  68. <div class="code"><pre>
  69. GRASS> r.info -g slope
  70. north=4928030
  71. south=4913690
  72. east=609000
  73. west=589980
  74. nsres=30
  75. ewres=30
  76. rows=477
  77. cols=634
  78. cells=302418
  79. datatype=FCELL
  80. GRASS> r.info -r slope
  81. min=0.000000
  82. max=52.520164
  83. GRASS> r.info -e slope
  84. title=slope in degrees (slope)
  85. units="none"
  86. vertical_datum="none"
  87. timestamp="none"
  88. </pre></div>
  89. <h2>SEE ALSO</h2>
  90. <em><a href="g.mapsets.html">g.mapsets</a>,</em>
  91. <em><a href="r.coin.html">r.coin</a>,</em>
  92. <em><a href="r.describe.html">r.describe</a>,</em>
  93. <em><a href="r.report.html">r.report</a>,</em>
  94. <em><a href="r.stats.html">r.stats</a>,</em>
  95. <em><a href="r.support.html">r.support</a>,</em>
  96. <em><a href="r.univar.html">r.univar</a>,</em>
  97. <em><a href="r.what.html">r.what</a></em>
  98. <h2>AUTHOR</h2>
  99. Michael O'Shea,
  100. <a href="http://www.cecer.army.mil/">U.S. Army Construction Engineering Research Laboratory</a>
  101. <p>
  102. <i>Last changed: $Date$</i>