Previous: Uses of Enumerations Next: Enum Example Table of contents Frames User guide
2009 Unidata NetCDF Workshop for Developers and Data Providers > User Defined Types in NetCDF-4

23.8 Enum CDL Example
A CDL example shows enumerations which classify cloud types.
types:
  byte enum cloud_t {
     Clear = 0, Cumulonimbus = 1, Stratus = 2, 
     Stratocumulus = 3, Cumulus = 4, Altostratus = 5, 
     Nimbostratus = 6, Altocumulus = 7, Missing = 127
     };
dimensions:
     time = unlimited;
variables:
     cloud_t primary_cloud(time);
        cloud_t primary_cloud:_FillValue = Missing;
data:
     primary_cloud = Clear, Stratus, Cumulus, Missing, ...;

 


Previous: Uses of Enumerations Next: Enum Example Table of contents Frames User guide
2009 Unidata NetCDF Workshop for Developers and Data Providers > User Defined Types in NetCDF-4