Access data via common coordinate across all children of a DataTree #10069
Unanswered
HenrikAsmuth
asked this question in
General
Replies: 1 comment
-
Hi @HenrikAsmuth, the coordinate inheritance feature works downwards from the root to the leaves, meaning that from the leaves you can access any coordinate variables or indexes defined closer to the root. It sounds like you might be expecting the opposite behaviour? It would be easier to help you if you could provide a minimal example of what your tree looks like and what behaviour you are hoping for. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have a DataTree
tree
where my all data lies at the second child level. All datasets down there have the same coordinatesx
andy
, as well as an additional multi-indexidx
. I would like to access the data across all children at the lowest level directly fromtree
, yet so far I am struggling to find a way to do this.tree.isel(idx=0)
is working but the corresponding operation with.sel
is not.I briefly skimmed the discussions in #9077. Now I am wondering if I am just missing something when building my tree (do I need to explicitly pass the coordinates up from the children to the parents?), or if that functionality is simply not there, yet.
Thanks for you help!
Beta Was this translation helpful? Give feedback.
All reactions