Closed lazarusA closed 7 months ago
I dont have ds
...
But I think the problem is you need to map the broadcast over the slices:
map(./, g_tempo, sum_days)
# Or depending on what you are broadcasting
map(g -> g ./ sum_days, g_tempo, )
# Or double broadcast, which looks kinda weird:
(./).(g_tempo, sum_days))
Because actually each grouped array in g_tempo
needs to be broadcast with sum_days
.
I'm not sure if it makes sense to hack broadcast to "make it work".... even in xarray it only works because they hack those methods like mean work like that - cusom methods wont broadcast.
this one works:
map(./, g_tempo, sum_days)
The following fails at a several levels.
This is how the sums look like:
and here the errors:
And this one works