Intersecting DHRUs by GRIDs ... processing not done
An error has occurred while executing Python code:
IndexError: list index out of range
Traceback (most recent call last):input1 = QgsProject.instance().mapLayersByName("mf_grid (MODFLOW)")[0]
IndexError: list index out of range
2021-04-29T20:39:27 WARNING Traceback (most recent call last):
File "C:/Users/DELL/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QSWATMOD2\QSWATMOD2.py", line 662, in create_rivs
modflow_functions.mf_riv2(self)
File "C:/Users/DELL/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QSWATMOD2\pyfolder\modflow_functions.py", line 521, in mf_riv2
input1 = QgsProject.instance().mapLayersByName("mf_grid (MODFLOW)")[0]
IndexError: list index out of range
2021-04-29T20:39:27 WARNING Traceback (most recent call last):
File "C:/Users/DELL/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QSWATMOD2\QSWATMOD2.py", line 662, in create_rivs
modflow_functions.mf_riv2(self)
File "C:/Users/DELL/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QSWATMOD2\pyfolder\modflow_functions.py", line 521, in mf_riv2
input1 = QgsProject.instance().mapLayersByName("mf_grid (MODFLOW)")[0]
2021-06-02T16:02:44
WARNING Traceback (most recent call last):
File
"C:/Users/Administrator/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QSWATMOD2\QSWATMOD2.py",
line 1677, in geoprocessing_prepared linking_process.create_dhru_id(self)
File
"C:/Users/Administrator/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QSWATMOD2\pyfolder\linking_process.py",
line 116, in create_dhru_id
featureList =
sorted(aList,
key=lambda f: f[field1Id])
File
"C:/Users/Administrator/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QSWATMOD2\pyfolder\linking_process.py",
line 116, in featureList =
sorted(aList,
key=lambda f: f[field1Id])
KeyError: '-1'
--
You received this message because you are subscribed to a topic in the Google Groups "SWAT-MODFLOW" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/swat-modflow/-o-CJOUEX18/unsubscribe.
To unsubscribe from this group and all its topics, send an email to swat-modflow...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/swat-modflow/d4db6b63-ed87-4cca-904d-dcd7078076a1n%40googlegroups.com.
Hi Suri,
I linked your SWAT with MODFLOW model successfully.
The problem was the hru shapefile doesn’t have HRU_ID field; instead, it has “HRUGIS” field. I thought I added an option for this issue in the latest version of QSWATMOD, but still, it’s problematic because the name of the field to generate HRU_ID is sometimes different. I will fix this issue in a later version.
I generated HRU_ID in your hru shapefile temporarily.
You have another issue with your MODFLOW model. You are missing a recharge package and it is required to get deep percolation from the SWAT model. You can provide zero value for the recharge rate.
Once you create the recharge package, you can just import the MODFLOW model again, then click the “Check MODFLOW file” button and run your model. You don’t have to relink your model.
Here is a link to your model.
Please let me know if you have any questions or other issues.
Best,
Seonggyu
You received this message because you are subscribed to the Google Groups "SWAT-MODFLOW" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swat-modflow...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/swat-modflow/69ebe0a8-ee97-49cd-bd10-40251e7c8550n%40googlegroups.com.
2021-06-04T22:47:35 WARNING Traceback (most recent call last):
File "C:/Users/Administrator/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QSWATMOD2\QSWATMOD2.py", line 1256, in selectExistingMODFLOWModelDir
shutil.copy2(os.path.join(directory, i), Out_folder)
File "C:\PROGRA~1\QGIS3~1.16\apps\Python37\lib\shutil.py", line 257, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "C:\PROGRA~1\QGIS3~1.16\apps\Python37\lib\shutil.py", line 120, in copyfile
with open(src, 'rb') as fsrc:
PermissionError: [Errno 13] Permission denied: 'C:/Users/Administrator/Desktop/integratedModel/MODFLOW\\MODFLOWMODEL'
** I have activated well package in MODFLOW model and pumping wells were imported MODFLOW model, but these are reflecting in SWAT-MOD,
*** It seems river package was not written to SWAT-MODFLOW.
*** I also have verified groundwater-surface interactions for the four year that model had run, is not showing any interations. It is beacause river is not written.
I have attached the model again after importing the MODFLOW model, with trial runs of SWAT-MOD. Also I am attaching MODFLOW source files for your suggestions.
Best Wishes,
Suri