1t.remove(1) GRASS GIS User's Manual t.remove(1)
2
3
4
6 t.remove - Removes space time datasets from temporal database.
7
9 temporal, map management, remove, time
10
12 t.remove
13 t.remove --help
14 t.remove [-rfd] [inputs=name[,name,...]] [type=string] [file=name]
15 [--help] [--verbose] [--quiet] [--ui]
16
17 Flags:
18 -r
19 Remove stds and unregister maps from temporal database
20
21 -f
22 Force removal (required for actual deletion of files)
23
24 -d
25 Remove stds, unregister maps from temporal database and delete them
26 from mapset
27
28 --help
29 Print usage summary
30
31 --verbose
32 Verbose module output
33
34 --quiet
35 Quiet module output
36
37 --ui
38 Force launching GUI dialog
39
40 Parameters:
41 inputs=name[,name,...]
42 Name of the input space time datasets
43
44 type=string
45 Type of the space time dataset, default is strds
46 Options: strds, str3ds, stvds
47 Default: strds
48
49 file=name
50 Input file with dataset names, one per line
51
53 The module t.remove removes space time datasets (STRDS, STR3DS, STVDS)
54 from the temporal database. In other words, by default it deletes the
55 relevant database entries. It can also unregister maps from temporal
56 database using the recursive mode -r (recursive)
57
58 Optionally, also the raster, 3D raster and vector maps of the space
59 time datasets can be removed from the current mapset using the -d
60 (delete) flag. All removals only work if -f (force) flag is used.
61
63 In this example a space time raster dataset (STRDS) named pre‐
64 cip_months_sum will be created using a subset of the monthly precipita‐
65 tion raster maps from the North Carolina climate sample data set.
66 In order to be able to show the case of recursive removal without
67 deleting the original sample data, we generate new data by means of
68 computing yearly precipitation sums. Eventually, all newly produced
69 data (STRDS and raster maps) are removed:
70 #Create new and empty STRDS
71 t.create output=precip_months_sum semantictype=mean \
72 title="Monthly sum of precipitation" \
73 description="Monthly sum of precipitation for the \
74 North Carolina sample data location"
75 #Register maps from sample dataset (selecting a subset with g.list)
76 t.register -i type=raster input=precip_months_sum \
77 maps=$(g.list type=raster pattern="201*_precip" separator=comma) \
78 start="2010-01-01" increment="1 months"
79 #Create some new data by aggregating with 1 years granularity
80 t.rast.aggregate input=precip_months_sum \
81 output=precip_years_sum basename=precip_years_sum granularity="1 \
82 years" method=sum
83 #Remove all newly produced data:
84 # a) the aggregated STRDS with 1 years granularity along with its raster maps
85 t.remove -df type=strds input=precip_years_sum
86 # b) the STRDS with 1 months granularity, but not the original sample data
87 t.remove -f type=strds input=precip_months_sum
88
90 t.create, t.info, t.register
91
93 Sören Gebbert, Thünen Institute of Climate-Smart Agriculture
94
96 Available at: t.remove source code (history)
97
98 Accessed: Saturday Jan 21 21:17:04 2023
99
100 Main index | Temporal index | Topics index | Keywords index | Graphical
101 index | Full index
102
103 © 2003-2023 GRASS Development Team, GRASS GIS 8.2.1 Reference Manual
104
105
106
107GRASS 8.2.1 t.remove(1)