NCAS-CMS / cf-python

A CF-compliant Earth Science data analysis library
http://ncas-cms.github.io/cf-python
MIT License
125 stars 19 forks source link

Fix bug when calculating UGRID cell areas when non-spatial coordinates span the discrete axis #722

Closed davidhassell closed 8 months ago

davidhassell commented 8 months ago

Fixes #721

No unit test - due to the lightly random nature, it's a bit tricky to write one. But the fix is pretty simple and it works for the use case described in the issue :)