The NetCDF Tutorial

Next: , Previous: (dir), Up: (dir)


NetCDF Tutorial

This tutorial aims to give a quick and painless introduction to netCDF. Then again, the guillotine was also intended to be painless.

The first chapter, “What is NetCDF?,” covers the basics concepts of netCDF. Read this to understand the netCDF data model.

The second chapter, “Example Programs,” contains three sets of examples of increasing complexity. The example programs are provided for each of four netCDF API languages, C, C++, F77, and F90.

The final chapter, “The Functions You Need in NetCDF-3,” provides a quick reference to the important functions in each API, with hyper-links to the full documentation of each function.

This document applies to netCDF version 3.6.2; it was last updated on 19 February 2007.

--- The Detailed Node Listing ---

What is NetCDF?

Example Programs

The simple_xy Example

simple_xy_wr.c and simple_xy_rd.c

simple_xy_wr.f and simple_xy_rd.f

simple_xy_wr.f90 and simple_xy_rd.f90

simple_xy_wr.cpp and simple_xy_rd.cpp

The sfc_pres_temp Example

sfc_pres_temp_wr.c and sfc_pres_temp_rd.c

sfc_pres_temp_wr.f and sfc_pres_temp_rd.f

sfc_pres_temp_wr.f90 and sfc_pres_temp_rd.f90

sfc_pres_temp_wr.cpp and sfc_pres_temp_rd.cpp

The pres_temp_4D Example

pres_temp_4D_wr.c and pres_temp_4D_rd.c

pres_temp_4D_wr.f and pres_temp_4D_rd.f

pres_temp_4D_wr.f90 and pres_temp_4D_rd.f90

pres_temp_4D_wr.cpp and pres_temp_4D_rd.cpp

The Functions You Need in NetCDF-3

Creating New Files and Metadata, an Overview

Numbering of NetCDF IDs

Reading NetCDF Files of Unknown Structure

Reading and Writing Subsets of Data