This example is an unrealistically simple netCDF file, to demonstrate the minimum operation of the netCDF APIs.
Users should seek to make their netCDF files more self-describing than this primitive example.
As in all the netCDF tutorial examples, this example file can be created by C and by ncgen, which creates it from a CDL script. Both ncgen and the C example create identical files, “simple_xy.nc.”
The simple_xy.nc data file contains two dimensions, “x” and “y”, and one netCDF variable, “data.”
The CDL for this example is shown below. For more information on ncdump and ncgen see NetCDF Utilities.