1r.info(1) Grass User's Manual r.info(1)
2
3
4
6 r.info - Outputs basic information about a raster map.
7
9 raster, metadata, extent, history
10
12 r.info
13 r.info --help
14 r.info [-greh] map=name [--help] [--verbose] [--quiet] [--ui]
15
16 Flags:
17 -g
18 Print raster array information in shell script style
19
20 -r
21 Print range in shell script style
22
23 -e
24 Print extended metadata information in shell script style
25
26 -h
27 Print raster history instead of info
28
29 --help
30 Print usage summary
31
32 --verbose
33 Verbose module output
34
35 --quiet
36 Quiet module output
37
38 --ui
39 Force launching GUI dialog
40
41 Parameters:
42 map=name [required]
43 Name of raster map
44
46 r.info reports some basic information about a user-specified raster map
47 layer. This map layer must exist in the user’s current mapset search
48 path. Information about the map’s boundaries, resolution, projection,
49 data type, category number, data base location and mapset, the time‐
50 stamp and history are put into a table and written to standard output.
51 The types of information listed can also be found in the cats, cellhd,
52 and hist directories under the mapset in which the named map is stored.
53
54 The user can save the tabular output to a file by using the UNIX redi‐
55 rection mechanism (>); for example, the user might save a report on the
56 soils map layer in a file called soil.txt by typing:
57 r.info map=soils > soil.txt
58
60 On large maps, the total number of cells in the map may not be dis‐
61 played with an accurate number. This is only cosmetic.
62
63 Some standards (ISO-C90) and compilers do not support the ’long long’
64 type as a 64-bit type. In the case that GRASS GIS was built with such a
65 compiler, an accuracy message may be displayed in the output of r.info
66 after Total Cells.
67
69 Below is a full report produced by r.info for the raster map slope in
70 the North Carolina sample data base:
71 r.info slope
72 +----------------------------------------------------------------------------+
73 | Map: slope Date: Tue Nov 7 01:11:23 2006 |
74 | Mapset: PERMANENT Login of Creator: helena |
75 | Location: nc_spm_08_grass7 |
76 | DataBase: /grassdata |
77 | Title: South-West Wake county: slope in degrees ( slope_ned10m ) |
78 | Timestamp: none |
79 |----------------------------------------------------------------------------|
80 | |
81 | Type of Map: raster Number of Categories: 255 |
82 | Data Type: FCELL |
83 | Rows: 1350 |
84 | Columns: 1500 |
85 | Total Cells: 2025000 |
86 | Projection: Lambert Conformal Conic |
87 | N: 228500 S: 215000 Res: 10 |
88 | E: 645000 W: 630000 Res: 10 |
89 | Range of data: min = 0 max = 38.68939 |
90 | |
91 | Data Source: |
92 | raster elevation file elev_ned10m |
93 | |
94 | |
95 | Data Description: |
96 | generated by r.slope.aspect |
97 | |
98 | Comments: |
99 | slope map elev = elev_ned10m |
100 | zfactor = 1.00 format = degrees |
101 | min_slope = 0.000000 |
102 | |
103 +----------------------------------------------------------------------------+
104 Alternatively, the output from r.info may be confined to a more terse
105 subset of the available information by passing various flags to the
106 module:
107
108 Output in shell script style, useful for eval (eval `r.info -g slope`):
109 r.info -g slope
110 north=228500
111 south=215000
112 east=645000
113 west=630000
114 nsres=10
115 ewres=10
116 rows=1350
117 cols=1500
118 cells=2025000
119 datatype=FCELL
120 ncats=255
121
122 Output the map data range:
123 r.info -r slope
124 min=0
125 max=38.68939
126
127 Output the extended map data metadata in shell style:
128 r.info -e slope
129 map=slope
130 mapset=PERMANENT
131 location=nc_spm_08_grass7
132 database=/grassdata
133 date="Tue Nov 7 01:11:23 2006"
134 creator="helena"
135 title="South-West Wake county: slope in degrees (slope_ned10m)"
136 timestamp="none"
137 units="none"
138 vdatum="none"
139 source1="raster elevation file elev_ned10m"
140 source2=""
141 description="generated by r.slope.aspect"
142 comments="slope map elev = elev_ned10mzfactor = 1.00 format = degreesmin_slp_allowed = 0.000000"
143
145 g.mapsets, r.coin, r.describe, r.report, r.stats, r.support, r.univar,
146 r.what
147
149 Michael O’Shea, U.S. Army Construction Engineering Research Laboratory
150
151 Last changed: $Date: 2014-11-26 17:43:10 +0100 (Wed, 26 Nov 2014) $
152
154 Available at: r.info source code (history)
155
156 Main index | Raster index | Topics index | Keywords index | Graphical
157 index | Full index
158
159 © 2003-2019 GRASS Development Team, GRASS GIS 7.4.4 Reference Manual
160
161
162
163GRASS 7.4.4 r.info(1)