public IEnumerable <NetCdfDimension> GetAllDimensions()
        {
            int nDims;

            CheckResult(NetCdfWrapper.nc_inq_ndims(id, out nDims));

            // NETCDF-3: dimension has id between 0 and nDims-1:
            return(Enumerable.Range(0, nDims).Select(d => new NetCdfDimension(d)));
        }