R/cdo-setgridtype.R

Defines functions cdo_setgridtype

Documented in cdo_setgridtype

## 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 grid STRING - Grid description file or name
#' @param gridtype STRING - Grid type (curvilinear, unstructured, regular, lonlat, projection or dereference)
#' @param gridarea STRING - Data file, the first field is used as grid cell area
#' @param gridmask STRING - Data file, the first field is used as grid mask
#' @param projparams STRING - Proj library parameter (e.g.:+init=EPSG:3413)
#'
#' @export
#' @rdname setgrid
cdo_setgridtype <- function(ifile, grid = NULL, gridtype = NULL, gridarea = NULL, gridmask = NULL, projparams = NULL, ofile = NULL) {
  cdo(operator = operators$setgridtype,
      input = list(ifile),
      params = list(grid = grid, gridtype = gridtype, gridarea = gridarea, gridmask = gridmask, projparams = projparams),
      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.