1r.region(1) Grass User's Manual r.region(1)
2
3
4
6 r.region - Sets the boundary definitions for a raster map.
7
9 raster, metadata
10
12 r.region
13 r.region --help
14 r.region [-cda] map=name [region=name] [raster=name] [vector=name]
15 [n=value] [s=value] [e=value] [w=value] [align=name] [--help]
16 [--verbose] [--quiet] [--ui]
17
18 Flags:
19 -c
20 Set from current region
21
22 -d
23 Set from default region
24
25 -a
26 Auto-adjustment for lat/lon
27 Attempt to fix small precision errors in resolution and extents
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 to change
44
45 region=name
46 Set region from named region
47
48 raster=name
49 Set region to match this raster map
50
51 vector=name
52 Name of vector map
53 Set region to match this vector map
54
55 n=value
56 Value for the northern edge
57
58 s=value
59 Value for the southern edge
60
61 e=value
62 Value for the eastern edge
63
64 w=value
65 Value for the western edge
66
67 align=name
68 Raster map to align to
69
71 The r.region program allows the user to manage the boundaries of a
72 raster map. These boundaries can be set by the user directly and/or set
73 from a region definition file (stored under the windows directory in
74 the user’s current mapset), a raster or vector map, or a 3dview file.
75
76 The align parameter sets the current resolution equal to that of the
77 named raster map, and align the boundaries to a row and column edge in
78 the named map. Alignment only moves the existing boundaries outward to
79 the edges of the next nearest cell in the named raster map -- not to
80 the named map’s edges. To perform the latter function, use the
81 raster=name option.
82
84 After all updates have been applied, the raster map’s resolution set‐
85 tings are recomputed from the boundaries and the number of rows and
86 columns in the raster map.
87
88 The n=value may also be specified as a function of its current value:
89 n=n+value increases the current northing, while n=n-value decreases it.
90 This is also true for s=value, e=value, and w=value.
91
93 Assign absolute coordinates to map:
94 r.region map=mymap n=220750 s=220000 w=638300 e=639000
95 Shift map (using offset, here by 100 map units in two directions):
96 r.region map=mymap n=n+100 e=e+100 w=w+100 s=s+100
97
99 r.support, g.region, v.transform
100
102 Glynn Clements
103 Based upon g.region
104
105 Last changed: $Date: 2015-08-07 05:24:55 +0200 (Fri, 07 Aug 2015) $
106
108 Available at: r.region source code (history)
109
110 Main index | Raster index | Topics index | Keywords index | Graphical
111 index | Full index
112
113 © 2003-2019 GRASS Development Team, GRASS GIS 7.6.0 Reference Manual
114
115
116
117GRASS 7.6.0 r.region(1)