MESH_TO_ICE
Transfer ICE dataset from MESH format to NETCDF format
MESH_TO_ICE
is a C program which
reads a MESH file containing an ICE dataset and rewrites the
information as a NETCDF file.
Usage:
mesh_to_ice prefix
where
-
prefix is the filename prefix,
reads prefix.mesh and creates prefix.nc.
Licensing:
The computer code and data files described and made available on this web page
are distributed under
the GNU LGPL license.
Languages:
MESH_TO_ICE is available in
a C version and
a C++ version and
a FORTRAN90 version and
a MATLAB version.
Related Programs:
ICE_IO,
a C library which
reads or writes ICE datasets, using the NETCDF format.
ICE_TO_MESH,
a C program which
reads a NETCDF file containing an ICE dataset and rewrites the
information as a MESH file.
MESH,
a data directory which
contains examples of MESH files, which can be used to define the geometry
of a finite element mesh in 2D or 3D, using triangles, quadrilaterals,
tetrahedrons or hexahedrons.
MESH_IO,
a C library which
can read or write MESH files, which can be used to define the geometry
of a finite element mesh in 2D or 3D, using triangles, quadrilaterals,
tetrahedrons or hexahedrons.
Reference:
-
Pascal Frey,
MEDIT: An interactive mesh visualization software,
Technical Report RT-0253,
Institut National de Recherche en Informatique et en Automatique,
03 December 2001.
-
Russ Rew, Glenn Davis, Steve Emmerson, Harvey Davies, Ed Hartne,
The NetCDF User's Guide,
Unidata Program Center, March 2009.
-
Russ Rew, Glenn Davis, Steve Emmerson, Harvey Davies,
The NetCDF C Interface Guide,
Unidata Program Center, January 2007.
Source Code:
Examples and Tests:
HEXAHEXA_2x2x2 subdivides the unit cube into a 2x2x2 mesh
of 8 subcubes or "hexahedra", using 27 vertices, and 24 boundary
quadrilaterals.
PART is a large 3D object including 28,694 vertices, 14,890 triangles,
150,779 tetrahedrons, 50 corners, 1905 edges and 1905 ridges.
List of Routines:
-
MESH_TO_ICE reads "ICE" data from a MESH file and writes it to a NETCDF file.
-
CH_CAP capitalizes a single character.
-
CH_EQI is TRUE (1) if two characters are equal, disregarding case.
-
CH_TO_DIGIT returns the integer value of a base 10 digit.
-
ICE_WRITE writes 3D ICE sizes and data to a NETCDF file.
-
I4VEC_ZERO zeroes an I4VEC.
-
MESH_DATA_PRINT prints the data of a MESH dataset.
-
MESH_DATA_READ reads data from a MESH file.
-
MESH_SIZE_PRINT prints the sizes of a MESH dataset.
-
MESH_SIZE_READ reads sizes from a MESH file.
-
R8VEC_ZERO zeroes an R8VEC.
-
S_BEGIN reports whether string 1 begins with string 2.
-
S_EQI reports whether two strings are equal, ignoring case.
-
S_LEN_TRIM returns the length of a string to the last nonblank.
-
S_NEWLINE_TO_NULL replaces carriage returns or newlines by nulls.
-
S_TO_I4 reads an I4 from a string.
-
S_TO_I4VEC reads an I4VEC from a string.
-
S_TO_R8 reads an R8 value from a string.
-
S_TO_R8VEC reads an R8VEC from a string.
-
TIMESTAMP prints the current YMDHMS date as a time stamp.
You can go up one level to
the C source codes.
Last revised on 29 November 2010.