.. highlightlang:: us .. index:: GridGetNCID .. _gridgetncid: GridGetNCID =========== .. us.tag GridGetNCID NOTREADYENGLISH New330 Grid :ref:`GridGetNCID` returns the current ncid or in case of an error -1. .. function:: ncid = GridGetNCID() .. us.return **Return Value** *ncid* is the handle of an open NC file. .. us.comment **Comment** All functions starting with ``Grid`` access the data browser. If the browser dialog isn't open, these functions return an invalid value. The nc file should not be closed with :ref:`nc_close` function. If you need to close the file use :ref:`GridCloseNCID` instead. .. seealso:: :ref:`overview-netcdf-files`, :ref:`GridCloseNCID` :sub:`id-285315`