Netcdf close

From VLECK
Jump to: navigation, search

Closes a file that was opened with Netcdf_open or Netcdf_create.

Syntax

return = NetCdf_Close(handle);

Return Value

Returns 1 if the call was successful. If the file could not be closed or the handle is from another filetype NSM throws an exception.

Parameters

handle file handle obtained by Netcdf_open or Netcdf_create


Example

 
hFile             = NetCdf_Open(filename; "NC_NOWRITE");
.
NetCdf_Close(hFile);
1



See also