: [t0, f] = nctimeunits(u)

Parse netCDF time unit.

Inputs

u - netCDF time unit

Outputs

t0 - time offset (days since 31 December 1 BC, as datenum)

f - scaling factor (in days)

See the netCDF CF convention for the structure of the time units. http://cfconventions.org/Data/cf-conventions/cf-conventions-1.6/build/cf-conventions.html#time-coordinate and http://www.unidata.ucar.edu/software/thredds/current/netcdf-java/CDM/CalendarDateTime.html

Package: ncarray