.TH r.series 1grass "" "GRASS 6.4.4" "Grass User's Manual" .SH NAME \fI\fBr.series\fR\fR - Makes each output cell value a function of the values assigned to the corresponding cells in the input raster map layers. .SH KEYWORDS raster, series .SH SYNOPSIS \fBr.series\fR .br \fBr.series help\fR .br \fBr.series\fR [\-\fBqn\fR] \fBinput\fR=\fIname\fR[,\fIname\fR,...] \fBoutput\fR=\fIname\fR[,\fIname\fR,...] \fBmethod\fR=\fIstring\fR[,\fIstring\fR,...] [\fBquantile\fR=\fIfloat\fR[,\fIfloat\fR,...]] [\fBthreshold\fR=\fIfloat\fR[,\fIfloat\fR,...]] [\fBrange\fR=\fIlo,hi\fR] [\-\-\fBoverwrite\fR] [\-\-\fBverbose\fR] [\-\-\fBquiet\fR] .SS Flags: .IP "\fB\-q\fR" 4m .br Run quietly .IP "\fB\-n\fR" 4m .br Propagate NULLs .IP "\fB\-\-overwrite\fR" 4m .br Allow output files to overwrite existing files .IP "\fB\-\-verbose\fR" 4m .br Verbose module output .IP "\fB\-\-quiet\fR" 4m .br Quiet module output .PP .SS Parameters: .IP "\fBinput\fR=\fIname[,\fIname\fR,...]\fR" 4m .br Name of input raster map(s) .IP "\fBoutput\fR=\fIname[,\fIname\fR,...]\fR" 4m .br Name for output raster map .IP "\fBmethod\fR=\fIstring[,\fIstring\fR,...]\fR" 4m .br Aggregate operation .br Options: \fIaverage,count,median,mode,minimum,min_raster,maximum,max_raster,stddev,range,sum,threshold,variance,diversity,slope,offset,detcoeff,quart1,quart3,perc90,quantile,skewness,kurtosis\fR .IP "\fBquantile\fR=\fIfloat[,\fIfloat\fR,...]\fR" 4m .br Quantile to calculate for method=quantile .br Options: \fI0.0-1.0\fR .IP "\fBthreshold\fR=\fIfloat[,\fIfloat\fR,...]\fR" 4m .br Threshold to calculate for method=threshold .IP "\fBrange\fR=\fIlo,hi\fR" 4m .br Ignore values outside this range .PP .SH DESCRIPTION \fIr.series\fR makes each output cell value a function of the values assigned to the corresponding cells in the input raster map layers. Following methods are available: .RE average: average value count: count of non-NULL cells median: median value mode: most frequently occuring value minimum: lowest value maximum: highest value range: range of values (max - min) stddev: standard deviation sum: sum of values variance: statistical variance diversity: number of different values slope: linear regression slope offset: linear regression offset detcoeff: linear regression coefficient of determination min_raster: raster map number with the minimum time-series value max_raster: raster map number with the maximum time-series value .RE .SH NOTES With \fI-n\fR flag, any cell for which any of the corresponding input cells are NULL is automatically set to NULL (NULL propagation). The aggregate function is not called, so all methods behave this way with respect to the \fI-n\fR flag. .PP Without \fI-n\fR flag, the complete list of inputs for each cell (including NULLs) is passed to the aggregate function. Individual aggregates can handle data as they choose. Mostly, they just compute the aggregate over the non-NULL values, producing a NULL result only if all inputs are NULL. .PP The \fImin_raster\fR and \fImax_raster\fR methods generate a map with the number of the raster map that holds the minimum/maximum value of the time-series. The numbering starts at \fI0\fR up to \fIn\fR for the first and the last raster listed in \fIinput=\fR, respectively. .PP If the \fIrange=\fR option is given, any values which fall outside that range will be treated as if they were NULL. The \fIrange\fR parameter can be set to \fIlow,high\fR thresholds: values outside of this range are treated as NULL (i.e., they will be ignored by most aggregates, or will cause the result to be NULL if \-n is given). The \fIlow,high\fR thresholds are floating point, so use \fI-inf\fR or \fIinf\fR for a single threshold (e.g., \fIrange=0,inf\fR to ignore negative values, or \fIrange=-inf,-200.4\fR to ignore values above -200.4). .PP Linear regression (slope, offset, coefficient of determination) assumes equal time intervals. If the data have irregular time intervals, NULL raster maps can be inserted into time series to make time intervals equal (see example). .PP Number of raster maps to be processed is given by the limit of the operating system. For example, both the hard and soft limits are typically 1024. The soft limit can be changed with e.g. ulimit \-n 1500 (UNIX-based operating systems) but not higher than the hard limit. If it is too low, you can as superuser add an entry in \fC .DS .br /etc/security/limits.conf .br # .br your_username hard nofile 1500 .br .DE \fR This would raise the hard limit to 1500 file. Be warned that more files open need more RAM. .SH EXAMPLES Using \fIr.series\fR with wildcards: .br \fC .DS .br r.series input="\(gag.mlist pattern='insitu_data.*' sep=,\(ga" \(rs .br output=insitu_data.stddev method=stddev .br .DE \fR .PP Note the \fIg.mlist\fR script also supports regular expressions for selecting map names. .PP Using \fIr.series\fR with NULL raster maps: .br \fC .DS .br r.mapcalc "dummy = null()" .br r.series in=map2001,map2002,dummy,dummy,map2005,map2006,dummy,map2008 \(rs .br out=res_slope,res_offset,res_coeff meth=slope,offset,detcoeff .br .DE \fR .PP Example for multiple aggregates to be computed in one run (3 resulting aggregates from two input maps): \fC .DS .br r.series in=one,two out=result_avg,res_slope,result_count meth=sum,slope,count .br .DE \fR .PP Example for counting the number of days above a certain temperature using daily average maps ('???' as DOY wildcard): \fC .DS .br r.series input=\(gag.mlist rast pat="temp_2003_???_avg" sep=,\(ga \(rs .br output=temp_2003_days_over_25deg range=25.0,100.0 method=count .br .DE \fR .SH SEE ALSO \fIg.mlist\fR, \fIg.region\fR .SH AUTHOR Glynn Clements .PP \fILast changed: $Date: 2012-03-02 14:54:55 +0100 (Fri, 02 Mar 2012) $\fR .PP Full index .PP © 2003-2014 GRASS Development Team