SOLWEIG: using landcover class outside of range 1-7 #729
stefanfluck
started this conversation in
Ideas
Replies: 2 comments 1 reply
-
I just tested it and it works fine with commenting out the return statement. It promts the user to check for values out of range, but aknowledging the warning still continues the calculation. Change in particular, in SOLWEIG/solweig.py: before:
after:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you for this suggestion. We will look into this. Heads up, a new version is soon out where also wall materials will be incorporated here. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, thanks for your work on this project.
I would like to use the land cover class "Cobble_stone_2014a" which is included in the landcoverclasses_2016a.txt, which has code 0. In the future i'd like to add custom land cover classes.
In file SOLWEIG/solweig.py lines 968-971 it is checked wheter lcgrid is between 1 and 7, and the return statement in 971 exits the calculation. Would it make sense to remove the return statement? This way the user is warned, but calculation continues. Elegant would be to check the minimum and maximum code in the landcoverclasses file and check based on this.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions