The NCDF_DIMDEF function defines a dimension in a NetCDF file given its name and size.

Examples


See NCDF_VARPUT.

Syntax


Result = NCDF_DIMDEF( Cdfid, DimName, Size [, /UNLIMITED] )

Return Value


If successful, the dimension ID is returned.

Arguments


Cdfid

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

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. NetCDF 3 files can have only one unlimited dimension, while NetCDF 4 files can have multiple unlimited dimensions.

Version History


Pre 4.0

Introduced