create_variable_definition: Create a variable definition

View source: R/variables.R

create_variable_definitionR Documentation

Create a variable definition

Description

Create a variable definition usable by the function create_efts_variables to create netCDF variables.

Usage

create_variable_definition(name, longname = "", units = "mm",
  missval = -9999, precision = "double", dim_type = "4",
  var_attribute = create_var_attribute_definition())

Arguments

name

variable name

longname

variable long name

units

variable units

missval

value code for missing data

precision

precision

dim_type

dimension type (EFTS integer code)

var_attribute

list of attributes for the netCDF variable to create

Value

a list

Examples

var_def <- create_variable_definition(name='rain_der', 
  longname='Rainfall ensemble forecast derived from some prediction', units='mm', 
  missval=-9999.0, precision='double', var_attribute=list(type=2L, 
    description="accumulated over the preceding interval", 
    dat_type = "der", dat_type_description="AWAP data interpolated from observations",
    location_type = "Point"))

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