The specified dimension name is the name of another existing dimension. The specified length is not greater than zero. The specified length is unlimited, but there is already an unlimited length dimension defined for this netCDF dataset. The specified netCDF ID does not refer to an open netCDF dataset. If ndims is the number of dimensions defined for a netCDF dataset, each dimension has an ID between 1 and ndims.
Case is significant in dimension names.
Otherwise, the returned status indicates an error. The specified netCDF ID does not refer to an open netCDF dataset. This family of functions returns information about a netCDF dimension. Information about a dimension includes its name and its length. The length for the unlimited dimension, if any, is the number of records written so far.