hainegroup / oceanspy

A Python package to facilitate ocean model data analysis and visualization.
https://oceanspy.readthedocs.io
MIT License
96 stars 32 forks source link

llc90_tutorial notebook fails #342

Closed Mikejmnez closed 1 year ago

Mikejmnez commented 1 year ago

error_llc90

The particular error is

KeyError: 'Indexing with a boolean dask array is not allowed'

This is identical to the errors described in issue #332. As described there, this error goes away when computing explicitly the mask. This is, in the example above:

ds[var].where(maskC.compute(), drop=True)

I checked, and after setting maskC.compute() ( also true for other masks ->G, U and V), the notebooks run well.

I have a PR in the works. I just want this to be documented.

Mikejmnez commented 1 year ago

closed by #343