Description Usage Arguments Author(s) Examples
Wrap an array in a grid object (as defined in the 'loadeR' bundle)
1 2 | gridDataWrapper(data, copy_from_grid = NULL, dimNames = NULL, varname, lat,
lon, timeVector = NULL, timeStart, intervalLength)
|
data |
N-dimensional Array. The number of dimensions depends on the type of gridded data: 4 in case of ensemble data, 3 in the other cases. |
copy_from_grid |
Existing grid object to use for the definition of all the parameters except |
dimNames |
A vector containing the name of the dimensions contained into |
varname |
The name of the variable contained into |
lat |
Vector with latitude values (assuming latLonProjection) |
lon |
Vector with longitude values (assuming latLonProjection) |
timeVector |
If specified it contains all the time stamps for the |
timeStart |
The time stamp of the first value of |
intervalLength |
The length (e.g. "1 day") of each time step |
M. De Felice
1 2 3 4 5 | ## Not run:
# Averaging two grid data fields (g1 and g2)
g_average = gridDataWrapper(data = 0.5*g1$Data + 0.5 * g2$Data, copy_from_grid = g1)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.