nc_climatology: Calculates a climatology from a netcdf file

Description Usage Arguments Value

View source: R/climatology.R

Description

This function allows you to calculate climatological monthly statistics. Data must be monthly

Usage

1
2
3
nc_climatology(ff, period = "seasonal", stat = "mean", vars = NULL,
  out_file = NULL, zip_file = FALSE, cdo_output = FALSE,
  overwrite = FALSE, ...)

Arguments

ff

Target netcdf file

period

Type of climatology. Must be one of yearly, monthly or seasonal.

stat

Statistic you want calculated. Options are min, max, range, sum, mean, var, std. Default is mean. Only min, max and mean allowed for yearly currently.

vars

Select the variables you want. If this is not given, stats will be calculated for all variables.

out_file

The name of the file output. If this is not stated, a data frame will be the output.

zip_file

Do you want any output file to be zipped to save space? Default is FALSE.

cdo_output

set to TRUE if you want to see the cdo output

overwrite

Do you want to overwrite out_file if it exists? Defaults to FALSE

...

optional arguments to be sent to nc_remap if you need to remap the netcdf prior to calculating the stat

Value

data frame or netcdf file.


r4ecology/rcdo documentation built on July 21, 2019, 9 p.m.