.. highlightlang:: us .. index:: nc_inquire_nvars .. _nc_inquire_nvars: nc_inquire_nvars ================ .. us.tag nc_inquire_nvars ENGLISH NC :ref:`nc_inquire_nvars` returns the number of variables in a nc file. .. function:: nvars = nc_inquire_nvars(ncid) .. us.return **Return Value** If the function succeeds, the return value is the number of variables. If the function fails, the return value is -1. .. us.params **Parameters** .. uparam:: ncid Identifies the nc file. .. seealso:: :ref:`overview-netcdf-files`, :ref:`nc_create` :sub:`id-1157634`