Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Formatting problem with climate data

18 views
Skip to first unread message

Tulsi Ram Pokhrel

unread,
Jan 13, 2025, 12:40:44 PMJan 13
to SWAT+ Editor
Hello, please help me how to solve this problem related to the climate data formatting. Although, I followed the swat+ editor (SWAT+ Editor 3.0.8 rev 61.0.1) example format, SWAT+ Editor is not working (not accepting the data). 
I have attached the datasets along with error message with this email. 

Thank you in advance. 

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""error""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Traceback (most recent call last):
  File "peewee.py", line 7253, in get
  File "peewee.py", line 4553, in __getitem__
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "actions\import_weather.py", line 327, in add_weather_files_type
  File "peewee.py", line 6805, in get
  File "peewee.py", line 7256, in get
database.project.climate.Weather_fileDoesNotExist: <Model: Weather_file> instance matching query does not exist:
SQL: SELECT "t1"."id", "t1"."filename", "t1"."type", "t1"."lat", "t1"."lon" FROM "weather_file" AS "t1" WHERE (("t1"."filename" = ?) AND ("t1"."type" = ?)) LIMIT ? OFFSET ?
Params: ['pcp5.pcp', 'pcp', 1, 0]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "swatplus_api.py", line 107, in <module>
  File "actions\import_weather.py", line 124, in import_data
  File "actions\import_weather.py", line 256, in add_weather_files
  File "actions\import_weather.py", line 367, in add_weather_files_type
IndexError: list index out of range
[51472] Failed to execute script 'swatplus_api' due to unhandled exception!

""""""""""""""""""""""""""""""""""""""""""""""""""""""""""error"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
pcp.cli
pcp5.pcp
tmp3.tmp
tmp4.tmp
pcp3.pcp
tmp1.tmp
pcp2.pcp
pcp4.pcp
pcp1.pcp
tmp5.tmp
tmp2.tmp
tmp.cli
Reply all
Reply to author
Forward
0 new messages