Given a netCDF file handle and a list of variable names, return the names of the dimensions that are shared among all variables.

shared_dimensions(cdf, varnames)

Arguments

cdf

a ncdf4 file handle

varnames

variable names to be included in the scan

Value

a list of dimension names that are common to all variables in varnames