meta: Read and write metadata

Description Usage Arguments Examples

View source: R/meta.R

Description

Read and write metadata information of a NetCDF inventory file

Usage

1
2
3
4
5
6
7
8
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

1
2
3
4
5
6
nc <- paste0(system.file("extdata",package="inventory"),"/small.nc")
meta(nc)
meta(nc,attname = "Title")
meta(nc,variable = "?")
meta(nc,variable = "so2")
meta(nc,variable = "so2",attname = "long_name")

Schuch666/inventory documentation built on Jan. 31, 2022, 4:37 a.m.