Made xarray flags check safe
@@ -459,6 +459,7 @@ class XArrayInterface(GridInterface):
# since we only exapanded on dimnesions of size 1
# we can monkeypatch the dataarray back to writeable.
for d in data.values():
+ if hasattr(d.data, 'flags'):
d.data.flags.writeable = True
da = dask_array_module()
