MESH_TO_ICE
Transfer ICE dataset from MESH format to NETCDF format
MESH_TO_ICE
is a FORTRAN77 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 FORTRAN77 version and
a FORTRAN90 version and
a MATLAB version.
Related Programs:
ICE_IO,
a FORTRAN77 library which
reads or writes ICE datasets, using the NETCDF format.
ICE_TO_MESH,
a FORTRAN77 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 FORTRAN77 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 Fortran77 Interface Guide,
Unidata Program Center, March 2010.
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.
-
MESH_TO_ICE_PART2 continues the process, after creating automatic arrays.
-
CH_CAP capitalizes a single character.
-
CH_EQI is a case insensitive comparison of two characters for equality.
-
CH_TO_DIGIT returns the integer value of a base 10 digit.
-
GET_UNIT returns a free FORTRAN unit number.
-
I4MAT_ZERO zeroes out an I4MAT.
-
I4VEC_ZERO sets the entries of an I4VEC to 0.
-
ICE_WRITE writes 3D ICE sizes and data to a NETCDF file.
-
MESH_DATA_PRINT prints mesh data.
-
MESH_DATA_READ reads data from a MESH file.
-
MESH_SIZE_PRINT prints mesh sizes.
-
MESH_SIZE_READ reads sizes from a MESH file.
-
R8MAT_ZERO zeroes an R8MAT.
-
S_ADJUSTL flushes a string left.
-
S_BEGIN is TRUE if one string matches the beginning of the other.
-
S_EQI is a case insensitive comparison of two strings for equality.
-
S_LEN_TRIM returns the length of a string to the last nonblank.
-
S_TO_I4 reads an I4 from a string.
-
S_TO_I4VEC reads an I4VEC from a string.
-
S_TO_R8 reads an R8 from a string.
-
S_TO_R8VEC reads an R8VEC from a string.
-
TIMESTAMP prints out the current YMDHMS date as a timestamp.
You can go up one level to
the FORTRAN77 source codes.
Last revised on 23 November 2010.