coecms / xmhw

Xarray version of Marine Heatwaves code by Eric Olivier
https://xmhw.readthedocs.io/en/latest/
Apache License 2.0
21 stars 10 forks source link

sorting dimensions in and check before stack #52

Closed paolap closed 1 year ago

paolap commented 1 year ago

Possibly as a consequence of having removed the multi-index option, when running land_check() on different arrays which have the same dimensions, there is no guarantee the order in which dimensions are stacked is consistent. So I added sorted() when calling stack:

ts = temp.stack(cell=(sorted(dims)), create_index=False)
paolap commented 1 year ago

solved by pull-request #53 and new release 0.9.0