MPAS_GRID_DISPLAY
Display MPAS Grids


MPAS_GRID_DISPLAY is a directory of MATLAB programs which read information from an MPAS Grid file, stored in NETCDF format, and display the main (mainly hexagonal) mesh or the dual triangulation.

Usage:

grid_cells ( filename )
where displays a plot of the polygonal faces of the primal mesh;

triangulation_faces ( filename )
where displays a plot of the triangular faces of the dual mesh;

Licensing:

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

Related Programs:

GRID_DISPLAY, a MATLAB library which can display a 2D or 3D grid or sparse grid.

MESH_DISPLAY, a MATLAB program which reads data defining a polygonal mesh and displays it, with optional numbering.

MPAS_DRAW, a C++ program which reads an MPAS NETCDF file and allows the interactive user to select grid and solution information to be displayed using OpenGL.

MPAS_GRID_DISPLAY_OPENGL, C++ programs which can read an MPAS NETCDF grid file and display the primary polygonal mesh or the dual triangular mesh, using OpenGL.

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.

NETCDF_MPAS, a MATLAB library which reads MPAS grid data stored as NETCDF files.

PLY_DISPLAY, a MATLAB program which displays an image of a 3D graphics file in PLY format;

POLYGONAL_SURFACE_DISPLAY, a MATLAB program which reads data defining a polygonal surface and displays it.

QUAD_SURFACE_DISPLAY, a MATLAB program which reads files defining a 3D quadrilateral mesh surface and displays it within MATLAB.

SPHERE_XYZF_DISPLAY, a MATLAB program which reads XYZF information defining points and faces in 3D, and displays a unit sphere and the points in the MATLAB graphics window.

TRI_SURFACE_DISPLAY, a MATLAB program which reads data defining a triangular mesh of a 3D surface and displays it.

XYZF_DISPLAY, a MATLAB program which reads XYZF information defining points and faces in 3D, and displays an image using OpenGL.

Reference:

  1. Russ Rew, Glenn Davis, Steve Emmerson, Harvey Davies, Ed Hartne,
    The NetCDF User's Guide,
    Unidata Program Center, March 2009,
    netcdf.pdf,
  2. 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.NC is a mesh on the sphere.

X1.2562.GRID.NC is a mesh on the sphere.

You can go up one level to the MATLAB source codes.


Last revised on 27 December 2010.