Navigation

Operators and Keywords

Function List:

C++ API

Loadable Function: ncvar = ncbyte( dimname_1,...,dimname_N)

creates a netcdf variable of type ncbyte. dimname_1 is the name of the 1st netcdf dimension, and so on. The return value is a netcdf variable object and must be affected to a netcdf file, before its content can be defined.

Example:

nc = netcdf('test.nc','w');
nc('lon') = 360;
nc('lat') = 180;
nc{'var'} =  ncbyte('lon','lat');

A new 360 by 180 netcdf variable named ’var’ of type byte is created in file ’test.nc’.

See also: netcdf.

Package: octcdf