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

New method pad_missing to support aggregation of DSGs #718

Closed davidhassell closed 8 months ago

davidhassell commented 8 months ago

Fixes #717

davidhassell commented 8 months ago

Hi Sadie - I've added a new to_size keyword, because that's usually what you want to do ("pad it up to this size"), rather than working out how many points you need to pad to get it to the desired size.

https://github.com/NCAS-CMS/cf-python/pull/718/commits/54c72a5a48453f6f87ca859e5e2dc14eec745ba9

sadielbartholomew commented 8 months ago

Sure, that sounds useful. OK, I'll do a final review inclusive of the new commit. One moment...