ncgen [-b] [-c] [-f] [-n] [-o output_file]
input_file
Where:
-b
-o
option is
absent, a default file name will be constructed from the netCDF name
(specified after the netcdf keyword in the input) by appending the
.nc
extension. If a file already exists with the
specified name, it will be overwritten.
-c
-f
-o outputfile
-b
option. (This option is necessary because
netCDF files cannot be written directly to standard output, since
standard output is not seekable.)
-n
-b
option, except creates netCDF file with the
obsolete .cdf
extension instead of the .nc
extension, in the absence of an output filename specified by the
-O
option. This option is only supported for backward
compatibility.
Examples
foo.cdl
:
ncgen foo.cdl
foo.cdl
, generate an equivalent binary
netCDF file named x.nc
:
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 x.nc
:
ncgen -c -o x.nc foo.cdl