cdtComputeSeasonal_netcdf: Computing seasonal data for netCDF dataset.

View source: R/cdtCompute_Seasonal_Cmd.R

cdtComputeSeasonal_netcdfR Documentation

Computing seasonal data for netCDF dataset.

Description

Compute seasonal data for netCDF dataset.

Usage

cdtComputeSeasonal_netcdf(
  season.def = list(start.month = 1, season.length = 3),
  period = list(start.year = 1981, end.year = 2010),
  netcdf.data = list(time.step = "dekadal", dir = "", format = "tmax_mrg_%s%s%s.nc",
    varid = "temp", ilon = 1, ilat = 2),
  season.min.frac = 0.95,
  aggregation.fun = "mean",
  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

netcdf.data

named list, netCDF data info.

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

  • dir: character, full path to the directory containing the netCDF files.

  • format: character, format of the netCDF file names

  • varid: character, name of the variable to read from the netCDF data

  • ilon: integer, order for the longitude dimension of the variable. Example: if the variable "precip" has the dimension order [Lat, Lon] then ilon must be 2

  • ilat: integer, order for the latitude dimension of the variable.

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

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.