.. highlightlang:: us .. _nc_diminq_size: nc_diminq_size ============== .. index:: nc_diminq_size .. us.tag nc_diminq_size ENGLISH NC :ref:`nc_diminq_size` returns the size of a dimension when given its ID. .. function:: nSize = nc_diminq_size(ncid, dimid) .. us.return **Return Value** *nSize* is the size of the dimension (number of data points). If an error occurs, this function returns -1. .. us.params **Parameters** .. uparam:: ncid Identifies the netCDF file. .. uparam:: dimid *dimid* is the ID of a dimension. .. seealso:: :ref:`overview-netcdf-files`, :ref:`nc_create` :sub:`id-660030`