public bool IsVariableUnlimited(NetCdfVariable ncVariable) { int nDims; CheckResult(NetCdfWrapper.nc_inq_varndims(id, ncVariable, out nDims)); var dimIds = new int[nDims]; CheckResult(NetCdfWrapper.nc_inq_vardimid(id, ncVariable, dimIds)); int unlimitedDimId; CheckResult(NetCdfWrapper.nc_inq_unlimdim(id, out unlimitedDimId)); return(dimIds.Contains(unlimitedDimId)); }