I am having a problem with the solution offered above, "One usual pattern is to accumulate Dataset/DataArray objects in a list, and concatenate once at the end"
I get the following error:
TypeError: can only concatenate xarray Dataset and DataArray objects, got <class 'list'>
... as if concat would not allow a list input.
Can anyone help me on this?
I use Python 3.10.12