TriCCo v1.1.0 – a cubulation-based method for computing connected components on triangular grids
-
Published:2022-10-11
Issue:19
Volume:15
Page:7489-7504
-
ISSN:1991-9603
-
Container-title:Geoscientific Model Development
-
language:en
-
Short-container-title:Geosci. Model Dev.
Author:
Voigt AikoORCID, Schwer Petra, von Rotberg Noam, Knopf Nicole
Abstract
Abstract. We present a new method to identify connected components
on triangular grids used in atmosphere and climate models to discretize the horizontal dimension. In contrast to structured latitude–longitude grids, triangular grids are unstructured and the neighbors of a grid cell do not simply follow from the grid cell index. This complicates the identification of connected components compared to structured grids. Here, we show that this complication can be addressed by involving the mathematical tool of cubulation, which allows one to map the 2-D cells of the triangular grid onto the vertices of the 3-D cells of a cubical grid. Because the latter is structured, connected components can be readily identified by previously developed software packages for cubical grids. Computing the cubulation can be expensive, but, importantly, needs to be done only once for a given grid.
We implement our method in a Python package that we name TriCCo and make available via pypi, gitlab, and zenodo. We document the package and demonstrate its application using simulation output from the ICON atmosphere model. Finally, we characterize its computational performance and compare it to graph-based identifications of connected components using breadth-first search. The latter shows that TriCCo is ready for triangular grids with up to 500 000 cells, but that its speed and memory requirement should be improved for its application to larger grids.
Funder
Karlsruhe Institute of Technology Bundesministerium für Bildung und Forschung
Publisher
Copernicus GmbH
Reference37 articles.
1. Ardila, F., Baker, T., and Yatchak, R.: Moving Robots Efficiently Using the
Combinatorics of CAT(0) Cubical Complexes, SIAM J. Discrete
Math., 28, 986–1007, https://doi.org/10.1137/120898115, 2014. a, b 2. Baumgart, M., Ghinassi, P., Wirth, V., Selz, T., Craig, G. C., and Riemer, M.:
Quantitative View on the Processes Governing the Upscale Error Growth up to
the Planetary Scale Using a Stochastic Convection Scheme, Mon. Weather Rev.,
147, 1713–1731, https://doi.org/10.1175/MWR-D-18-0292.1, 2019. a 3. Bradski, G.: The OpenCV Library, Dr. Dobb's Journal of Software Tools, 25, 120–123, 2000. a 4. Bridson, M. R. and Haefliger, A.: Metric spaces of non-positive curvature, in: Grundlehren der Mathematischen Wissenschaften, vol.
319,
Springer-Verlag, Berlin, ISBN 3540643249, 1999. a 5. Cormen, T. H., Leiserson, C. E., Rivest, R. L., and Stein, C.: Introduction to
Algorithms, 3rd edn., The MIT Press, ISBN 9780262270830, 2009. a
|
|