Previous: Variable-Length Types Next: Using Variable Length Types Table of contents Frames 2011 Unidata NetCDF Workshop > Using Groups and NetCDF-4 Types

16.18 Example of Variable-Length Types
This examples shows a 1D VLEN array.

A simple 1D VLEN array can representing a ragged array (rows of differing lengths):

ragged array in vlens.cdl Show popup

Here is C code that creates the corresponding netCDF file, generated by running:

  ncgen -k 3 -l C vlens.cdl > vlens.c

vlens.c Show popup

Notes on netCDF-4 Variable-Length Types

 


Previous: Variable-Length Types Next: Using Variable Length Types Table of contents Frames 2011 Unidata NetCDF Workshop > Using Groups and NetCDF-4 Types