scanVarDimensions: Retrieve dimension information for a gridded variable

View source: R/scanVarDimensions.R

scanVarDimensionsR Documentation

Retrieve dimension information for a gridded variable

Description

Goes through variable dimensions and retrieves information for the inventory. This is a sub-routine of dataInventory.NetCDF, makeSubset.

Usage

scanVarDimensions(grid)

Arguments

grid

A java object of the class ‘ucar.nc2.dt.grid.GeoGrid’

Details

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.

Value

a list of length N, being N the number of dimensions defining the grid shape.

Author(s)

J. Bedia, S. Herrera

References

http://www.unidata.ucar.edu/software/thredds/v4.3/netcdf-java/v4.3/javadocAll/ucar/nc2/dt/grid/GeoGrid.html


SantanderMetGroup/loadeR documentation built on July 4, 2023, 4:29 a.m.