get_date_time: Get dates and times from NetCDF type date format.

Description Usage Arguments Value Examples

View source: R/get_date_time.R

Description

Get dates and times from NetCDF type date format.

Usage

1

Arguments

times

Timesteps from netcdf data (numeric).

unit

Unit from netcdf data (character).

Value

A data frame with the columns years, months, days and times. Careful: The parts of the date are of numeric type, but the times are stored as characters (levels).

Examples

1
2
3
4
date_time <- get_date_time(times = c(159191, 5991820), 
 unit = "minutes since 1980-05-07")
date_time
date_time$years

cmsafops documentation built on Feb. 19, 2021, 1:07 a.m.