Klimaatlas / KAPy

Klimaatlases in Python
MIT License
4 stars 6 forks source link

Add regridding via CDO #91

Closed markpayneatwork closed 6 months ago

markpayneatwork commented 6 months ago

Is your feature request related to a problem? Please describe. The bug in #11 and our inability to get xesmf regridding to work leaves us without a regridding function.

Describe the solution you'd like Implement regridding via CDO

markpayneatwork commented 6 months ago

Handling the regridding of period time-bins proved to be quite tricky - CDO doesn't want to play nice, and insists that everything is time-lon-lat. Eventually found a fix by handling each time slice individually - possibly not the fastest, but nevertheless a practical solution. We could consider adding a step here to calculate and then reuse the weights - not sure if it is needed though. Closing for now.