xarray icon indicating copy to clipboard operation
xarray copied to clipboard

DataTree broadcasting

Open TomNicholas opened this issue 1 year ago • 0 comments

What is your issue?

From https://github.com/xarray-contrib/datatree/issues/199

Currently you can perform arithmetic with datatrees, e.g. dt + dt. (In fact the current implementation lets you apply arbitrary operations on n trees that return 1 to n new trees, see map_over_subtree.)

However currently these trees must have the same structure of nodes (i.e. be "isomorphic").

It would be useful to generalise tree operations to handle trees of different structure. I'm going to call this "tree broadcasting" (not to be confused with array broadcasting).

TomNicholas avatar Oct 08 '24 16:10 TomNicholas