meta.Rd
Read and write metadata information of a NetCDF inventory file
meta(filename = NA, variable = 0, attname = NA, action = "read", value = NA, verbose = F)
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 |
nc <- paste0(system.file("extdata",package="inventory"),"/small.nc") meta(nc)#> global attributes: #> Title Author Creation Description Reference institution projection Conventions sourcemeta(nc,attname = "Title")#> global attribute Title: #> Emissionsmeta(nc,variable = "?")#> date so2 NOmeta(nc,variable = "so2")#> variable so2 attritutes: #> units long_name standard_name molecular_weight molecular_weight_unitsmeta(nc,variable = "so2",attname = "long_name")#> so2 attribute long_name: #> so2 emissions