t.rast.null
Manages NULL-values of a given space time raster dataset.
t.rast.null input=name [setnull=string [,string,...]] [null=float] [where=sql_query] [nprocs=integer] [--verbose] [--quiet] [--qq] [--ui]
Example:
t.rast.null input=name
grass.script.run_command("t.rast.null", input, setnull=None, null=None, where=None, nprocs=1, verbose=False, quiet=False, superquiet=False)
Example:
gs.run_command("t.rast.null", input="name")
Parameters
input=name [required]
Name of the input space time raster dataset
setnull=string [,string,...]
List of cell values to be set to NULL
null=float
The value to replace the null value by
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'
nprocs=integer
Number of r.null processes to run in parallel
Default: 1
--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 raster dataset
Used as: input, strds, name
setnull : str | list[str], optional
List of cell values to be set to NULL
null : float, optional
The value to replace the null value by
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
nprocs : int, optional
Number of r.null processes to run in parallel
Default: 1
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.rast.null manages NULL-values of the input space time raster dataset.
The setnull parameter is used to specify values in the ranges to be set to NULL. A range is either a single value (e.g., 5.3), or a pair of values (e.g., 4.76-34.56). Existing NULL-values are left NULL, unless the null argument is requested.
The null parameter eliminates the NULL value and replaces it with the given value. This argument is applied only to existing NULL values, and not to the NULLs created by the setnull argument.
EXAMPLES
Set specific values (0,-1 and -2) of a space time raster dataset to NULL:
t.rast.null input=MY_INPUT_DATASET setnull=0,-1,-2
SEE ALSO
AUTHOR
Luca Delucchi, Fondazione Edmund Mach
SOURCE CODE
Available at: t.rast.null source code
(history)
Latest change: Thursday Feb 20 13:02:26 2025 in commit 53de819