13.0 |
Groups and User Defined Types in NetCDF-4
NetCDF-4 group and user defined types are powerful new netCDF-4 features. |
13.1 |
Using Groups
NetCDF-4 files can organize variables, dimensions, and attributes in hierarchical groups. |
13.2 |
Using User Defined Types
User-defined types can be used to store N-dimensional arrays structs, variable length arrays, enumerations, and opaque data ojects of known size. |
13.3 |
Learning about User Defined Types
Inquiry functions in netCDF-4 allow users to learn about user-defined types when reading a file. |
13.4 |
Using Compound Types
Compound types can store arrays of structures. |
13.5 |
Using Variable Length Types
The variable length type can hold arrays of variable length. |
13.6 |
Using Variable Length Types, Continued
Memory for variable length array data is allocated by the library when they are read, and must be freed by the user. |
13.7 |
Using Enums
The enumerated type can associate labels with names. |
13.8 |
Using the Opaque Type
The opaque type holds arrays of unknown contents, with known size. |
13.9 |
Sea Sounding Example Code
|
13.10 |
Sea Sounding Example
The ncdump output shows the type defined by nc_test4/cdm_sea_soundings.c. |