nc.get.dim.axes.from.names {ncdf4.helpers} | R Documentation |
Infer dimension axes from names of dimensions
Description
Infer dimension axes from names of dimensions.
Usage
nc.get.dim.axes.from.names(f, v, dim.names)
Arguments
f |
The file (an object of class |
v |
The name of a variable |
dim.names |
Optionally, dimension names (to avoid looking them up repeatedly) |
Details
This function makes educated guesses as to what axes dimensions may apply to in the case of files with poor metadata.
Value
A named character vector mapping dimension names to axes.
Examples
## Get dimension axes from file by inferring them from dimension names
## Not run:
f <- nc_open("pr.nc")
dim.axes <- nc.get.dim.axes.from.names(f, "pr")
nc_close(f)
## End(Not run)
[Package ncdf4.helpers version 0.3-6 Index]