Loadable Function: ncid = netcdf_create(filename,mode)

Creates the file named filename in the mode mode which can have the following values: "clobber" (overwrite existing files), "noclobber" (prevent to overwrite existing files) "64bit_offset" (use the 64bit-offset format), "netcdf4" (use the NetCDF4, i.e. HDF5 format) or "share" (concurrent reading of the dataset). mode can also be the numeric value return by netcdf_getConstant. In the later-case it can be combined with a bitwise-or.

Example

mode =  bitor(netcdf.getConstant("classic_model"), ...
              netcdf.getConstant("netcdf4")); 
ncid = netcdf.create("test.nc",mode); 

See also: netcdf_close.

Package: netcdf