Skip to content

Positional and keyword arguments in PyEt? (Examples: penman and pm) #77

Answered by mvremec
SorenJessen asked this question in Q&A
Discussion options

You must be logged in to vote

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…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SorenJessen
Comment options

Answer selected by SorenJessen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants