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 out my profile on reddit Check me out on Facebook

Mitch Richling: NetCDF Example Programs

Author: Mitch Richling
Updated: 2023-11-15

Table of Contents

1. Introduction

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.

Get it all on github: https://github.com/richmit/ex-NetCDF/

2. The basics: Reading and Writing

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

3. Misc

ncHeaderDump.c
How to query a file for various bits of information.

4. Utilities

mjrNetCDF.c & mjrNetCDF.h
Some simple utilities to make the examples less difficult to read.