ncmeta (version 0.0.1)

nc_att: NetCDF attributes

Description

Variable attributes are number 0:(n-1). Global attributes are indexed by -1 or the label "NC_GLOBAL".

Usage

nc_att(x, variable, attribute, ...)

# S3 method for NetCDF nc_att(x, variable, attribute, ...)

# S3 method for character nc_att(x, variable, attribute, ...)

Arguments

x

or file handle

variable

name or index (zero based) of variable

attribute

name or index (zero based) of attribute

...

ignored

Value

data frame of attribute

Details

nc_inq includes the number of global attributes nc_vars includes the number of variable attributes

Examples

Run this code
# NOT RUN {
f <- system.file("extdata", "S2008001.L3m_DAY_CHL_chlor_a_9km.nc", package = "ncmeta")
nc_att(f, 0, 0)
# }

Run the code above in your browser using DataCamp Workspace