-
-
Notifications
You must be signed in to change notification settings - Fork 46.7k
Add rainfall intensity calculation function #11432
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
Conversation
physics/rainfall_intensity.py
Outdated
tr : float | ||
Return period in years. | ||
t : float | ||
Rainfall event duration in minutes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you rename the last two variables to be more descriptive? That is, t
-> duration
, tr
-> return_period
, or something similar.
physics/rainfall_intensity.py
Outdated
The coefficients K, a, b, and c are obtained from the Sherman | ||
intensity-duration-frequency curve for a specific location. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The coefficients K, a, b, and c are obtained from the Sherman | |
intensity-duration-frequency curve for a specific location. | |
The coefficients k, a, b, and c are obtained from the Sherman | |
intensity-duration-frequency curve for a specific location. |
physics/rainfall_intensity.py
Outdated
k : float | ||
Coefficient [adm]. | ||
a : float | ||
Coefficient [adm]. | ||
b : float | ||
Coefficient [adm]. | ||
c : float | ||
Coefficient [adm]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does [adm]
mean? And is it possible to give these four variables clearer names?
Hello @tianyizheng02. Thank you for reviewing this PR. Your suggestions were excellent. Could you please check if the changes I made align with your recommendations? |
Thanks for your contribution! |
* Add rainfall intensity calculation function * chore: improve fuction and coefficient documentation * Update physics/rainfall_intensity.py --------- Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com>
* Add rainfall intensity calculation function * chore: improve fuction and coefficient documentation * Update physics/rainfall_intensity.py --------- Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com>
* Add rainfall intensity calculation function * chore: improve fuction and coefficient documentation * Update physics/rainfall_intensity.py --------- Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com>
Describe your change:
Checklist: