1t.remove(1)                 GRASS GIS User's Manual                t.remove(1)
2
3
4

NAME

6       t.remove  - Removes space time datasets from temporal database.
7

KEYWORDS

9       temporal, map management, remove, time
10

SYNOPSIS

12       t.remove
13       t.remove --help
14       t.remove  [-rf]  [inputs=name[,name,...]]   [type=string]   [file=name]
15       [--help]  [--verbose]  [--quiet]  [--ui]
16
17   Flags:
18       -r
19           Remove all registered maps from the temporal and also from the spa‐
20           tial database
21
22       -f
23           Force recursive removing
24
25       --help
26           Print usage summary
27
28       --verbose
29           Verbose module output
30
31       --quiet
32           Quiet module output
33
34       --ui
35           Force launching GUI dialog
36
37   Parameters:
38       inputs=name[,name,...]
39           Name of the input space time datasets
40
41       type=string
42           Type of the space time dataset, default is strds
43           Options: strds,  str3ds,  stvds
44           Default: strds
45
46       file=name
47           Input file with dataset names, one per line
48

DESCRIPTION

50       The  module t.remove removes space time datasets (STRDS, STR3DS, STVDS)
51       from the temporal database. In other words, by default it  deletes  the
52       relevant database entries but not the maps.
53
54       Optionally,  also  the  raster,  3D raster and vector maps of the space
55       time datasets can be removed from  the  current  mapset  using  the  -r
56       (recursive)  and -f (force) flags. This recursive removal only works if
57       both flags are checked together (use -rf).
58

EXAMPLE

60       In this  example  a  space  time  raster  dataset  (STRDS)  named  pre‐
61       cip_months_sum will be created using a subset of the monthly precipita‐
62       tion raster maps from the North Carolina climate sample data set.
63       In order to be able to show  the  case  of  recursive  removal  without
64       deleting  the  original  sample  data, we generate new data by means of
65       computing yearly precipitation sums.  Eventually,  all  newly  produced
66       data (STRDS and raster maps) are removed:
67       #Create new and empty STRDS
68       t.create output=precip_months_sum semantictype=mean \
69         title="Monthly sum of precipitation" \
70         description="Monthly sum of precipitation for the \
71         North Carolina sample data location"
72       #Register maps from sample dataset (selecting a subset with g.list)
73       t.register -i type=raster input=precip_months_sum \
74         maps=$(g.list type=raster pattern="201*_precip" separator=comma) \
75         start="2010-01-01" increment="1 months"
76       #Create some new data by aggregating with 1 years granularity
77       t.rast.aggregate input=precip_months_sum \
78         output=precip_years_sum basename=precip_years_sum granularity="1 \
79         years" method=sum
80       #Remove all newly produced data:
81       # a) the aggregated STRDS with 1 years granularity along with its raster maps
82       t.remove -rf type=strds input=precip_years_sum
83       # b) the STRDS with 1 months granularity, but not the original sample data
84       t.remove type=strds input=precip_months_sum
85

SEE ALSO

87        t.create, t.info, t.register
88

AUTHOR

90       Sören Gebbert, Thünen Institute of Climate-Smart Agriculture
91

SOURCE CODE

93       Available at: t.remove source code (history)
94
95       Main index | Temporal index | Topics index | Keywords index | Graphical
96       index | Full index
97
98       © 2003-2020 GRASS Development Team, GRASS GIS 7.8.5 Reference Manual
99
100
101
102GRASS 7.8.5                                                        t.remove(1)
Impressum