forked from OSGeo/grass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patht.merge.html
225 lines (201 loc) · 8.65 KB
/
t.merge.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
<h2>DESCRIPTION</h2>
This module is designed to register the maps of several input space
time datasets in a single output dataset. The datasets to merge can be
either space time raster, 3D raster or vector datasets and must have
the same temporal type (absolute or relative).
<p>
Existing space time datasets located in the current mapset can be
specified as output as well. The maps from the input space time
datasets will be added to the output.
<p>
Maps from the input space time datasets will be registered only once in
the output space time dataset, hence the same maps can be registered in
different input space time datasets.
<h2>NOTES</h2>
Temporal databases stored in other mapsets can be used as long as they
are in the user's current mapset search path (managed with
<a href="g.mapsets.html">g.mapsets</a>).
<h2>EXAMPLES</h2>
In this example we will create two space time raster datasets and
register two unique maps in each of it. Then we merge the two space
time raster datasets together.
<div class="code"><pre>
r.mapcalc expression="map1 = rand(0, 10)" -s
r.mapcalc expression="map2 = rand(10, 20)" -s
t.create type=strds temporaltype=absolute \
output=precipitation_daily_1 \
title="Daily precipitation" \
description="Test dataset with daily precipitation"
t.register -i type=raster input=precipitation_daily_1 \
maps=map1,map2 start=2012-08-20 increment="1 days"
t.info precipitation_daily_1
+-------------------- Space Time Raster Dataset -----------------------------+
| |
+-------------------- Basic information -------------------------------------+
| Id: ........................ precipitation_daily_1@soeren
| Name: ...................... precipitation_daily_1
| Mapset: .................... soeren
| Creator: ................... soeren
| Temporal type: ............. absolute
| Creation time: ............. 2014-11-23 15:26:57.395355
| Modification time:.......... 2014-11-23 15:26:57.860513
| Semantic type:.............. mean
+-------------------- Absolute time -----------------------------------------+
| Start time:................. 2012-08-20 00:00:00
| End time:................... 2012-08-22 00:00:00
| Granularity:................ 1 day
| Temporal type of maps:...... interval
+-------------------- Spatial extent ----------------------------------------+
| North:...................... 80.0
| South:...................... 0.0
| East:.. .................... 120.0
| West:....................... 0.0
| Top:........................ 0.0
| Bottom:..................... 0.0
+-------------------- Metadata information ----------------------------------+
| Raster register table:...... raster_map_register_6e6efe25ee9b40e39eb31421d737439b
| North-South resolution min:. 10.0
| North-South resolution max:. 10.0
| East-west resolution min:... 10.0
| East-west resolution max:... 10.0
| Minimum value min:.......... 0.0
| Minimum value max:.......... 10.0
| Maximum value min:.......... 9.0
| Maximum value max:.......... 19.0
| Aggregation type:........... None
| Number of registered maps:.. 2
|
| Title:
| Daily precipitation
| Description:
| Test dataset with daily precipitation
| Command history:
| # 2014-11-23 15:26:57
| t.create type="strds" temporaltype="absolute"
| output="precipitation_daily_1" title="Daily precipitation"
| description="Test dataset with daily precipitation"
| # 2014-11-23 15:26:57
| t.register -i type="rast"
| input="precipitation_daily_1" maps="map1,map2" start="2012-08-20"
| increment="1 days"
|
+----------------------------------------------------------------------------+
r.mapcalc expression="map3 = rand(20, 30)" -s
r.mapcalc expression="map4 = rand(30, 40)" -s
t.create type=strds temporaltype=absolute \
output=precipitation_daily_2 \
title="Daily precipitation" \
description="Test dataset with daily precipitation"
t.register -i type=raster input=precipitation_daily_2 \
maps=map3,map4 start=2012-08-22 increment="1 days"
t.info precipitation_daily_2
+-------------------- Space Time Raster Dataset -----------------------------+
| |
+-------------------- Basic information -------------------------------------+
| Id: ........................ precipitation_daily_2@soeren
| Name: ...................... precipitation_daily_2
| Mapset: .................... soeren
| Creator: ................... soeren
| Temporal type: ............. absolute
| Creation time: ............. 2014-11-23 15:27:20.165074
| Modification time:.......... 2014-11-23 15:27:20.613543
| Semantic type:.............. mean
+-------------------- Absolute time -----------------------------------------+
| Start time:................. 2012-08-22 00:00:00
| End time:................... 2012-08-24 00:00:00
| Granularity:................ 1 day
| Temporal type of maps:...... interval
+-------------------- Spatial extent ----------------------------------------+
| North:...................... 80.0
| South:...................... 0.0
| East:.. .................... 120.0
| West:....................... 0.0
| Top:........................ 0.0
| Bottom:..................... 0.0
+-------------------- Metadata information ----------------------------------+
| Raster register table:...... raster_map_register_04eaede279b2476a80c2683254232f84
| North-South resolution min:. 10.0
| North-South resolution max:. 10.0
| East-west resolution min:... 10.0
| East-west resolution max:... 10.0
| Minimum value min:.......... 20.0
| Minimum value max:.......... 30.0
| Maximum value min:.......... 29.0
| Maximum value max:.......... 39.0
| Aggregation type:........... None
| Number of registered maps:.. 2
|
| Title:
| Daily precipitation
| Description:
| Test dataset with daily precipitation
| Command history:
| # 2014-11-23 15:27:20
| t.create type="strds" temporaltype="absolute"
| output="precipitation_daily_2" title="Daily precipitation"
| description="Test dataset with daily precipitation"
| # 2014-11-23 15:27:20
| t.register -i type="rast"
| input="precipitation_daily_2" maps="map3,map4" start="2012-08-22"
| increment="1 days"
|
+----------------------------------------------------------------------------+
t.merge input=precipitation_daily_1,precipitation_daily_2 \
output=precipitation_daily_3
t.info precipitation_daily_3
+-------------------- Space Time Raster Dataset -----------------------------+
| |
+-------------------- Basic information -------------------------------------+
| Id: ........................ precipitation_daily_3@soeren
| Name: ...................... precipitation_daily_3
| Mapset: .................... soeren
| Creator: ................... soeren
| Temporal type: ............. absolute
| Creation time: ............. 2014-11-23 15:27:44.069272
| Modification time:.......... 2014-11-23 15:27:44.088930
| Semantic type:.............. mean
+-------------------- Absolute time -----------------------------------------+
| Start time:................. 2012-08-20 00:00:00
| End time:................... 2012-08-24 00:00:00
| Granularity:................ 1 day
| Temporal type of maps:...... interval
+-------------------- Spatial extent ----------------------------------------+
| North:...................... 80.0
| South:...................... 0.0
| East:.. .................... 120.0
| West:....................... 0.0
| Top:........................ 0.0
| Bottom:..................... 0.0
+-------------------- Metadata information ----------------------------------+
| Raster register table:...... raster_map_register_33715c8c849a43fbb9bce02e1f28ff5a
| North-South resolution min:. 10.0
| North-South resolution max:. 10.0
| East-west resolution min:... 10.0
| East-west resolution max:... 10.0
| Minimum value min:.......... 0.0
| Minimum value max:.......... 30.0
| Maximum value min:.......... 9.0
| Maximum value max:.......... 39.0
| Aggregation type:........... None
| Number of registered maps:.. 4
|
| Title:
| Merged space time dataset
| Description:
| Merged space time dataset
| Command history:
| # 2014-11-23 15:27:44
| t.merge
| input="precipitation_daily_1,precipitation_daily_2"
| output="precipitation_daily_3"
|
+----------------------------------------------------------------------------+
</pre></div>
<h2>SEE ALSO</h2>
<em>
<a href="t.create.html">t.create</a>,
<a href="t.support.html">t.support</a>,
<a href="t.register.html">t.register</a>
</em>
<h2>AUTHOR</h2>
Sören Gebbert, Thünen Institute of Climate-Smart Agriculture