Klimaatlas / KAPy

Klimaatlases in Python
MIT License
4 stars 6 forks source link

Implement area-weighted calculations over polygons #111

Closed markpayneatwork closed 2 weeks ago

markpayneatwork commented 3 weeks ago

Is your feature request related to a problem? Please describe. When calculating area averages over larger regions (e.g. the global), it would be unusual for the area of each pixel to be the same size. We therefore need to account for this effect to get a more accurate calculation

Describe the solution you'd like Add a switch to arealstatistics that allows the feature to be turned on/off. Use cdo gridarea to do the calculation of cell sizes.

Describe alternatives you've considered xgcm has a lot of tools for working with GCM grids. But cdo seems to be the simplest and most robust solution.