Read MPAS NETCDF Grid Data

NETCDF_MPAS is a C library which reads an MPAS NETCDF grid file.


The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.


NETCDF_MPAS is available in a C++ version and a MATLAB version.

Related Programs:

CDL, a data directory which contains examples of CDL files, a text version of NETCDF files created by the NCDUMP program;

GFD2, a dataset directory which contains geophysical data, stored in NETCDF format.

MPAS_GRID_DISPLAY, MATLAB programs which can read an MPAS NETCDF grid file and display the primary polygonal mesh or the dual triangular mesh.

NETCDF, a data directory which contains examples of NETCDF files, a format for the interchange of scientific data.

NETCDF_MPAS, a data directory which contains examples of MPAS grid data stored as NETCDF files.


  1. The MPAS home page, .
  2. Russ Rew, Glenn Davis, Steve Emmerson, Harvey Davies, Ed Hartne,
    The NetCDF User's Guide,
    Unidata Program Center, March 2009,
  3. Todd Ringler, John Thuburn, Joseph Klemp, William Skamarock,
    A unified approach to energy conservation and potential vorticity dynamics for arbitrarily-structured C-grids,
    Journal of Computational Physics,
    Volume 229, Number 9, 1 May 2010, pages 3065-3090.

Source Code:

Examples and Tests:

X1.642.GRID is a dataset of 642 cells used by the example.

List of Routines:

You can go up one level to the C++ source codes.

Last revised on 01 January 2010.