wmbelk / Weather

Baysian Update to environmental data
1 stars 0 forks source link

Xarray groupby construct #29

Open wmbelk opened 1 year ago

wmbelk commented 1 year ago

Can you make new dimensions with group y using construct

wmbelk commented 1 year ago

No it does not

But you can loop over the group object getting label and the xarray sub-group back

for label, group in da.group_by("time.month"): ....

Maybe make list comprehension to create xarray ; but i think they would have to be all the same size; so would need to ?merge/bobcat/join?