ncgen

ncgen [-b] [-c] [-f] [-n] [-o output_file] input_file

Where:

Examples

  1. Check the syntax of the CDL file foo.cdl:

    ncgen foo.cdl

  2. From the CDL file foo.cdl, generate an equivalent binary netCDF file named x.nc:

    ncgen -o x.nc foo.cdl

  3. From the CDL file foo.cdl, generate a C program containing the netCDF function invocations necessary to create an equivalent binary netCDF file named x.nc:

    ncgen -c -o x.nc foo.cdl