convertDateNcdf2R: Convert netCDF time vector to POSIXct R date object
Description
This function converts a time vector from a netCDF file or a vector of Julian days (or seconds, minutes, hours)
since a specified origin into a POSIXct R vector.
numeric vector or netCDF connection: either a number of time units since
origin or a netCDF file connection, In the latter case, the time
vector is extracted from the netCDF file, This file, and especially the
time variable, has to follow the CF netCDF conventions.
units
character string: units of the time source. If the source
is a netCDF file, this value is ignored and is read from that file.
origin
POSIXct object:
Origin or day/hour zero of the time source. If the source
is a netCDF file, this value is ignored and is read from that file.