getAttributes: Returns attributes from a netCDF file

Description Usage Arguments Value

View source: R/utils-nc.R

Description

Returns attributes from a netCDF file.

Usage

1
getAttributes(nc, varid = 0, verbose = TRUE)

Arguments

nc

ncdf4 handle.

varid

The variable whose attribute is to be read. Can be a character string with the variable's name or an object of class ncvar4. As a special case, if varid == 0, then a global (file) attribute will be read rather than a particular variable's attribute.

verbose

Logical flag to print attribute structure. Defaults to TRUE.

Value

Invisibly returns a named list of netCDF attributes.


MazamaScience/MazamaSatelliteUtils documentation built on Dec. 17, 2021, 3:20 a.m.