Description Usage Arguments Details Value Author(s)
View source: R/modifyNcdfWriteTime.R
set the values of the time dimension in a netCDF file
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"])
|
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 |
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.
(invisibly): the time vector in ncdf-format. Additionally the time vector is written to the respective file.
Jannis v. Buttlar, Thomas Wutzler
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.