R/cdo-setday.R

Defines functions cdo_setday

Documented in cdo_setday

## 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 day INTEGER - Value of the new day
#' @param month INTEGER - Value of the new month
#' @param year INTEGER - Value of the new year
#' @param units STRING - Base units of the time axis (seconds|minutes|hours|days|months|years)
#' @param date STRING - Date (format: YYYY-MM-DD)
#' @param time STRING - Time (format: hh:mm:ss)
#' @param inc STRING - Optional increment (seconds|minutes|hours|days|months|years) \[default: 1hour\]
#' @param frequency STRING - Frequency of the time series (hour|day|month|year)
#' @param calendar STRING - Calendar (standard|proleptic_gregorian|360_day|365_day|366_day)
#' @param shiftValue STRING - Shift value (e.g. -3hour)
#'
#' @export
#' @rdname settime
cdo_setday <- function(ifile, day = NULL, month = NULL, year = NULL, units = NULL, date = NULL, time = NULL, inc = NULL, frequency = NULL, calendar = NULL, shiftValue = NULL, ofile = NULL) {
  cdo(operator = operators$setday,
      input = list(ifile),
      params = list(day = day, month = month, year = year, units = units, date = date, time = time, inc = inc, frequency = frequency, calendar = calendar, shiftValue = shiftValue),
      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.