Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

get_time

Convert time steps to POSIXct.


Description

Times in NetCDF data are generally given in form of a time step and a time unit. This function uses both information to convert them to POSIXct time values. For the unit 'months since' an approximation of 30.4375 d is used!

Usage

get_time(time.unit, time.step)

Arguments

time.unit

Time unit, which is conform to the CF convention (character).

time.step

Time steps in form of a numeric or integer vector.

Value

Time in form of POSIXct is returned. Default time zone is UTC.

Examples

get_time(time.unit = "hours since 1987-01-01", time.step = 249109)
get_time(time.unit = "days since 1987-01-01", time.step = 9109)

cmsafops

Tools for CM SAF NetCDF Data

v1.1.1
GPL (>= 3)
Authors
Steffen Kothe [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.