modifyNcdfWriteTime: modifyNcdfWriteTime

Description Usage Arguments Details Value Author(s)

View source: R/modifyNcdfWriteTime.R

Description

set the values of the time dimension in a netCDF file

Usage

1
2
3
4
modifyNcdfWriteTime(ncdf.obj, date.vec = "auto", 
    origin = ISOdatetime(1582, 10, 15, 0, 
        0, 0, tz = "UTC"), write.to.ncdf = TRUE, 
    timeVar = "time", user = Sys.info()["user"])

Arguments

ncdf.obj

character string or ncdf connection: ncdf file for which to convert the dates

date.vec

POSIXct vector: date vectors for the time dimension. If set to 'auto', this is tried to be extracted from the ncdf file. This supports converting the time unit in a netCDF file to a days since origin.

origin
write.to.ncdf

logical: whether writing time to the ncdf file.

timeVar

variable holding the values of time

user

user name in history attribute entry

Details

Set a time vector in a ncdf file to a standardized format which is readable by most software. It transfers the time vector to days since the start of the Gregorian calendar.

Value

(invisibly): the time vector in ncdf-format. Additionally the time vector is written to the respective file.

Author(s)

Jannis v. Buttlar, Thomas Wutzler


bgctw/ncdfTools documentation built on Jan. 29, 2020, 1:16 p.m.