|
@@ -14,41 +14,47 @@ be used to specify 3d raster or vector map layer types.
|
|
|
|
|
|
Specification of map names:
|
|
|
<div class="code"><pre>
|
|
|
-prec_1
|
|
|
-prec_2
|
|
|
-prec_3
|
|
|
-prec_4
|
|
|
-prec_5
|
|
|
-prec_6
|
|
|
+a1
|
|
|
+a2
|
|
|
+a3
|
|
|
+a4
|
|
|
+a5
|
|
|
+a6
|
|
|
</pre></div>
|
|
|
|
|
|
+<h3>NOTE</h3>
|
|
|
+In case the <em>input</em> option is used to specify a space time dataset
|
|
|
+the maps are only unregistered from the space time dataset, but not from the
|
|
|
+temporal database. The reason is that maps can be registered in
|
|
|
+multiple space time datasets and there is a need to
|
|
|
+unregister them from a specific STDS without affecting other STDS.
|
|
|
+
|
|
|
<h2>EXAMPLE</h2>
|
|
|
|
|
|
In this example we create 2 raster map layers that will be registered
|
|
|
-in a space time raster dataset named <em>precip_abs</em> using a
|
|
|
+in a space time raster dataset named <em>A</em> using a
|
|
|
monthly temporal granularity. We use t.unregister to unregister a map
|
|
|
layer from the space time dataset and from the temporal database.
|
|
|
|
|
|
<div class="code"><pre>
|
|
|
-r.mapcalc expr="prec_1 = 100"
|
|
|
-r.mapcalc expr="prec_2 = 200"
|
|
|
-r.mapcalc expr="prec_3 = 300"
|
|
|
+r.mapcalc expr="a1 = 100"
|
|
|
+r.mapcalc expr="a2 = 200"
|
|
|
|
|
|
t.create type=strds temporaltype=absolute \
|
|
|
- output=precip_abs title="Example" \
|
|
|
+ output=A title="Example" \
|
|
|
descr="Example"
|
|
|
|
|
|
-t.register -i type=rast input=precip_abs \
|
|
|
- maps=prec_1,prec_2,prec_3 \
|
|
|
+t.register -i type=rast input=A \
|
|
|
+ maps=a1,a2 \
|
|
|
start="2001-01-01" increment="1 month"
|
|
|
|
|
|
-# We unregister raster map prec_1 from a space time dataset,
|
|
|
-# the raster map is still present in the temporal database
|
|
|
-t.unregister type=rast input=precip_abs maps=prec_1
|
|
|
+# We unregister raster maps a1 and a2 from a space time dataset,
|
|
|
+# the raster maps are still present in the temporal database
|
|
|
+t.unregister type=rast input=A maps=a1,a2
|
|
|
|
|
|
-# We unregister raster map prec_2 from the temporal database, hence
|
|
|
-# the time stamp is removed
|
|
|
-t.unregister type=rast maps=prec_2
|
|
|
+# We unregister raster map a1 and a2 from the temporal database, hence
|
|
|
+# the time stamps are removed
|
|
|
+t.unregister type=rast maps=a1,a2
|
|
|
</pre></div>
|
|
|
|
|
|
|