Optimize _findTopLayerElements for sigma only
ecomodeller opened this issue · 1 comments
ecomodeller commented
The current implementation works for sigma and sigma-z
mikeio/mikeio/spatial/FM_geometry.py
Line 1628 in 5f29d52
but it must be possible to construct this list much faster for a pure sigma file, than looping over all elements.
jsmariegaard commented
I guess so - if you know the 2d geometry and the number of layers - it should just be a matter of stride