Learn R Programming

cmsafops (version 1.3.0)

get_date_time: 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)

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).

Arguments

times

Timesteps from netcdf data (numeric).

unit

Unit from netcdf data (character).

Examples

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

Run the code above in your browser using DataLab