Skip to contents

nc_deadlines returns a vector of deadlines included in the netCDF archive by reading the time dimension and its corresponding units attribute.

Usage

nc_deadlines(x)

Arguments

x

Path to netcdf file or NetCDF object.

Value

A vector of "POSIXct" objects.

Examples

if (FALSE) {
# In the case the input object is a file:
nc_deadlines("extdata/conc_farm.nc")

# In the case the input object is a 'NetCDF' object:
concfile <- c("extdata/conc_farm.nc")
nc <- RNetCDF::open.nc(concfile)
nc_deadlines(nc)
}