Description Usage Arguments Details Value References Examples
Get X and Y dimension variables for reduced (compressed) grids.
1 | nc.get.compress.dims(f, v)
|
f |
The file (an object of class |
v |
The name of a variable |
The CF metadata convention defines a method for implementing reduced grids (grids missing pieces of themselves); they call this compression by gathering. This function retrieves the X and Y dimensions for reduced (compressed) grids, returning a list containing the X and Y dimensions.
A list consisting of two members of class ncdim4
: x.dim for the X axis, and y.dim for the Y axis.
1 2 3 4 5 6 7 | ## Get compress dimensions from file.
## Not run:
f <- nc_open("pr.nc")
compress.dims <- nc.get.compress.dims(f, "pr")
nc_close(f)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.