Jump to my Home Page Send me a message Check out stuff on GitHub Check out my photography on Instagram Check out my profile on LinkedIn Check me out on Facebook

NetCDF Example Programs

Below are a couple simple NetCDF programs illustrating the most basic, and commonly used, functionality of the NetCDF library. They should be useful for the NetCDF beginner... The makefile is here.

The basics: Reading and Writing

Minimal example showing how to create a well annotated file and fill it up with data.
How to read an existing file


How to query a file for various bits of information.


mjrNetCDF.c mjrNetCDF.h
Some simple utilities to make the examples less difficult to read.
© 2009 Mitch Richling