Geosci. Model Dev., 9, 4451-4460, 2016
http://www.geosci-model-dev.net/9/4451/2016/ doi:10.5194/gmd-9-4451-2016 © Author(s) 2016. This work is distributed under the Creative Commons Attribution 3.0 License. |

Development and technical paper

15 Dec 2016

Institute for Marine and Atmospheric research Utrecht, Utrecht
University, Utrecht, 3584 CC, the Netherlands

Received: 11 Apr 2016 – Discussion started: 17 May 2016

Revised: 22 Nov 2016 – Accepted: 23 Nov 2016 – Published: 15 Dec 2016
Abstract. Many processes govern the deglaciation of ice sheets. One of the processes that is usually ignored is the calving of ice in lakes that temporarily surround the ice sheet. In order to capture this process a “flood-fill algorithm” is needed. Here we present and evaluate several optimizations to a standard flood-fill algorithm in terms of computational efficiency. As an example, we determine the land–ocean mask for a 1 km resolution digital elevation model (DEM) of North America and Greenland, a geographical area of roughly 7000 by 5000 km (roughly 35 million elements), about half of which is covered by ocean. Determining the land–ocean mask with our improved flood-fill algorithm reduces computation time by 90 % relative to using a standard stack-based flood-fill algorithm. This implies that it is now feasible to include the calving of ice in lakes as a dynamical process inside an ice-sheet model. We demonstrate this by using bedrock elevation, ice thickness and geoid perturbation fields from the output of a coupled ice-sheet–sea-level equation model at 30 000 years before present and determine the extent of Lake Agassiz, using both the standard and improved versions of the flood-fill algorithm. We show that several optimizations to the flood-fill algorithm used for filling a depression up to a water level, which is not defined beforehand, decrease the computation time by up to 99 %. The resulting reduction in computation time allows determination of the extent and volume of depressions in a DEM over large geographical grids or repeatedly over long periods of time, where computation time might otherwise be a limiting factor. The algorithm can be used for all glaciological and hydrological models, which need to trace the evolution over time of lakes or drainage basins in general.

**Citation:**
Berends, C. J. and van de Wal, R. S. W.: A computationally efficient depression-filling algorithm for digital elevation models, applied to proglacial lake drainage, Geosci. Model Dev., 9, 4451-4460, doi:10.5194/gmd-9-4451-2016, 2016.