Skip to content

Calculating Incoming solar radiation - Error in function ? #13

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

You must be logged in to vote

Dear Adrien,
Thank you very much for raising this issue, and welcome to pyet discussions.
Everything you wrote is correct. There was an error in the code.
I did not test/check this function - I actually also was not using it, as I did not have data on sunshine duration.

nn (maximum possible duration of sunshine) is now computed via Eq. 34 as in Allen et al. (1998),
whereas n (duration of sunshine) is now a positional argument (must be provided).
According to example 10 on p. 50 in Allen et al. (1998), I also added a test for this function.
I corrected/added the function and test in the dev branch. If you have time, you can check.
I will then merge it with the master branch.

Thanks again!

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@raoulcollenteur
Comment options

@manlaya
Comment options

@raoulcollenteur
Comment options

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