xgcm / xhistogram

Fast, flexible, label-aware histograms for numpy and xarray
https://xhistogram.readthedocs.io
MIT License
89 stars 19 forks source link

CF style 'bounds' for histogram output? #68

Open jbusecke opened 2 years ago

jbusecke commented 2 years ago

I would find it very useful to preserve the input bins as CF bound coordinates in the output. I can try to put in a PR some time soon if folks think this would be useful.

dougiesquire commented 2 years ago

Thanks @jbusecke, I think this is a great idea! There are ongoing plans to move xhistogram into xarray (cc @TomNicholas). But, given that your proposal doesn't sound like a huge amount of work, I think it's worth implementing in xhistogram in the meantime. A PR would be great, thanks!