Skip to content
Discussion options

You must be logged in to vote

Hi Deepak,

Thanks! That's actually pretty much what I ended up doing. To record in case it's useful to anyone else: it ended up being more straightforward to do this in Pandas before converting to xarray. I set station_ID and depth as a Pandas MultiIndex on my metadata dataset, then converted that to xarray. From there the dimensions were the same as my data so I was able to merge the two xarray datasets (metadata and data) and get what I wanted.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rmshkv
Comment options

Answer selected by dcherian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants