xarray-tutorial icon indicating copy to clipboard operation
xarray-tutorial copied to clipboard

More on re-indexing

Open jklymak opened this issue 1 year ago • 5 comments

xarray has some pretty powerful, indexing, re-indexing, and binning capabilities. My knowledge of them all is pretty limited, but reindex, reindex_like, groupby and groupby_bins all seem like useful targets for operations that folks dealing with practical, ~happy~ gappy, poorly gridded data, could use some help with.

e.g. I couldn't figure this out on my own: https://stackoverflow.com/questions/73760046/replace-some-values-in-dataarray-based-on-list-of-indices/73790162#73790162

I appreciate that some of this is probably old-hat for pandas users, but some of us just skipped right to xarray ;-)

Thanks!

PS, apologies if this is covered in the tutorial and I haven't seen it.

jklymak avatar Sep 21 '22 17:09 jklymak

apologies if this is covered in the tutorial and I haven't seen it.

It isn't covered explicitly and it's a really important topic. Thanks!

dcherian avatar Sep 21 '22 17:09 dcherian

I may be able to contribute something, but maybe I don't know all the tricks...

jklymak avatar Sep 21 '22 17:09 jklymak

Go for it! Contributions always help poke us into doing something :) .

It links to alignment for which we have OK material for. But I think this will work nicely as a separate "intermediate" tutorial that builds on that alignment and broadcasting tutorial.

dcherian avatar Sep 21 '22 18:09 dcherian