By: KLC

I really found your walkthrough enlightening, but I couldn’t get it to work for my needs. I’m trying to take data in this format
https://i.imgur.com/Fi2Ezfn.png

and extract it to this format
https://i.imgur.com/KivASn6.png

At this point it’s going to be faster to do it manually, but would really like to learn how to do something like this. I tried your xarray formula where I used an offset command to build the range for the final lookup manually, but i couldn’t get it to work