Netcdf open

From VLECK
Jump to: navigation, search

Opens a NetCdf file for reading or writing. When you're done with the file, it should be closed with NetCdf_Close to release its system resources.

Syntax

Result = NetCdf_Open(filename; mode);

Return Value

a handle to the file

Parameters

filename string containing a valid path and filename
mode string vector containing the open mode (see below)


open modes

The open mode flag. The following flags are available:

NC_SHARE (limit write caching - netcdf classic files only)

NC_DISKLESS (store data only in memory)

NC_WRITE

NC_NOWRITE.

Example

 
hFile             = NetCdf_Open(filename; "NC_NOWRITE");
.
.
NetCdf_Close(hFile);
 
h=netcdf_open("http://opendap.cgi-systems.nl/thredds/dodsc/projecten/t4f/sfma3.nc"; "nc_nowrite");
info=netcdf_getmetadata(h);
NetCdf_Close(h);



See also