extract_unit: Extract units for each variable in a netcdf file

Description Usage Arguments Examples

Description

Extract units for each variable in a netcdf file

Usage

1
extract_unit(nc, attribute = "units")

Arguments

nc

connection to the netcdf file to read in.

attribute

either a character string of the name of the attribute (deault = "units") or the attribute id (starting with 0).

Examples

1
2
nc <- system.file(package = "ecocat", "extdata/volume.nc")
extract_unit(nc)

alketh/ecocat documentation built on May 10, 2019, 9:20 a.m.