.. highlightlang:: us .. index:: nc_close .. _nc_close: nc_close ======== .. us.tag nc_close ENGLISH NC_open :ref:`nc_close` closes an open nc file. .. function:: r = nc_close(ncid) .. us.return **Return Value** If the function succeeds, the return value is not equal to -1. If the function fails, the return value is -1. .. us.params **Parameters** .. uparam:: ncid Identifies the nc file. .. us.history **History** .. list-table:: :header-rows: 1 * - Version - Description * - R2012.1 (5.40.1) - Reference counter, see :ref:`nc_open`. .. seealso:: :ref:`overview-netcdf-files`, :ref:`nc_create`, :ref:`nc_open`, :ref:`nc_abort` :sub:`id-1050110`