R/cdo-splitsel.R

Defines functions cdo_splitsel

Documented in cdo_splitsel

## This file was created automatically, do not edit by hand.
#' @param ifile String with the path to the input file.
#' @param obase String with the basename of the output files.
#' @param nsets INTEGER - Number of input timesteps for each output file
#' @param noffset INTEGER - Number of input timesteps skipped before the first timestep range (optional)
#' @param nskip INTEGER - Number of input timesteps skipped between timestep ranges (optional)
#'
#' @export
#' @rdname splitsel
cdo_splitsel <- function(ifile, nsets = NULL, noffset = NULL, nskip = NULL, obase = NULL) {
  cdo(operator = operators$splitsel,
      input = list(ifile),
      params = list(nsets = nsets, noffset = noffset, nskip = nskip),
      output = c(obase)
  )
}

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.