R/family-yearstat.R

## This file was created automatically, do not edit by hand.
#' Yearly statistics
#'
#' This module computes statistical values over timesteps of the same year. Depending on the chosen operator the minimum, maximum, range, sum, average, variance or standard deviation of timesteps of the same year is written to outfile. The time of outfile is determined by the time in the middle of all contributing timesteps of infile. This can be change with the CDO option --timestat_date <first|middle|last>. 
#'
#' @details
#'     yearmin     Yearly minimum
#'                 For every adjacent sequence t_1, ...,t_n of timesteps of the same year it is:
#'                 
#'                 o(t,x) = min\{i(t',x), t_1<t'<=t_n\}
#'     yearmax     Yearly maximum
#'                 For every adjacent sequence t_1, ...,t_n of timesteps of the same year it is:
#'                 
#'                 o(t,x) = max\{i(t',x), t_1<t'<=t_n\}
#'     yearminidx  Index of yearly minimum
#'                 For every adjacent sequence t_1, ...,t_n of timesteps of the same year it is:
#'                 
#'                 o(t,x) = minidx\{i(t',x), t_1<t'<=t_n\}
#'     yearmaxidx  Index of yearly maximum
#'                 For every adjacent sequence t_1, ...,t_n of timesteps of the same year it is:
#'                 
#'                 o(t,x) = maxidx\{i(t',x), t_1<t'<=t_n\}
#'     yearrange   Yearly range
#'                 For every adjacent sequence t_1, ...,t_n of timesteps of the same year it is:
#'                 
#'                 o(t,x) = range\{i(t',x), t_1<t'<=t_n\}
#'     yearsum     Yearly sum
#'                 For every adjacent sequence t_1, ...,t_n of timesteps of the same year it is:
#'                 
#'                 o(t,x) = sum\{i(t',x), t_1<t'<=t_n\}
#'     yearmean    Yearly mean
#'                 For every adjacent sequence t_1, ...,t_n of timesteps of the same year it is:
#'                 
#'                 o(t,x) = mean\{i(t',x), t_1<t'<=t_n\}
#'     yearavg     Yearly average
#'                 For every adjacent sequence t_1, ...,t_n of timesteps of the same year it is:
#'                 
#'                 o(t,x) = avg\{i(t',x), t_1<t'<=t_n\}
#'     yearstd     Yearly standard deviation
#'                 Normalize by n. For every adjacent sequence t_1, ...,t_n of timesteps of the same year it is:
#'                 
#'                 o(t,x) = std\{i(t',x), t_1 < t' <= t_n\}
#'     yearstd1    Yearly standard deviation (n-1)
#'                 Normalize by (n-1). For every adjacent sequence t_1, ...,t_n of timesteps of the same year it is:
#'                 
#'                 o(t,x) = std1\{i(t',x), t_1 < t' <= t_n\}
#'     yearvar     Yearly variance
#'                 Normalize by n. For every adjacent sequence t_1, ...,t_n of timesteps of the same year it is:
#'                 
#'                 o(t,x) = var\{i(t',x), t_1 < t' <= t_n\}
#'     yearvar1    Yearly variance (n-1)
#'                 Normalize by (n-1). For every adjacent sequence t_1, ...,t_n of timesteps of the same year it is:
#'                 
#'                 o(t,x) = var1\{i(t',x), t_1 < t' <= t_n\}
#' 
#'
#' @section Note: 
#' The operators yearmean and yearavg compute only arithmetical means!
#'
#' @returns
#' Operators that output one or more files return a character vector to the
#' output files.
#'
#' Operators that output an indefinite number of files return a string with the
#' basename of the files.
#'
#' Operatos that don't return filenames return a character vector with the
#' string output.
#' @name yearstat
NULL

Try the rcdo package in your browser

Any scripts or data that you put into this service are public.

rcdo documentation built on June 8, 2025, 12:36 p.m.