Closed Empanag closed 2 years ago
This is from cmd
Traceback (most recent call last):
File "C:\Users\RSLab20Emm\AppData\Local\Programs\Python\Python39\lib\site-packages\supy\_run.py", line 369, in run_supy_ser
list_res = [
File "C:\Users\RSLab20Emm\AppData\Local\Programs\Python\Python39\lib\site-packages\supy\_run.py", line 370, in <listcomp>
suews_cal_tstep_multi(input_grid, df_forcing)
File "C:\Users\RSLab20Emm\AppData\Local\Programs\Python\Python39\lib\site-packages\supy\_run.py", line 112, in suews_cal_tstep_multi
dict_input = {k: dict_input[k] for k in list_var_input_multitsteps}
File "C:\Users\RSLab20Emm\AppData\Local\Programs\Python\Python39\lib\site-packages\supy\_run.py", line 112, in <dictcomp>
dict_input = {k: dict_input[k] for k in list_var_input_multitsteps}
KeyError: 'diagmethod'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "E:\SUEWSapp\testirrig\7-ir-25sm9-10-11-12\suews.py", line 639, in <module>
suews_out=suews(filefolder)
File "E:\SUEWSapp\testirrig\7-ir-25sm9-10-11-12\suews.py", line 453, in suews
df_output,df_state_final=sp.run_supy(df_forcing,df_state_init,chunk_day=1)
File "C:\Users\RSLab20Emm\AppData\Local\Programs\Python\Python39\lib\site-packages\supy\_supy_module.py", line 370, in run_supy
df_output, df_state_final = run_supy_ser(
File "C:\Users\RSLab20Emm\AppData\Local\Programs\Python\Python39\lib\site-packages\supy\_run.py", line 376, in run_supy_ser
raise RuntimeError("SUEWS kernel error")
RuntimeError: SUEWS kernel error
Thanks for reporting the issue–which seems to be my bad that a test/dev version was somehow released a formal one.
The solution is simple:
if you are using SUEWS input text files as the input for SuPy, add this line to the RunControl.nml
file:
diagmethod=2
(here can be one of 0
(MOST),1
(RSL) or 2
(automatically determined); use 2
for now).
if you are using df_state
for a previous version of SuPy
, modify your df_state
this way:
df_state_new= df_state.copy()
df_state_new.loc[:,('diagmethod','0')]=2
hope this helps.
I did the first and i have the problem with temperature again
this is the calculated from suews values
the map to see in some areas the problem
my data
SUEWS_Soil.zip
Please just pack your df_state
and df_forcing
into pickle files (e.g. df_state.to_pickle(“df_state.pkl”) and upload them here. Thanks!
Sent from my iPhone
On 14 May 2022, at 21:28, Emmanouil Panagiotakis @.***> wrote: I did the first and i have the problem with temperature again this is the calculated from suews values
the map to see in some areas the problem
my data SUEWS_Soil.zip
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were assigned.
Okey i tried to find df_state but i have only df_state_init propably the same i attach both forcing and state
Okey i tried to find df_state but i have only df_state_init propably the same i attach both forcing and state
Thanks! df_state_init is good: I used a simple form for it in the post above.
Also please follow the new issue opened in the SuPy repo and I'll close this one as the original issue has been addressed.
Describe the bug i have the following problem using cmd also with jupyter notebook when i run supy
To Reproduce Steps to reproduce the behavior:
Desktop (please complete the following information):