public NetCdfDimension GetDimension(string dimName) { int dimId; var status = NetCdfWrapper.nc_inq_dimid(id, dimName, out dimId); return((status == (int)NetCdfWrapper.ResultCode.NC_NOERR) ? new NetCdfDimension(dimId) : null); }