Netcdf Toolkit - netcdf.create


ncid = netcdf.create(filename,mode)

Creates the file named filename in the mode mode.

mode 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);