nc_diminq_size returns the size of a dimension when given its ID.
Return Value
nSize is the size of the dimension (number of data points). If an error occurs, this function returns -1.
Parameters
Identifies the netCDF file.
dimid is the ID of a dimension.
See also
id-660030