1r.info(1)                   GRASS GIS User's Manual                  r.info(1)
2
3
4

NAME

6       r.info  - Outputs basic information about a raster map.
7

KEYWORDS

9       raster, metadata, extent, history
10

SYNOPSIS

12       r.info
13       r.info --help
14       r.info [-grseh] 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       -s
24           Print stats in shell script style
25
26       -e
27           Print extended metadata information in shell script style
28
29       -h
30           Print raster history instead of info
31
32       --help
33           Print usage summary
34
35       --verbose
36           Verbose module output
37
38       --quiet
39           Quiet module output
40
41       --ui
42           Force launching GUI dialog
43
44   Parameters:
45       map=name [required]
46           Name of raster map
47

DESCRIPTION

49       r.info reports some basic information about a user-specified raster map
50       layer.  This map layer must exist in the user’s current  mapset  search
51       path.   Information about the map’s boundaries, resolution, projection,
52       data type, category number, data base location and  mapset,  the  time‐
53       stamp  and history are put into a table and written to standard output.
54       The types of information listed can also be found in the cats,  cellhd,
55       and hist directories under the mapset in which the named map is stored.
56
57       The  user can save the tabular output to a file by using the UNIX redi‐
58       rection mechanism (>); for example, the user might save a report on the
59       soils map layer in a file called soil.txt by typing:
60       r.info map=soils > soil.txt
61

NOTES

63       On  large  maps,  the  total number of cells in the map may not be dis‐
64       played with an accurate number. This is only cosmetic.
65
66       Some standards (ISO-C90) and compilers do not support the  ’long  long’
67       type as a 64-bit type. In the case that GRASS GIS was built with such a
68       compiler, an accuracy message may be displayed in the output of  r.info
69       after Total Cells.
70

EXAMPLES

72       Below  is  a full report produced by r.info for the raster map slope in
73       the North Carolina sample data base:
74       r.info slope
75        +----------------------------------------------------------------------------+
76        | Map:      slope                          Date: Tue Nov  7 01:11:23 2006    |
77        | Mapset:   PERMANENT                      Login of Creator: helena          |
78        | Location: nc_spm_08_grass7                                                 |
79        | DataBase: /grassdata                                                       |
80        | Title:    South-West Wake county: slope in degrees ( slope_ned10m )        |
81        | Timestamp: none                                                            |
82        |----------------------------------------------------------------------------|
83        |                                                                            |
84        |   Type of Map:  raster               Number of Categories: 255             |
85        |   Data Type:    FCELL                                                      |
86        |   Rows:         1350                                                       |
87        |   Columns:      1500                                                       |
88        |   Total Cells:  2025000                                                    |
89        |        Projection: Lambert Conformal Conic                                 |
90        |            N:     228500    S:     215000   Res:    10                     |
91        |            E:     645000    W:     630000   Res:    10                     |
92        |   Range of data:    min = 0  max = 38.68939                                |
93        |                                                                            |
94        |   Data Source:                                                             |
95        |    raster elevation file elev_ned10m                                       |
96        |                                                                            |
97        |                                                                            |
98        |   Data Description:                                                        |
99        |    generated by r.slope.aspect                                             |
100        |                                                                            |
101        |   Comments:                                                                |
102        |    slope map elev = elev_ned10m                                            |
103        |    zfactor = 1.00 format = degrees                                         |
104        |    min_slope = 0.000000                                              |
105        |                                                                            |
106        +----------------------------------------------------------------------------+
107       Alternatively, the output from r.info may be confined to a  more  terse
108       subset  of  the  available  information by passing various flags to the
109       module:
110
111       Output in shell script style, useful for eval (eval `r.info -g slope`):
112       r.info -g slope
113       north=228500
114       south=215000
115       east=645000
116       west=630000
117       nsres=10
118       ewres=10
119       rows=1350
120       cols=1500
121       cells=2025000
122       datatype=FCELL
123       ncats=255
124
125       Output the map data range:
126       r.info -r slope
127       min=0
128       max=38.68939
129
130       Output the extended map data metadata in shell style:
131       r.info -e slope
132       map=slope
133       mapset=PERMANENT
134       location=nc_spm_08_grass7
135       database=/grassdata
136       date="Tue Nov  7 01:11:23 2006"
137       creator="helena"
138       title="South-West Wake county: slope in degrees (slope_ned10m)"
139       timestamp="none"
140       units="none"
141       vdatum="none"
142       source1="raster elevation file elev_ned10m"
143       source2=""
144       description="generated by r.slope.aspect"
145       comments="slope map elev = elev_ned10mzfactor = 1.00 format = degreesmin_slp_allowed = 0.000000"
146

SEE ALSO

148        g.mapsets, r.coin, r.describe, r.report, r.stats, r.support, r.univar,
149       r.what
150

AUTHOR

152       Michael O’Shea, U.S. Army Construction Engineering Research Laboratory
153

SOURCE CODE

155       Available at: r.info source code (history)
156
157       Main  index  | Raster index | Topics index | Keywords index | Graphical
158       index | Full index
159
160       © 2003-2020 GRASS Development Team, GRASS GIS 7.8.5 Reference Manual
161
162
163
164GRASS 7.8.5                                                          r.info(1)
Impressum