2011 Unidata NetCDF Workshop > Using Groups and NetCDF-4 Types
16.11 Example with Compound Types in netCDF-4
An example use of compound types for observational data in netCDF-4.
example CDL
This example demonstrates several netCDF-4 features:
- User-defined compound types
- Use of multiple unlimited dimensions
- Convention for assigning attributes to compound type
members
Here is C code that creates the corresponding netCDF file, generated
by running:
ncgen -k 3 -l C odnc4.cdl > odnc4.c
example.c
2011 Unidata NetCDF Workshop > Using Groups and NetCDF-4 Types