NetCDF file operations

nccreate : Create the file specified by path. The argument cmode must have a value of either NC_CLOBBER or NC_NOCLOBBER. The return value is an identifier for the NetCDF file and is used by subsequent NetCDF function calls.

int nccreate(char* path,int cmode);

ncopen : Open the file specified by path. mode must have value NC_NOWRITE or NC_WRITE. The return value is a NetCDF file identifier.

int ncopen(char* path,int mode);

ncredef : Put an open file into define mode.

int ncredef(int cdfid);

ncendef : Put file into data mode.

int ncendef(int cdfid);

ncclose : Close a NetCDF file.

int ncclose(int cdfid);

ncinquire : Inquire about the number of dimensions in a file, the number of variables, the number of global attributes or the id of the unlimited record dimension. Passing a NULL value for any of the pointers means do not return the associated value.

int ncinquire(int cdfid,int* ndims,int* nvars,int* natts,int* recdim);

ncsync : Synchronize an open file to disk.

int ncsync(int cdfid);

ncabort : Abort any changes to the file if it is in define mode.

int ncabort(int cdfid);

ncsetfill : When ncendef is called, all variables are filled with a fill value by default. To turn this off, call this routine with fillmode set to NC_NOFILL (to turn it back on, use NC_FILL).

int ncsetfill(int cdfid,int fillmode);