R/cdo-smooth.R

Defines functions cdo_smooth

Documented in cdo_smooth

## This file was created automatically, do not edit by hand.
#' @param ifile String with the path to the input file.
#' @param ofile String with the path to the output file.
#' @param nsmooth INTEGER - Number of times to smooth, default nsmooth=1
#' @param radius STRING - Search radius, default radius=1deg (units: deg, rad, km, m)
#' @param maxpoints INTEGER - Maximum number of points, default maxpoints=<gridsize>
#' @param weighted STRING - Weighting method, default weighted=linear
#' @param weight0 FLOAT - Weight at distance 0, default weight0=0.25
#' @param weightR FLOAT - Weight at the search radius, default weightR=0.25
#'
#' @export
#' @rdname smooth
cdo_smooth <- function(ifile, nsmooth = NULL, radius = NULL, maxpoints = NULL, weighted = NULL, weight0 = NULL, weightR = NULL, ofile = NULL) {
  cdo(operator = operators$smooth,
      input = list(ifile),
      params = list(nsmooth = nsmooth, radius = radius, maxpoints = maxpoints, weighted = weighted, weight0 = weight0, weightR = weightR),
      output = c(ofile)
  )
}

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.