Open Queeno11 opened 3 weeks ago
Thanks for reporting this error, @Queeno11
Can you please reference the data used for this so I can reproduce and debug it myself?
Thanks @monocongo for your promt response. Give it a shot with this small dataset: https://drive.google.com/file/d/1S_ehmZOIWfGgbjlyEYuy13B8ClfNZQnF/view?usp=sharing. It's just a compilation of ERA5-Land data for a small section of the globe.
Hi everyone! Thanks a lot for all the work done here, it's really helpful for many of us working with climate data.
Describe the bug I get
ValueError: Invalid periodicity argument: monthly using dask
when trying to compute the SPI using ERA5-Land data. The weird thing here is that, when loading the xarray in memory the code works perfectly, but when using a chunked xarray.DataSet I get that error.To Reproduce
Which returns:
If I change the script a little bit by removing the dask arguments:
Everything works as expected. I can plot the results without problems:
da_spi.isel(time=7).plot()
Is there something I'm missing here?
Expected behavior Compute the SPI1 for the selected area and months. I expect to get the same result with dask and without dask.
System Information:
Thanks in advance!