You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/user-guide/hierarchical-data.rst
-55Lines changed: 0 additions & 55 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -798,58 +798,3 @@ We can also still perform all the same operations on the whole tree:
798
798
dt.std(dim="time")
799
799
800
800
(TODO: The second one fails due to https://github.com/pydata/xarray/issues/8949)
801
-
802
-
.. _overriding-inherited-coordinates:
803
-
804
-
Overriding Inherited Coordinates
805
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
806
-
807
-
We can override inherited coordinates with newly-defined ones on child nodes, as long as those newly-defined coordinates also align with the parent nodes.
808
-
809
-
You may want to do this if some child dataset follows the same pattern as its siblings but contains different specific values of a coordinate.
810
-
811
-
Let's image we had three different datasets, on two different lat-lon grids:
However in this you could also have reprented this without overriding, by using an extra layer of nodes in the tree:
842
-
843
-
844
-
.. _overriding-inherited-coordinates:
845
-
846
-
Non-Inherited Coordinates
847
-
~~~~~~~~~~~~~~~~~~~~~~~~~
848
-
849
-
Only coordinates which are backed by an index are inherited. This is because index-backed coordinates can be efficiently de-duplicated between parents and children, preventing ambiguity
0 commit comments