In Dask, there is a class called MaskedArray, corresponding to the NumPy class with the same name. The NumPy class has the methods getdata and getmask, which it seems like the Dask class is also supposed to have; however, I can only find a mention of getmask for the Dask class as red text at the getdata documentation page, and when I try to call it in my script, I get
AttributeError: module 'dask.array.ma' has no attribute 'getmask'
So, where is the getmask method for the Dask class? Do I need to obtain the mask in some other way? Or isn't it possible to extract a mask from a Dask masked array at all in the same way as it is possible for a NumPy masked array, and if so, why not? Do I have to convert the Dask masked array to a NumPy masked array before I can extract the mask?
You can use the module method
dask.array.ma.getmaskarray. Here's a simple example:You can view the list of available module-level methods in the Dask Masked Array API Documentation.