You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The demo notebook or reordering gives performance warning when calling re-order:
# Time the reordering operation.time_ordering=%timeit-ostmat.copy().stm.reorder(xlabel="azimuth", ylabel="range")
time_ordering
/storage/miniforge3/envs/mbl_stmtools/lib/python3.11/site-packages/xarray/core/indexing.py:1430: PerformanceWarning: Slicing with an out-of-order index is generating 230 times more chunks
return self.array[key]
This seem to be inevitable since we are performing reorder. It seems we can
As we discussed, this performance would warning probably only apply while the data is split into a lot of small chunks (in this case 230 times as many).
However, inside the stm.reorder(...) function, the data is already re-chunked into larger chunks directly after this call to xarray.Dataset.sortby(...).
So, I will suppress the warning and check whether the function description properly mentions that this could be an expensive operation.
The demo notebook or reordering gives performance warning when calling re-order:
This seem to be inevitable since we are performing reorder. It seems we can
The text was updated successfully, but these errors were encountered: