R/cdo-pack.R

Defines functions cdo_pack

Documented in cdo_pack

## 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 printparam BOOL - Print pack parameters to stdout for each variable
#' @param filename STRING - Read pack parameters from file for each variable\[format: name=<> add_offset=<> scale_factor=<>\]
#'
#' @export
#' @rdname pack
cdo_pack <- function(ifile, printparam = NULL, filename = NULL, ofile = NULL) {
  cdo(operator = operators$pack,
      input = list(ifile),
      params = list(printparam = printparam, filename = filename),
      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.