coecms / xmhw

Xarray version of Marine Heatwaves code by Eric Olivier
https://xmhw.readthedocs.io/en/latest/
Apache License 2.0
22 stars 10 forks source link

how to use dask for function threshold? i have big grid data #68

Closed liuh1995 closed 1 year ago

paolap commented 1 year ago

Dask is already used under the hood (see documentation), but you would have to start up a dask client to allow the code to work in parallel properly. I'm going to close this as this is not an issue with the code itself.

liuh1995 commented 1 year ago

Can you give me an example, thanks!

paolap commented 1 year ago

I'm sorry I don't have time to setup an example plus dask depends a lot on the data you're trying to process, as I said there's some explanations in the documentation.

liuh1995 commented 1 year ago

thanks! image I found your example, but where are the variables "thresh and seas" found in the graph, because my data is 11GB, which is slow to run when using threshold directly.