View source: R/support_functions.R
get.data | R Documentation |
Retrieve and convert data to correct units and dimensions.
get.data(f, v, subset, src.units, dim.axes)
f |
The NetCDF file to retrieve data from; an object of class |
v |
The variable to retrieve data from. |
subset |
The subset to retrieve. |
src.units |
The source units to convert data from. |
dim.axes |
The dimension axes to be used. |
dest.units |
The destination units to convert to. |
This function retrieves NetCDF data for the specified subset from the specified file and variable; converts from src.units
to dest.units
, transposes the data to (T, S) dimensionality,
and returns the result.
The retrieved and massaged data.
get.data(f, "pr", list(Y=3), "kg m-2 s-1", "kg m-2 s-1", c(X="lon",Y="lat",T="time"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.