r.info.html 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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.txt</em> by typing:
  17. <div class="code"><pre>
  18. r.info map=soils &gt; soil.txt
  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 GIS 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. <h2>EXAMPLES</h2>
  29. Below is a full report produced by <em>r.info</em> for the raster map
  30. <i>slope</i> in the North Carolina sample data base:
  31. <div class="code"><pre>
  32. r.info slope
  33. +----------------------------------------------------------------------------+
  34. | Map: slope Date: Tue Nov 7 01:11:23 2006 |
  35. | Mapset: PERMANENT Login of Creator: helena |
  36. | Location: nc_spm_08_grass7 |
  37. | DataBase: /grassdata |
  38. | Title: South-West Wake county: slope in degrees ( slope_ned10m ) |
  39. | Timestamp: none |
  40. |----------------------------------------------------------------------------|
  41. | |
  42. | Type of Map: raster Number of Categories: 255 |
  43. | Data Type: FCELL |
  44. | Rows: 1350 |
  45. | Columns: 1500 |
  46. | Total Cells: 2025000 |
  47. | Projection: Lambert Conformal Conic |
  48. | N: 228500 S: 215000 Res: 10 |
  49. | E: 645000 W: 630000 Res: 10 |
  50. | Range of data: min = 0 max = 38.68939 |
  51. | |
  52. | Data Source: |
  53. | raster elevation file elev_ned10m |
  54. | |
  55. | |
  56. | Data Description: |
  57. | generated by r.slope.aspect |
  58. | |
  59. | Comments: |
  60. | slope map elev = elev_ned10m |
  61. | zfactor = 1.00 format = degrees |
  62. | min_slope = 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. <p>
  69. Output in shell script style, useful for eval (<tt>eval `r.info -g slope`</tt>):
  70. <div class="code"><pre>
  71. r.info -g slope
  72. north=228500
  73. south=215000
  74. east=645000
  75. west=630000
  76. nsres=10
  77. ewres=10
  78. rows=1350
  79. cols=1500
  80. cells=2025000
  81. datatype=FCELL
  82. ncats=255
  83. </pre></div>
  84. <p>
  85. Output the map data range:
  86. <div class="code"><pre>
  87. r.info -r slope
  88. min=0
  89. max=38.68939
  90. </pre></div>
  91. <p>
  92. Output the extended map data metadata in shell style:
  93. <div class="code"><pre>
  94. r.info -e slope
  95. map=slope
  96. mapset=PERMANENT
  97. location=nc_spm_08_grass7
  98. database=/grassdata
  99. date="Tue Nov 7 01:11:23 2006"
  100. creator="helena"
  101. title="South-West Wake county: slope in degrees (slope_ned10m)"
  102. timestamp="none"
  103. units="none"
  104. vdatum="none"
  105. source1="raster elevation file elev_ned10m"
  106. source2=""
  107. description="generated by r.slope.aspect"
  108. comments="slope map elev = elev_ned10mzfactor = 1.00 format = degreesmin_slp_allowed = 0.000000"
  109. </pre></div>
  110. <h2>SEE ALSO</h2>
  111. <em>
  112. <a href="g.mapsets.html">g.mapsets</a>,
  113. <a href="r.coin.html">r.coin</a>,
  114. <a href="r.describe.html">r.describe</a>,
  115. <a href="r.report.html">r.report</a>,
  116. <a href="r.stats.html">r.stats</a>,
  117. <a href="r.support.html">r.support</a>,
  118. <a href="r.univar.html">r.univar</a>,
  119. <a href="r.what.html">r.what</a>
  120. </em>
  121. <h2>AUTHOR</h2>
  122. Michael O'Shea,
  123. <a href="http://www.cecer.army.mil/">U.S. Army Construction Engineering Research Laboratory</a>
  124. <p>
  125. <i>Last changed: $Date$</i>