Previous: Creation in F90, Up: Creation


3.1.4 Creating a NetCDF File in C++

Create an instance of the NcFile class to create a netCDF file. Use its add_dim and add_var methods to add dimensions and variables. The add_att method is available for both NcFile and NcVar.

Use the NcError class to specify error handling behavior.

For an example creating a simple file see simple_xy_wr.cpp. For a more complex example see pres_temp_4D_wr.cpp.

Class NcFile a C++ class to manipulate netCDF files


Class NcDim a C++ class to manipulate netCDF dimensions


Class NcVar a C++ class to manipulate netCDF variables


Class NcAtt a C++ class to manipulate netCDF attributes


Class NcError a C++ class to control netCDF error handling