get_date_time {cmsafops}R Documentation

Get dates and times from NetCDF type date format.

Description

Get dates and times from NetCDF type date format.

Usage

get_date_time(times, unit)

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

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

[Package cmsafops version 1.4.0 Index]