Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

timcumsum

Accumulate data of NetCDF file.


Description

Computes the accumulation of the given variable over time. The resulting outfile has the same dimensions as the infile.

Usage

timcumsum(
  var,
  infile,
  outfile,
  nc34 = 4,
  overwrite = FALSE,
  na_replace = "mean",
  verbose = FALSE
)

Arguments

var

Name of variable in infile (character).

infile

Character containing file name or path of input file.

outfile

Character containing file name or path of output file. If NULL, the input file is directly edited instead.

nc34

NetCDF version of output file. If nc34 = 3 the output file will be in NetCDFv3 format (numeric). Default output is NetCDFv4.

overwrite

Logical; should existing output file be overwritten? If outfile is NULL, this parameter is ignored.

na_replace

Replacing NA values with either 'mean' or 'previous' for monthly mean or previous value, respectively (character).

verbose

logical; if TRUE, progress messages are shown


cmsafops

Tools for CM SAF NetCDF Data

v1.1.1
GPL (>= 3)
Authors
Steffen Kothe [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.