Reading and Writing ICE Datasets in NETCDF Files

ICE_IO is a FORTRAN90 library which can read or write an ICE dataset, which defines a 3D grid, using the NETCDF file format.

I will remark that the FORTRAN90 version of NETCDF was very difficult to install...correctly. I have deleted eleven further sentences from this remark.

The flakiness of the NETCDF library required me to end up abandoning the GFORTRAN compiler and switching to the G95 compiler, which was able, for some reason, to get NETCDF to behave.


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


ICE_IO 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, a data directory which contains examples of ICE files, which store icesheet grid datasets in the NETCDF format.

ICE_TO_MESH, a FORTRAN90 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_TO_ICE, a FORTRAN90 program which reads the ICE dataset information from a MESH files and rewrites it to a NETCDF file.

NETCDF, FORTRAN90 programs which read and write NETCDF files.

NETCDF_MPAS, MATLAB programs which read and write MPAS grid data stored as NETCDF files.


  1. Pascal Frey,
    MEDIT: An interactive mesh visualization software,
    Technical Report RT-0253,
    Institut National de Recherche en Informatique et en Automatique,
    03 December 2001.
  2. Russ Rew, Glenn Davis, Steve Emmerson, Harvey Davies, Ed Hartne,
    The NetCDF User's Guide,
    Unidata Program Center, March 2009.
  3. Robert Pincus, Russ Rew,
    The NetCDF Fortran90 Interface Guide,
    Unidata Program Center, March 2010.

Source Code:

Examples and Tests:

List of Routines:

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

Last revised on 19 November 2010.