Read and write metadata information of a NetCDF inventory file

meta(filename = NA, variable = 0, attname = NA, action = "read",
  value = NA, verbose = F)

Arguments

filename

file name

variable

variable name, 0 to global and "?" to ask all names

attname

attribute names

action

Read or write attribute (NA for get all attnames)

value

value to write

verbose

display additional information

Examples

nc <- paste0(system.file("extdata",package="inventory"),"/small.nc") meta(nc)
#> global attributes: #> Title Author Creation Description Reference institution projection Conventions source
meta(nc,attname = "Title")
#> global attribute Title: #> Emissions
meta(nc,variable = "?")
#> date so2 NO
meta(nc,variable = "so2")
#> variable so2 attritutes: #> units long_name standard_name molecular_weight molecular_weight_units
meta(nc,variable = "so2",attname = "long_name")
#> so2 attribute long_name: #> so2 emissions