nc_atts: NetCDF attributes

View source: R/nc_att.R

nc_attsR Documentation

NetCDF attributes

Description

All attributes in the file, globals are treated as if they belong to variable 'NC_GLOBAL'. Attributes for a single variable may be returned by specifying 'variable' - 'NC_GLOBAL' can stand in to return only those attributes.

Usage

nc_atts(x, variable = NULL, ...)

## S3 method for class 'NetCDF'
nc_atts(x, variable = NULL, ...)

## S3 method for class 'character'
nc_atts(x, variable = NULL, ...)

Arguments

x

filename or handle

variable

optional single name of a variable, or 'NC_GLOBAL'

...

ignored

Value

data frame of attributes

Examples

f <- system.file("extdata", "S2008001.L3m_DAY_CHL_chlor_a_9km.nc", package = "ncmeta")
nc_atts(f)

hypertidy/ncmeta documentation built on March 26, 2024, 4:22 a.m.