We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e469b95 commit 2db8797Copy full SHA for 2db8797
xarray/convert.py
@@ -124,7 +124,10 @@ def to_iris(dataarray):
124
# Create the right type of masked array (should be easier after #1769)
125
if isinstance(dataarray.data, dask_array_type):
126
from dask.array import ma as dask_ma
127
- masked_data = dask_ma.masked_invalid(dataarray)
+ # masked_invalid can be applied directly to the dataarray, but
128
+ # results in a bad chunksize. So instead we use the internal
129
+ # dask array (#2046)
130
+ masked_data = dask_ma.masked_invalid(dataarray.data)
131
else:
132
masked_data = np.ma.masked_invalid(dataarray)
133
0 commit comments