Is there a way to use the Python Dask package to mimic a Numpy masked array and do calculations considering the mask, like in Numpy:
import numpy as np
data = np.array([0, 1, 9999, 2, 1, 0, 9999])
value = 9999
mdata = np.ma.masked_where(data == value, data)
result = (mdata * 2 + 10)
In the package documentation I only found dask.arrays which are equivalent to Numpy ndarrays and don't feature a masks. In addition slicing with another array seems also not possible. Therefore I can't find a way to do calculation only for parts of an array.