NCDF_DIMDEF

The NCDF_DIMDEF function defines a dimension in a netCDF file given its name and size. If successful, the dimension ID is returned.

Calling Sequence

Result = NCDF_DIMDEF( Cdfid, DimName, Size )

Arguments

Cdfid

The netCDF ID, returned from a previous call to NCDF_OPEN or NCDF_CREATE.

DimName

A scalar string containing the name of the dimension being defined.

Size

The size of the dimension. Size can be any scalar expression. If the UNLIMITED keyword is used, the Size parameter should be omitted.

Keywords

UNLIMITED

Set this keyword to create a dimension of unlimited size. Note that only one dimension in a netCDF file can be unlimited.

Example

See NCDF_VARPUT .