|
netcdfpp
Header-only NetCDF C++ wrapper
|
netcdfpp is a small header-only C++ wrapper around the NetCDF-C API. It keeps the NetCDF data model visible while adding RAII file handling, typed reads and writes, convenient lookup helpers, and exceptions that include the affected object path.
The public API lives in include/netcdfpp.h under the netCDF namespace. Operations that call the NetCDF-C library throw netCDF::Exception when the C API reports an error.
Include the project with CMake:
Then include the header:
Common tasks:
Configure the project with CMake and build the docs target:
The HTML output is written to build/docs/html.