-
Notifications
You must be signed in to change notification settings - Fork 59
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
How to calculate the SPEI index only with daily precipitation and temperature datasets? #1539
Comments
Hi! notebooks and loops and performanceI'm not sure which notebook you are referring to, I can't find any notebook using water_budget or SPEI functions, what's the name of the notebook? Is it also related to what you say about "loop" and "station scale"? You don't need to do loops over location points, this will be handled by SPEI function. Just like if you have an input dataset with That being said, the SPEI function can get quite resource heavy, so as you scale things up, you may need to be careful with your resource management. You might want to look at dask which allows to separate your dataset in chunks and control how much RAM is allowed to be used: https://docs.xarray.dev/en/stable/user-guide/dask.html Let me know if I misunderstood your questions. using water_budgetTo use only wb= xclim.indices.water_budget(pr=pr, tas = tas, method="MB05") Then you can use the comments about water_budget errorsI will say that Currently, with the failing code
we get the error
which is apparently the error you get for inputting |
Thanks @coxipi ! I try to calculate the I got some warnings: I got the SPEI-6 finally,like below. I think I followed the standard steps to calculate SPEI index. The result will be correct. |
Setup Information
Context
Hi,all! I want to ask how to calculate the SPEI index only with daily precipitation and temperature datasets?
I find a function is
xclim.indices.standardized_precipitation_evapotranspiration_index
in the xclim. But there is no water budget dataset. I find another funtion isxclim.indices.water_budget
in the xclim which need more parameters.I read the notebook of climate indices. It can calculate the SPEI, only with pr and tas dataset. But, it seems like only fit to the statio scale. That means the Need for Loop Statements and the cost for the time and source.
Is there any way can meet my need in xclim? Thanks a lot for your help :)
Code of Conduct
The text was updated successfully, but these errors were encountered: