.TH t.rast.extract 1grass "" "GRASS 7.8.5" "GRASS GIS User's Manual" .SH NAME \fI\fBt.rast.extract\fR\fR \- Extracts a subset of a space time raster datasets. .SH KEYWORDS temporal, extract, raster, time .SH SYNOPSIS \fBt.rast.extract\fR .br \fBt.rast.extract \-\-help\fR .br \fBt.rast.extract\fR [\-\fBn\fR] \fBinput\fR=\fIname\fR [\fBwhere\fR=\fIsql_query\fR] [\fBexpression\fR=\fIstring\fR] \fBoutput\fR=\fIname\fR [\fBbasename\fR=\fIstring\fR] [\fBsuffix\fR=\fIstring\fR] [\fBnprocs\fR=\fIinteger\fR] [\-\-\fBoverwrite\fR] [\-\-\fBhelp\fR] [\-\-\fBverbose\fR] [\-\-\fBquiet\fR] [\-\-\fBui\fR] .SS Flags: .IP "\fB\-n\fR" 4m .br Register Null maps .IP "\fB\-\-overwrite\fR" 4m .br Allow output files to overwrite existing files .IP "\fB\-\-help\fR" 4m .br Print usage summary .IP "\fB\-\-verbose\fR" 4m .br Verbose module output .IP "\fB\-\-quiet\fR" 4m .br Quiet module output .IP "\fB\-\-ui\fR" 4m .br Force launching GUI dialog .SS Parameters: .IP "\fBinput\fR=\fIname\fR \fB[required]\fR" 4m .br Name of the input space time raster dataset .IP "\fBwhere\fR=\fIsql_query\fR" 4m .br WHERE conditions of SQL statement without \(cqwhere\(cq keyword used in the temporal GIS framework .br Example: start_time > \(cq2001\-01\-01 12:30:00\(cq .IP "\fBexpression\fR=\fIstring\fR" 4m .br r.mapcalc expression assigned to all extracted raster maps .IP "\fBoutput\fR=\fIname\fR \fB[required]\fR" 4m .br Name of the output space time raster dataset .IP "\fBbasename\fR=\fIstring\fR" 4m .br Basename of the new generated output maps .br A numerical suffix separated by an underscore will be attached to create a unique identifier .IP "\fBsuffix\fR=\fIstring\fR" 4m .br Suffix to add at basename: set \(cqgran\(cq for granularity, \(cqtime\(cq for the full time format, \(cqnum\(cq for numerical suffix with a specific number of digits (default %05) .br Default: \fIgran\fR .IP "\fBnprocs\fR=\fIinteger\fR" 4m .br Number of r.mapcalc processes to run in parallel .br Default: \fI1\fR .SH DESCRIPTION The purpose of \fBt.rast.extract\fR is to extract a subset of a space time raster dataset and to store that subset in a different space time raster dataset. The \fBwhere\fR condition is used to select the subset. In addition a \fIr.mapcalc\fR sub\-expression can be specified that performs operations on all maps of the selected subset. In this expression the name of the input space time raster dataset can be used as simple map name. Other STRDS than the input STRDS can not be specified, but any raster map. In case a \fIr.mapcalc\fR sub\-expression is defined, the base name of the resulting raster maps must be specified. The \fIr.mapcalc\fR expression can be used to select maps as well, since by default resulting empty maps are not registered in the output space time raster dataset and removed after processing. The number of parallel GRASS GIS processes can be specified to speed up the processing. .PP If no \fIr.mapcalc\fR expression is defined, the selected maps are simply registered in the new created output space time raster dataset to avoid data duplication. .SH NOTES The \fIr.mapcalc\fR sub\-expression should not contain the left side \(dqmap =\(dq of a full \fIr.mapcalc\fR expression, only the right side, eg.: .br .nf \fC t.rast.extract input=tempmean_monthly where=\(dqstart_time > \(cq2010\-01\-05\(cq\(dq \(rs output=selected_tempmean_monthly basename=new_tmean_month \(rs expression=\(dqif(tempmean_monthly < 0, null(), tempmean_monthly)\(dq \fR .fi .SH EXAMPLE .br .nf \fC t.rast.extract input=tempmean_monthly output=tempmean_monthly_later_2012 \(rs where=\(dqstart_time >= \(cq2012\-01\-01\(cq\(dq t.rast.list tempmean_monthly_later_2012 name|mapset|start_time|end_time 2012_01_tempmean|climate_2000_2012|2012\-01\-01 00:00:00|2012\-02\-01 00:00:00 2012_02_tempmean|climate_2000_2012|2012\-02\-01 00:00:00|2012\-03\-01 00:00:00 2012_03_tempmean|climate_2000_2012|2012\-03\-01 00:00:00|2012\-04\-01 00:00:00 2012_04_tempmean|climate_2000_2012|2012\-04\-01 00:00:00|2012\-05\-01 00:00:00 2012_05_tempmean|climate_2000_2012|2012\-05\-01 00:00:00|2012\-06\-01 00:00:00 2012_06_tempmean|climate_2000_2012|2012\-06\-01 00:00:00|2012\-07\-01 00:00:00 2012_07_tempmean|climate_2000_2012|2012\-07\-01 00:00:00|2012\-08\-01 00:00:00 2012_08_tempmean|climate_2000_2012|2012\-08\-01 00:00:00|2012\-09\-01 00:00:00 2012_09_tempmean|climate_2000_2012|2012\-09\-01 00:00:00|2012\-10\-01 00:00:00 2012_10_tempmean|climate_2000_2012|2012\-10\-01 00:00:00|2012\-11\-01 00:00:00 2012_11_tempmean|climate_2000_2012|2012\-11\-01 00:00:00|2012\-12\-01 00:00:00 2012_12_tempmean|climate_2000_2012|2012\-12\-01 00:00:00|2013\-01\-01 00:00:00 \fR .fi .SH SEE ALSO \fI t.create, t.info \fR .SH AUTHOR Sören Gebbert, Thünen Institute of Climate\-Smart Agriculture .SH SOURCE CODE .PP Available at: t.rast.extract source code (history) .PP Main index | Temporal index | Topics index | Keywords index | Graphical index | Full index .PP © 2003\-2020 GRASS Development Team, GRASS GIS 7.8.5 Reference Manual