-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError: Invalid periodicity argument: monthly using dask #558
Comments
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. |
I cannot reproduce the original error although the code does in fact produce several errors. Please advise if this issue has been resolved. |
Hey @monocongo, thank you for your support. I tested the code today with the latest version from the main branch, which includes your pull request, and it works perfectly. For anyone experiencing the same issue, please note that the current version available for installation via pip (as of October 30) does not include this fix, so you'll need to update directly from GitHub. It's great to see this issue solved! The manual workaround I was using before involved bypassing Dask, and it was a real mess... |
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!
The text was updated successfully, but these errors were encountered: