Description Usage Arguments Details Value Examples
Get dimension corresponding to a given axis.
1 | nc.get.dim.for.axis(f, v, axis)
|
f |
The file (an object of class |
v |
The source variable: a string naming a variable in a file or an object of class |
axis |
The axis to retrieve the dimension for: a string consisting of either X, Y, Z, T, or S. |
This function returns the dimension (of class 'ncdim4') corresponding to the specified axis (X, Y, Z, T, or S).
An object of class ncdim4
if a dimension is found for the specified axis; NA
otherwise.
1 2 3 4 5 6 7 | ## Get dimension for X axis
## Not run:
f <- nc_open("pr.nc")
x.axis.dim <- nc.get.dim.axes.from.names(f, "pr", "X")
nc_close(f)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.