create_variable_definition_dataframe: Create a variables definition data frame

View source: R/variables.R

create_variable_definition_dataframeR Documentation

Create a variables definition data frame

Description

Create a variable definition usable by the function create_variable_definitions to create netCDF variables. The use of this function is not compulsory to create a EFTS netCDF schema, just offered as a convenience.

Usage

create_variable_definition_dataframe(variable_names,
  long_names = variable_names, standard_names = variable_names,
  units = "mm", missval = -9999, precision = "double",
  dimensions = 4L, var_attributes = create_var_attribute_definition())

Arguments

variable_names

character vector, names of the variables

long_names

character vector, long names of the variables (defaults to variable_names if missing)

standard_names

character vector, standard names of the variables (optional, defaults to variable_names)

units

character vector, units for the variable(s)

missval

numeric vector, missing value code(s) for the variable(s)

precision

character vector, precision of the variables

dimensions

character or integer vector, number of dimensions each variable (2, 3 or 4)

var_attributes

a list of named attributes. See create_var_attribute_definition

Value

a data frame suitable for create_variable_definition

See Also

See create_variable_definition and create_efts for examples


jmp75/efts documentation built on Feb. 3, 2023, 2:44 p.m.