ncgen [-b] [-c] [-f] [-n] [-o output_file] input_file
-ooption is absent, a default file name will be constructed from the netCDF name (specified after the netcdf keyword in the input) by appending the
.ncextension. If a file already exists with the specified name, it will be overwritten.
-boption. (This option is necessary because netCDF files cannot be written directly to standard output, since standard output is not seekable.)
-boption, except creates netCDF file with the obsolete
.cdfextension instead of the
.ncextension, in the absence of an output filename specified by the
-Ooption. This option is only supported for backward compatibility.
foo.cdl, generate an equivalent binary netCDF file named
ncgen -o x.nc foo.cdl
foo.cdl, generate a C program containing the netCDF function invocations necessary to create an equivalent binary netCDF file named
ncgen -c -o x.nc foo.cdl