Positional and keyword arguments in PyEt? (Examples: penman and pm) #77
-
I have these data, daily values: I also have the site latitude and elevation. Now how do I best make use of my data in pyet to calculate PET using the penman-monteith (pm) and penman (penman) methods? For example, if I call the penman method: Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @SorenJessen , Thank you for sharing the details of your dataset. You've got all the necessary data to effectively use both the penman and penman-monteith methods in PyEt. Here's a breakdown of how you can proceed: For both the Penman and Penman-Monteith methods in PyEt, the tmean (mean temperature) and wind (wind speed) are positional arguments. All other variables should be passed as keyword arguments. This flexibility allows PyEt to adapt to various datasets like yours. Example Usage: Regarding the sunshine hours data: Additional Resources: Thank you for your question, and don't hesitate to reach out if you need further assistance! Best, |
Beta Was this translation helpful? Give feedback.
Hi @SorenJessen ,
Thank you for sharing the details of your dataset. You've got all the necessary data to effectively use both the penman and penman-monteith methods in PyEt. Here's a breakdown of how you can proceed:
For both the Penman and Penman-Monteith methods in PyEt, the tmean (mean temperature) and wind (wind speed) are positional arguments. All other variables should be passed as keyword arguments. This flexibility allows PyEt to adapt to various datasets like yours.
Example Usage:
Here’s how you can use your data with both methods:
pet_penman = pyet.penman(tmean, wind, rs=rs, tmax=tmax, tmin=tmin, rh=rh, elevation=elevation, latitude=latitude)
pet_pm = pyet.pm(tmean, wind, rs=rs…