Netcdf create

From VLECK
Jump to: navigation, search

Creates 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_Create(filename; mode);

Return Value

a handle to the file

Parameters

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


create modes

The create mode flag. The following flags are available:

NC_NOCLOBBER (do not overwrite existing file)

NC_SHARE (limit write caching - netcdf classic files only)

NC_64BIT_OFFSET (create 64-bit offset file)

NC_NETCDF4 (create netCDF-4/HDF5 file)

NC_CLASSIC_MODEL (enforce netCDF classic mode on netCDF-4/HDF5 files)

NC_DISKLESS (store data only in memory)

NC_MMAP (use MMAP for NC_DISKLESS)

NC_WRITE

Example

h=netcdf_create("abc.nc"; "nc_netcdf4","nc_noclobber");

See also