Issue in QSWATMOD2 when importing MODFLOW grid shapefile

9 views
Skip to first unread message

Lenka Saikumar

unread,
Sep 11, 2025, 4:52:40 AMSep 11
to SWAT-MODFLOW
  I am getting the following error when importing the MODFLOW grid into QSWATMOD2:  
Traceback (most recent call last):
  File "...\QSWATMOD2.py", line 710, in import_mf_grid
    modflow_functions.create_top_elev(self)
  File "...\modflow_functions.py", line 367, in create_top_elev
    top_elevs.append(float(data[ii][jj]))
ValueError: could not convert string to float: 'CONSTANT'

In MODELMUSE , when i export the the grids shapefile, it is in polyline. so converted into polygon by using ArcGIS. I uploaded this shapefile it shows this error . please give suggestions to resolve this error. 

THANKYOU 
Reply all
Reply to author
Forward
0 new messages