View source: R/scanVarDimensions.R
scanVarDimensions | R Documentation |
Goes through variable dimensions and retrieves information for the inventory.
This is a sub-routine of dataInventory.NetCDF
, makeSubset
.
scanVarDimensions(grid)
grid |
A java object of the class ‘ucar.nc2.dt.grid.GeoGrid’ |
All possible dimensions of a gridded datasets are searched and included if existing. This is done following the canonical dimension ordering [runtime, member, time, level, lat, lon], although the function does not assume this ordering and therefore non-standard orderings should be adequately treated (this might be the case for instance when creating a new aggregation dimension via NcML).
In case of existing vertical levels for a given dataset, all possible dataset level values are scanned one by one and those that do not exist for that particular variable are removed. This way, the inventory returns only the non-empty level values for each variable.
In case of horizontal 2D axes, the coordinate values are truncated to 1D for conciseness in fisrt instance. However, the coordinate values of the 2D dimensions are listed in a lower level element of the Dimensions list.
a list of length N, being N the number of dimensions defining the grid shape.
J. Bedia, S. Herrera
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.