Skip to content

t.rast3d.univar

Calculates univariate statistics from the non-null cells for each registered 3D raster map of a space time 3D raster dataset.

t.rast3d.univar [-es] input=name [zones=name] [nprocs=integer] [output=name] [where=sql_query] [separator=character] [--overwrite] [--verbose] [--quiet] [--qq] [--ui]

Example:

t.rast3d.univar input=name

grass.script.run_command("t.rast3d.univar", input, zones=None, nprocs=1, output=None, where=None, separator="pipe", flags=None, overwrite=False, verbose=False, quiet=False, superquiet=False)

Example:

gs.run_command("t.rast3d.univar", input="name")

Parameters

input=name [required]
    Name of the input space time raster3d dataset
zones=name
    Raster map with zones to compute statistics for
    Raster map with zones to compute statistics for (needs to be CELL)
nprocs=integer
    Number of threads for parallel computing
    Default: 1
output=name
    Name for output file
where=sql_query
    WHERE conditions of SQL statement without 'where' keyword used in the temporal GIS framework
    Example: start_time > '2001-01-01 12:30:00'
separator=character
    Field separator character between the output columns
    Special characters: pipe, comma, space, tab, newline
    Default: pipe
-e
    Calculate extended statistics
-s
    Suppress printing of column names
--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 raster3d dataset
    Used as: input, str3ds, name
zones : str, optional
    Raster map with zones to compute statistics for
    Raster map with zones to compute statistics for (needs to be CELL)
    Used as: input, raster, name
nprocs : int, optional
    Number of threads for parallel computing
    Default: 1
output : str, optional
    Name for output file
    Used as: output, file, name
where : str, optional
    WHERE conditions of SQL statement without 'where' keyword used in the temporal GIS framework
    Example: start_time > '2001-01-01 12:30:00'
    Used as: sql_query
separator : str, optional
    Field separator character between the output columns
    Special characters: pipe, comma, space, tab, newline
    Used as: input, separator, character
    Default: pipe
flags : str, optional
    Allowed values: e, s
    e
        Calculate extended statistics
    s
        Suppress printing of column names
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

t.rast3d.univar provides the same functionality as t.rast.univar, the only difference is the 3D raster map layer metadata. Please refer to the manual page of t.rast.univar for documentation and examples.

SEE ALSO

t.rast.univar, t.create, t.info

AUTHOR

Sören Gebbert, Thünen Institute of Climate-Smart Agriculture
Stefan Blumentrath (support for zones)

SOURCE CODE

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