cdtComputeSeasonal_cdtstn: Computing seasonal data for CDT stations data.

View source: R/cdtCompute_Seasonal_Cmd.R

cdtComputeSeasonal_cdtstnR Documentation

Computing seasonal data for CDT stations data.

Description

Compute seasonal data for CDT stations data.

Usage

cdtComputeSeasonal_cdtstn(
  season.def = list(start.month = 1, season.length = 3),
  period = list(start.year = 1981, end.year = 2010),
  station.data = list(time.step = "dekadal", file = "", sep = ",", na.strings = "-99"),
  season.min.frac = 0.95,
  aggregation.fun = "sum",
  count.opr = ">=",
  count.thres = 1,
  ...
)

Arguments

season.def

named list, season definition.

  • start.month: integer, start month of the season

  • season.length: integer, length of the season

period

named list, the period of data to compute.

  • start.year: integer, start year of the period

  • end.year: integer, the end year

station.data

named list, stations data info.

  • time.step: character, the time step of the station data. Available options: "daily", "pentad", "dekadal", "monthly"

  • file: character, full path to the file containing the CDT data

  • sep: character, the column's separator of the data

  • na.strings: character, the missing values flag

season.min.frac

numeric, used to aggregate the seasonal data, minimum fraction of non-missing values for each season.

aggregation.fun

character, aggregation function to use. Options are: "sum", "mean", "median", "max", "min", "sd", "var", "count", "user".

count.opr

character, the comparison operator to use when aggregation.fun is "count".

count.thres

numeric, the threshold to use when aggregation.fun is "count".

...

when aggregation.fun is "user", the user function and additional arguments to be passed to the user's function.

Value

A named list


rijaf-iri/CDT documentation built on July 3, 2024, 2:54 a.m.