-
Notifications
You must be signed in to change notification settings - Fork 103
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
Fixed Water Balance Bug in End of Season Dialogue #8916
Fixed Water Balance Bug in End of Season Dialogue #8916
Conversation
@MeSophie I started here with the simplest case for dodoma and got this error: |
@rdstern I Fixed the bug. On the other side, ticking the reducing box gives the following error: I don't know whether this is due to a fault on my part. |
@MeSophie this error is occurring because of NA values in the evaportranspiration variable. Can you try replacing them with a different value (e.g., value from above, in the Prepare > Data Frame > Replace Values dialog), and then see how it works? |
@lilyclements It works well. Thank you. |
a) @MeSophie could you please send me the data you are using - with the missing values initially? Not through github, but only to me, as they are nervous about sharing data. |
@MeSophie I think you may be almost there now - at least in this dialog. But I still can get an error: I tried progresively for Dodoma as follows, and with no problem initially: a) Constant evaporation not reducing, from 1 March. Ok Tried again and something is not clearing presumably, because with evap column and reducing, I have not tried with multiple stations, e.g. Ghana data! |
@rdstern Could you please test the new changes? Thank you. |
@MeSophie here is still the problem. Returning to the dialog and repeating with reducing gives this error: What's interesting however is that I now went back to the non-reducing - and that was ok. Then I tried reducing again, and that was ok. I have now also tried with Ghana. I kept trying different options and there must also still be a problem with the reducing calculations. I guess this will become a @lilyclements question? Here is an example for the Ghana data: This gives quite a lot of early missing years at both sites. I assumre it may be because of missing values in the rainfall data. @MeSophie could you also fix a minor problem in the defaults for the controls. If I start with End of the Rains and then move to the End of the Season, all is ok as the defaults for the end of the season. It has remembered the day range - which is good. But the capacity is now 1, rather than 100. And ther lower limit is now 0.00, rather than 0.50. Thanks Roger |
@rdstern Could you please test the dialogue again? |
@MeSophie I note the change in the dialog, from rains to season, is now fixed. But the results from the simplest use of the season are odd. This is also the sort of thing I would like you to be checking yourself. It is imp[ortant that the results are correct. Here is the simplest use of the dialog: Do you notice something odd about the water-balance results? I wqonder why? I checked quickly using an old version - namely Version 0.7.6. Here they are there: If you don't have the old version installed, then you might like to try the Transform dialog - which (I hope) is working ok, if reducing evaporation isn't used. Now I have continued and tried all the options for Dodoma. @MeSophie you have done well, as it all seems to work now: Moreover, the results from the reducing option look sensible!!! Great. Perhapse are nearly through with this? I assume also the R-code for the reducing evaporation in the Transform dialog,whould be similar, but considerably simpler, because there is no summary stage. Once that's working we should also be able to use it to check these results. |
@MeSophie and @lilyclements I have not got as far as reducing evaporation yet. I tried for dodoma with end of the rains, which looks fine. Then I went to end of the season as follows: You will see that the date for the end of the season is the same as the end of the rains - and in every year! This can't be, because the end of the rains has at least 10mm, so can't be close to zero on the same day. Here is the code: I can't see anywhere that it refers to the 0.05, which is the trigger for the end of the season.
|
@rdstern I am trying to reproduce the error please could you give me more information about the day range that you used. from the code you provided I can see that the difference between your code and mine is the day range. Without any change on day range from my side everything is fine. And you are right the was |
@rdstern Finaly I was able to reproduce your day range This is my result it true the is a lot of missing value by the results look different. The 0.5 is back on the code.
|
@MeSophie nice! Does this mean this problem is now fixed? |
@lilyclements It is better to let @rdstern confirm it. |
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.
@MeSophie and @lilyclements I think that's all ok now. Well done.
a) I checked with Dodoma with end of rains between mid-Feb and end April.
b) Then end of season with constant evap (5) from end of rains, till end June. All seems ok.
c) Then added evap variable - always 5 and used that instead. Result should be the same and it was!
d) Then reducing changing lower 0.5 to 5. Results seem sensible.
e) Then changed the 5 to 10 - should always finish earlier and they do!
All good, so approving!!!! @N-thony could you check the code, and then hopefully merge!
Fixes #8910
@rdstern @lilyclements I corrected the Water Balance code when using variable with reducing unchecked in End of season dialogue. Please have a look.