load_var | R Documentation |
Extracts a selected parameter from the netCDF file and formats it into a dataframe.
load_var(
ncdf,
var,
return = "list",
dim = "model",
dim_index = 1,
print = TRUE
)
ncdf |
filepath; Name of the netCDF file to extract variable |
var |
character; Name of the variable to be extracted. Must match short name in netCDF file |
return |
character; Must be either list or array |
dim |
character; NetCDF dimensions to extract. Must be either "member" or "model". Defaults to "model". |
dim_index |
numeric; Index of dimension chosen to extract from. Defaults to 1. |
print |
logical; Print the name and units of the variable extracted, defaults to TRUE |
dataframe in the same format as the observation file with the surface in the top column and the bottom in the last column.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.