create_variable_definitions | R Documentation |
Given a data frame as input, create a list of variable definitions usable by the function create_efts_variables
to create netCDF variables.
create_variable_definitions(dframe)
dframe |
a data frame, one line is one variable definition. Must have at least the following column names: 'name', 'longname', 'units', 'missval', 'precision', 'type', 'type_description', 'location_type' |
a list of length equal to the number of rows in the input data frame
See
create_efts
for examples
varsDef = data.frame(name=letters[1:3], stringsAsFactors=FALSE) varsDef$longname=paste('long name for', varsDef$name) varsDef$units='mm' varsDef$missval=-999.0 varsDef$precision='double' varsDef$type=2 varsDef$type_description='accumulated over the previous time step' varsDef$location_type='Point' str(create_variable_definitions(varsDef))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.