netcdf_mpas
netcdf_mpas
a MATLAB code which
reads an MPAS NETCDF grid file.
Licensing:
The information on this web page is distributed under the MIT license.
Languages:
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,
a MATLAB code which
reads an MPAS NETCDF grid file and displays 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_gis_read,
a MATLAB code which
reads GIS data stored as a NETCDF file.
netcdf_mpas,
a data directory which
contains examples of MPAS grid data stored as NETCDF files.
Reference:
-
The MPAS home page,
https://mpas-dev.github.io .
-
Russ Rew, Glenn Davis, Steve Emmerson, Harvey Davies, Ed Hartne,
The NetCDF User's Guide,
Unidata Program Center, March 2009.
-
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:
NETCDF_MPAS_TEST calls the tests.
-
netcdf_mpas_test.m,
calls the tests.
-
netcdf_mpas_test01.m,
reads the file and prints some information;
-
netcdf_mpas_test02.m,
extracts information about the number and location of cells.
-
cells.png,
a PNG image of the cells.
-
netcdf_mpas_test03.m,
extracts information about the cell locations and the pairs
of cells that define each line of the triangulation,
allowing us to draw the lines of the triangulation.
-
triangulation_lines.png,
a PNG image of the lines of the triangulation.
-
netcdf_mpas_test04.m,
extracts information about the cell locations and the
three cells that form each triangle,
allowing us to draw the faces of the triangulation.
-
triangulation_faces.png,
a PNG image of the faces of the triangulation.
-
netcdf_mpas_test.txt,
the output file.
X1.642.GRID is a dataset of 642 cells used by the example.
-
x1.642.grid.nc,
an MPAS grid file for a mesh on the sphere,
using 642 nodes, 1280 vertices, 1920 edges.
-
x1.642.grid.header,
a text printout of the header information in the file,
created by the command "ncdump -h x1.642.grid.nc > x1.642.grid.header"
You can go up one level to
the MATLAB source codes.
Last revised on 28 December 2010.