-
Notifications
You must be signed in to change notification settings - Fork 57
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
xclim.core.utils.ValidationError: Value's dimension [length]
does not match expected units [mass] / [length] ** 2 / [time]
.
#1453
Comments
Hi @millet5818 ! In the first versions of xclim, after much discussion and trials, the dev team decided that "precipitation" data would be supported only with units (dimensions) of flux (mass per area per time, But, if you know what your data is, there are a few ways to adapt it for xclim:
See the doc of the second function here. Both are similar, but the second is a but more flexible and less arbitrary. Hope that helps! |
Hi @aulemahal ! |
Hello, @aulemahal Due to the first use of xclim packgae, many functions are not well understood for me. I'm sorry to disturb you again. Looking forward to your reply.
|
Yes this looks good! |
Hi @millet5818 One thing I noticed is that you are running a much older version of xclim (v0.25.0) and Python (v3.6; currently past end-of-life). Is there a possibility that you can perform an update of these tools? Xclim has significantly changed in this time. |
Hi @Zeitsperre |
Hi @aulemahal |
Setup Information
Context
Dear developers:
I tried to use the function (xclim.indicators.atmos.wetdays) to calculate the total number of days during the period with precipitation over the threshold, but an issue happened. the code and error are listed below:
"Code":
"Error":
xclim.core.utils.ValidationError: Value's dimension
[length]
does not match expected units[mass] / [length] ** 2 / [time]
.I don't know what's wrong with this code and NC file. The above file was downloaded from the ERA5 website. The units of origin file is m.
Thank you very much for your help, and I look forward to your reply!
Zheng Zhao
Code of Conduct
The text was updated successfully, but these errors were encountered: