2011 Unidata NetCDF Workshop > Using Groups and NetCDF-4 Types
16.14 Enum CDL Example
A CDL example shows enumerations which classify cloud types.
clouds.cdl example
- Note that each value is stored as a single byte, but ncdump
shows the full value labels in the corresponding CDL text.
- The "_" symbol is how ncdump displays missing values.
- Values of enum type may be useful as members of compound types.
Here is C code that creates the corresponding netCDF file, generated
by running:
ncgen -k 3 -l C clouds.cdl > clouds.c
example.c
2011 Unidata NetCDF Workshop > Using Groups and NetCDF-4 Types