-
Hi, I have data from a weather station in northern Sweden (Kiruna, 67.8 °N) and want to evaluate different methods of calculating potential evaporation, which would make PyET a useful tool. I have never used PyET before, and I am not an advanced coder at all. However, following example 1 (as I did) seemed kind of straightforward. But when using latitudes over 65° (converted to radians) as input, I get the following error prompt: "RuntimeWarning: invalid value encountered in arccos result = getattr(ufunc, method)(*inputs, **kwargs)" Does the package not support latitudes above a certain point? I will provide my code below:
Thanks for reading my message. Kind regards, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
I solved it some time ago but i figured that i would share if anyone else would face the same issue - though it is unlikely. Kiruna (67.8° N) is above the Arctic Circle so the sun doesn't rise for some parts of the winter and doesn't set in some parts of the summer. So i updated the function "sunset_angle" in the source code so that argument to arccos is -1<arg<1:
|
Beta Was this translation helpful? Give feedback.
-
Dear @Adem6092, Apologies for the delayed response! We have addressed this issue in the latest version of PyEt 1.3.1. Please update to the most recent version and give it another try. And thank you for your suggestion! We fixed it in a similar way! If you're still encountering problems after the update, please let me know. I'm here to help! Cheers, |
Beta Was this translation helpful? Give feedback.
-
Thanks, but isn't that en calculation of the acutal evapo(tranpi)ration where they take into account the amount of water in the uppermost "layer"? |
Beta Was this translation helpful? Give feedback.
Thank you for identifying the discrepancies in the ASCE documentation. I will update it in the next merge. Regarding your question about estimating potential evaporation from bare soil:
The FAO-56 guidelines recommend using the FAO-56 methods combined with a soil evaporation reduction coefficient. I suggest reviewing the FAO-56 guidelines, specifically pages 142 to 146, for detailed information on how to apply these methods effectively.