Closed
Description
Iris master does not work with dask 0.18.2 (but does seem to work with 0.18.1)
I suspect this is why some of the travis tests are failing.
When loading a netcdf file, it fills in the mask.
With Dask 0.18.2
>>> cube = iris.load_cube('my_cube.nc')
>>> cube[0,0].data
array([[9.96921e+36, 9.96921e+36, 9.96921e+36, ..., 9.96921e+36,
9.96921e+36, 9.96921e+36],
[9.96921e+36, 9.96921e+36, 9.96921e+36, ..., 9.96921e+36,
9.96921e+36, 9.96921e+36],
[9.96921e+36, 9.96921e+36, 9.96921e+36, ..., 9.96921e+36,
9.96921e+36, 9.96921e+36],
...,
[9.96921e+36, 9.96921e+36, 9.96921e+36, ..., 9.96921e+36,
9.96921e+36, 9.96921e+36],
[9.96921e+36, 9.96921e+36, 9.96921e+36, ..., 9.96921e+36,
9.96921e+36, 9.96921e+36],
[9.96921e+36, 9.96921e+36, 9.96921e+36, ..., 9.96921e+36,
9.96921e+36, 9.96921e+36]], dtype=float32)
But with dask 0.18.1 this is:
>>> cube = iris.load_cube('my_cube.nc')
>>> cube[0,0].data
masked_array(
data=[[--, --, --, ..., --, --, --],
[--, --, --, ..., --, --, --],
[--, --, --, ..., --, --, --],
...,
[--, --, --, ..., --, --, --],
[--, --, --, ..., --, --, --],
[--, --, --, ..., --, --, --]],
mask=[[ True, True, True, ..., True, True, True],
[ True, True, True, ..., True, True, True],
[ True, True, True, ..., True, True, True],
...,
[ True, True, True, ..., True, True, True],
[ True, True, True, ..., True, True, True],
[ True, True, True, ..., True, True, True]],
fill_value=9.96921e+36,
dtype=float32)