get_start_date: Retrieves the first date of the time dimension from a netCDF...

Description Usage Arguments Value Examples

View source: R/time_dimensions.R

Description

Retrieves the first date of the time dimension from a netCDF file of daily data, given the units found in the netCDF attribute for the time dimension

Usage

1
get_start_date(time_units, time_zone = "UTC")

Arguments

time_units

The string description of the units of the time dimension e.g. 'days since 1980-01-01' or 'hours since 2010-08-01 13:00:00 +0000'

time_zone

the time zone to use for the returned value.

Value

A POSIXct object, origin of the time dimension as defined

Examples

1
2
3
4
5
x <- "hours since 2015-10-04 00:00:00 +1023"
get_start_date(x)
get_start_date(x,time_zone = 'UTC')
get_start_date(x,time_zone = 'Australia/Perth')
get_start_date(x,time_zone = 'Australia/Canberra')

efts documentation built on May 2, 2019, 3:39 p.m.