Skip to content

Access original coordinate after stacking? #9131

Answered by dcherian
ghbrown asked this question in Q&A
Discussion options

You must be logged in to vote

You can use the underlying pandas multiindex: da.xindexes["latlon"].index The levels and names properties will be useful: https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.MultiIndex.html

It'll be easier to interpret if you use lon = np.arange(n)

Replies: 1 comment 1 reply

Comment options

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

Answer selected by ghbrown
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