Extracts a selected parameter from the netCDF file and formats it into a dataframe.
Arguments
- 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.
logical; Print the name and units of the variable extracted, defaults to TRUE