NCL Home> Application examples> File IO || Data files for some examples

Example pages containing: tidbits | resources | functions/procedures

Output netCDF

There are two ways to output netCDF data.

Method 1 (Commonly used. Simple but, possibly, inefficient method).
  • Sends the data to the output file without any file predefinition
  • Speed depends on number of variables, dimension sizes of variables,
    presence of an UNLIMITED dimension etc
Method 2 (efficient method)
  • Enter "Define Mode" prior to predefining file contents
  • User explicitly predefines the the coordinate variables of the output file, the dimension sizes of the output variables, and optionally, the attributes of the output variables.