read_time_netCDF: Read and interpret time dimension of a netCDF file with CF 1...

Description Usage Arguments Value

View source: R/ExtractData_ClimateDownscaling.R

Description

Read and interpret time dimension of a netCDF file with CF 1 or larger

Usage

1
read_time_netCDF(filename, tres = c("monthly", "daily"))

Arguments

filename

A character string, the name of a netCDF file; or, the result of nc_open.

tres

A character string. The temporal resolution (time step).

Value

A list with six elements:

calendar

The calendar type, see CF-conventions.

unit

The units of the time dimension, see CF-conventions.

N

The number of steps along the time dimension.

base

The start date of the time dimension.

start

A numeric vector representing the first date with named elements “year” and “month”.

end

A numeric vector representing the last date with named elements “year” and “month”.


DrylandEcology/rSFSW2 documentation built on Aug. 18, 2020, 1:27 p.m.