Generation of boundary representation from arbitrary geophysical fields.

For further information and updates, please contact the author Dr Adam S. Candy at

View the project on GitHub: adamcandy/Shingle.

Build status

Build Status

Example geophysical domains

A selection of geophysical domains where Shingle has been applied to generate the boundary representation. This description is then meshed using Gmsh.



A new meshing approach for realistic domains.

This code generates boundary representations with elemernt identifications from arbitrary geophysical fields. It was originally used mask to generate a boundary along the coastlines and grounding line* (which is not positioned at a constant depth). The code is easily applied to boundaries along depth contours and to work with other NetCDF sources.

The new approach uses contouring routines (as opposed to the GSHHS Gmsh plugin, or a GMT approach). It would be useful to test this new code on a wide range of regions - particularly to check the contouring routines are behaving satisfactorily. It works very well in the Antarctic region (including the region inside ice shelf cavities).

The dependencies are all Python modules (e.g. GMT is not required).

Supported features

Development version

A development version of the code also has:

Other updates

Test suite

Currently there are six tests in the test suite:


The above tests use the RTopo dataset, described in detail at:

Timmermann, R et al. (2010): Antarctic ice sheet topography, cavity geometry, and global bathymetry (RTopo 1.0.5-beta). doi:10.1594/PANGAEA.741917, Supplement to: Timmermann, Ralph; Le Brocq, Anne M; Deen, Tara J; Domack, Eugene W; Dutrieux, Pierre; Galton-Fenzi, Ben; Hellmer, Hartmut H; Humbert, Angelika; Jansen, Daniela; Jenkins, Adrian; Lambrecht, Astrid; Makinson, Keith; Niederjasper, Fred; Nitsche, Frank-Oliver; Nøst, Ole Anders; Smedsrud, Lars Henrik; Smith, Walter (2010): A consistent dataset of Antarctic ice sheet topography, cavity geometry, and global bathymetry. Earth System Science Data, 2(2), 261-273, doi:10.5194/essd-2-261-2010

This project is maintained by Dr Adam S. Candy.