create_variable_definition_dataframe: Create a variables definition data frame

Description Usage Arguments Value See Also

View source: R/variables.R

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

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


efts documentation built on May 2, 2019, 3:39 p.m.