character string or netCDF connection: netCDF 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 netCDF file
origin
character string: origin to be used for the time vector. This start of the
Gregorian calendar should be kept to avoid possible mistakes due to flawed
conversions.
write.to.ncdf
logical: whether to write the time vector to the netCDF file.
Value
Details
This function sets a time vector in a netCDF 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.