Skip to content

t.rename

Renames a space time dataset

t.rename input=name output=name [type=name] [--overwrite] [--verbose] [--quiet] [--qq] [--ui]

Example:

t.rename input=name output=name

grass.script.run_command("t.rename", input, output, type="strds", overwrite=False, verbose=False, quiet=False, superquiet=False)

Example:

gs.run_command("t.rename", input="name", output="name")

Parameters

input=name [required]
    Name of the input space time dataset
output=name [required]
    Name of the output space time dataset
type=name
    Type of the input space time dataset
    Allowed values: strds, stvds, str3ds
    Default: strds
--overwrite
    Allow output files to overwrite existing files
--help
    Print usage summary
--verbose
    Verbose module output
--quiet
    Quiet module output
--qq
    Very quiet module output
--ui
    Force launching GUI dialog

input : str, required
    Name of the input space time dataset
    Used as: input, stds, name
output : str, required
    Name of the output space time dataset
    Used as: output, stds, name
type : str, optional
    Type of the input space time dataset
    Used as: name
    Allowed values: strds, stvds, str3ds
    Default: strds
overwrite: bool, optional
    Allow output files to overwrite existing files
    Default: False
verbose: bool, optional
    Verbose module output
    Default: False
quiet: bool, optional
    Quiet module output
    Default: False
superquiet: bool, optional
    Very quiet module output
    Default: False

DESCRIPTION

The t.rename module renames space time datasets of different types (STRDS, STVDS, STR3DS) and updates the space time dataset register entries of the registered maps.

NOTES

Renaming of space time datasets works only for SQLite based temporal databases.

EXAMPLE

A new vector space time dataset will be created, renamed and in the end removed

# Create new and empty STVDS
t.create type=stvds output=toberenamed semantictype=mean \
  title="Example to rename" \
  description="This is an example just to show how rename"

t.rename input=toberenamed output=newname type=stvds

t.remove input=newname type=stvds

SEE ALSO

t.create, t.support, t.register

AUTHOR

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

SOURCE CODE

Available at: t.rename source code (history)
Latest change: Friday Feb 07 19:16:09 2025 in commit a82a39f