AGWA

91 views
Skip to first unread message

Amna Kulsoom

unread,
Jul 13, 2022, 11:21:42 AM7/13/22
to AGWA Support
Hey,
I  have clipped shapefiles of the study area, and now i want to use agwa to find out the erossion and sediment yield of that watershed, i am curious which agwa tutorial should i use and how to do the delineation.
I have done delineation using arcgis but i want to do it using agwa now so how to start with it.

Amna Kulsoom

unread,
Jul 13, 2022, 11:23:42 AM7/13/22
to AGWA Support
when I said Shapefiles i meant data files( dem, soil data, and landcover).

Shea

unread,
Jul 14, 2022, 12:27:52 PM7/14/22
to AGWA Support
The Land cover change and hydrologic response - San Pedro and Land cover change and hydrologic response - South Platte both provide good introductions to AGWA and step you through watershed delineation through model simulation and viewing of results. Both tutorials have two parts; the first part of each uses the SWAT model and the second part of each uses the KINEROS model. You don't need to complete the first part to start the second part. If you are interested in continuous simulation over a period of years and using average annual results for erosion, then you should use the SWAT model and focus on those parts of the tutorials. If you are interested in event-based results and erosion from a specific storm/rainfall event, set of storms, or types of storms, then you should use the KINEROS model and focus on those parts of the tutorials.

Shea

Amna Kulsoom

unread,
Jul 18, 2022, 4:29:16 PM7/18/22
to AGWA Support
Hey, shea thanks for the help.
It's that now I m having a hard time trying to assign the home directory and workspace folder since I have tried different ways like creating a folder and inserting all the required folders and files inside but this strategy is not working. Can you tell me the right way to do it?
help home directory.PNG

Shea

unread,
Jul 19, 2022, 12:48:18 PM7/19/22
to AGWA Support
Download the AGWA 3.x directory (link below), unzip it, and set your home directory to it. It contains all the files and folders that are required.

Amna Kulsoom

unread,
Jul 26, 2022, 5:59:53 PM7/26/22
to AGWA Support
Hello shea.
I am at step 6, writing SWAT input files, but I cannot select.
Although I have delineation, discretization and parametrization, and swat ppt file.
HELP DESK.PNG

Amna Kulsoom

unread,
Jul 26, 2022, 6:41:31 PM7/26/22
to AGWA Support
okay, I get it, it said parameterization completed.
But was also showing soil status: FAILED.
how can I fix this?
Also, I obtained the soil data from FAO. ESRI file formate but in the video of AGWA support on youtube I saw how Microsoft access was used but there is a loophole in my case that I didn't did anything like that since I didn't receive any Microsoft access file.

Amna Kulsoom

unread,
Jul 28, 2022, 6:58:55 AM7/28/22
to AGWA Support
Can you tell me why this is happening, and how can I fix this? It would be a huge help.
soil.PNG

Amna Kulsoom

unread,
Jul 28, 2022, 7:08:23 PM7/28/22
to AGWA Support
For a study area outside the US, Is it correct to use this landcover lookup database?
landcover database query.PNG

Shea

unread,
Jul 29, 2022, 2:27:26 PM7/29/22
to AGWA Support
I'll try to address your issues in a single post.

>I am at step 6, writing SWAT input files, but I cannot select.
>Although I have delineation, discretization and parametrization, and swat ppt file.
Once a parameterization is complete, the ability to select a watershed in the Write SWAT Input Files step should be available. If it is not available, the reason is because the parameterization step failed, which is what your next message seems to indicate. Once a parameterization is complete without an error popping up like "Weighting the soil intersection failed" or being written to the textbox in the Parameterizer form with the message "Land Cover status: failed" or "Soil status: failed", then a watershed should be selectable to write model input files for.

>okay, I get it, it said parameterization completed.
>But was also showing soil status: FAILED.
>how can I fix this?
>Also, I obtained the soil data from FAO. ESRI file formate but in the video of AGWA support on youtube I saw how Microsoft >access was used but there is a loophole in my case that I didn't did anything like that since I didn't receive any Microsoft >access file.
An Access file is used as the soils database when using SSURGO or STATSGO2 soil data within the U.S. When using FAO soils, an Access database is not used because the FAO soils look-up tables are included in the AGWA\datafiles\fao\ directory.

>Can you tell me why this is happening, and how can I fix this? It would be a huge help.
We may need to iterate a few times to solve this, or if you can send me your input data I can take a look at it myself. To help troubleshoot, in the ArcMap document you're working in, open the Results window accessed via the Geoprocessing menu on the menu bar of ArcMap. After the parameterization has failed, see if there are any entries in the Geoprocessing window that also failed, indicated by a red X. Also, send me the the errors.txt file, which is located in the same directory as your ArcMap document for the project.
If you can send the input data, I will need the geodatabase containing the delineation and discretization, as well as your land cover raster.  

>For a study area outside the US, Is it correct to use this landcover lookup database?
No, that look-up table is for the conterminous United States NLCD (https://www.mrlc.gov/data/nlcd-land-cover-conus-all-years) from 2001 to present. The classes in mrlc2001_lut are similar to but not exactly the same as the USGS/Anderson classification available in the GLCC (Global Land Cover Characterization from the USGS; https://www.usgs.gov/centers/eros/science/usgs-eros-archive-land-cover-products-global-land-cover-characterization-glcc) data available globally. If you're using GLCC, there are several different classifications that are supported (see the readme at https://www.usgs.gov/media/files/eurasia-land-cover-characteristics-data-base-readme-version2 and the tab-delimited look-up table for Eurasia at https://www.usgs.gov/media/files/eurasia-land-cover-characteristics-data-base-version-20) in addition to the USGS/Anderson classification . Using the GLCC, you would create a look-up table for the GLCC by cross-walking values from the mrlc_lut to their closest corresponding class in the GLCC. There may be other more current global datasets, I am not sure, and of course if you have local data that would be even better. The process is the same whatever your dataset is though: cross-walk/match the classes in one of the look-up tables provided to the most similar class in the data that you're using to create a look-up table to use with your own data.

Shea

Amna Kulsoom

unread,
Jul 31, 2022, 5:37:23 PM7/31/22
to AGWA Support
Thank you shea I really appreciate this.

On Friday, July 29, 2022 at 11:27:26 AM UTC-7 Shea wrote:
I'll try to address your issues in a single post.

>I am at step 6, writing SWAT input files, but I cannot select.
>Although I have delineation, discretization and parametrization, and swat ppt file.
Once a parameterization is complete, the ability to select a watershed in the Write SWAT Input Files step should be available. If it is not available, the reason is because the parameterization step failed, which is what your next message seems to indicate. Once a parameterization is complete without an error popping up like "Weighting the soil intersection failed" or being written to the textbox in the Parameterizer form with the message "Land Cover status: failed" or "Soil status: failed", then a watershed should be selectable to write model input files for.

>okay, I get it, it said parameterization completed.
>But was also showing soil status: FAILED.
>how can I fix this?
>Also, I obtained the soil data from FAO. ESRI file formate but in the video of AGWA support on youtube I saw how Microsoft >access was used but there is a loophole in my case that I didn't did anything like that since I didn't receive any Microsoft >access file.
An Access file is used as the soils database when using SSURGO or STATSGO2 soil data within the U.S. When using FAO soils, an Access database is not used because the FAO soils look-up tables are included in the AGWA\datafiles\fao\ directory.

>Can you tell me why this is happening, and how can I fix this? It would be a huge help.
We may need to iterate a few times to solve this, or if you can send me your input data I can take a look at it myself. To help troubleshoot, in the ArcMap document you're working in, open the Results window accessed via the Geoprocessing menu on the menu bar of ArcMap. After the parameterization has failed, see if there are any entries in the Geoprocessing window that also failed, indicated by a red X. Also, send me the the errors.txt file, which is located in the same directory as your ArcMap document for the project.
If you can send the input data, I will need the geodatabase containing the delineation and discretization, as well as your land cover raster.  

>For a study area outside the US, Is it correct to use this landcover lookup database?
No, that look-up table is for the conterminous United States NLCD (https://www.mrlc.gov/data/nlcd-land-cover-conus-all-years) from 2001 to present. The classes in mrlc2001_lut are similar to but not exactly the same as the USGS/Anderson classification available in the GLCC (Global Land Cover Characterization from the USGS; https://www.usgs.gov/centers/eros/science/usgs-eros-archive-land-cover-products-global-land-cover-characterization-glcc) data available globally. If you're using GLCC, there are several different classifications that are supported (see the readme at https://www.usgs.gov/media/files/eurasia-land-cover-characteristics-data-base-readme-version2 and the tab-delimited look-up table for Eurasia at https://www.usgs.gov/media/files/eurasia-land-cover-characteristics-data-base-version-20) in addition to the USGS/Anderson classification . Using the GLCC, you would create a look-up table for the GLCC by cross-walking values from the mrlc_lut to their closest corresponding class in the GLCC. There may be other more current global datasets, I am not sure, and of course if you have local data that would be even better. The process is the same whatever your dataset is though: cross-walk/match the classes in one of the look-up tables provided to the most similar class in the data that you're using to create a look-up table to use with your own data.
I couldn't access a lookup table from GLCC so I did the crosswalking thing, which is what I have made.
Luckily It has worked and Parameterization was successfully performed but I want to be sure if the approach was correct.
I used the same lookup table but gave the closest corresponding class names from landcover data. 
landcover_lookuptable.PNG

Amna Kulsoom

unread,
Jul 31, 2022, 5:39:40 PM7/31/22
to AGWA Support
Thank you shea I really appreciate this.
I couldn't access a lookup table from GLCC so I did the crosswalking thing, which is what I have made.
Luckily It has worked and Parameterization was successfully performed but I want to be sure if the approach was correct.
I used the same lookup table but gave the closest corresponding class names from landcover data. 
Is it correct?

landcover_lookuptable.PNG

Amna Kulsoom

unread,
Jul 31, 2022, 5:49:27 PM7/31/22
to AGWA Support
Now, since the parameterization is completed.
I was trying to run a swat simulation.
But this is happening.

when selecting the ppt file, generated by AGWA at step 4.
And when I was choosing parameterization.

DETAILS:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Data.ConstraintException: Column 'WS' is constrained to be unique.  Value '10' is already present.
   at System.Data.UniqueConstraint.CheckConstraint(DataRow row, DataRowAction action)
   at System.Data.DataTable.RaiseRowChanging(DataRowChangeEventArgs args, DataRow eRow, DataRowAction eAction, Boolean fireEvent)
   at System.Data.DataTable.SetNewRecordWorker(DataRow row, Int32 proposedRecord, DataRowAction action, Boolean isInMerge, Boolean suppressEnsurePropertyChanged, Int32 position, Boolean fireEvent, Exception& deferredException)
   at System.Data.DataTable.InsertRow(DataRow row, Int64 proposedID, Int32 pos, Boolean fireEvent)
   at System.Data.DataRowCollection.Add(DataRow row)
   at AGWA2.Desktop.FormSWATWrite.cbxParameterization_SelectionChangeCommitted(Object sender, EventArgs e) in C:\Users\Shea\Documents\Visual Studio 2015\Projects\AGWA\branches\ArcGIS-10.5\AGWA2 Desktop\Forms\FormSWATWrite.vb:line 3062
   at System.Windows.Forms.ComboBox.OnSelectionChangeCommitted(EventArgs e)
   at System.Windows.Forms.ComboBox.OnSelectionChangeCommittedInternal(EventArgs e)
   at System.Windows.Forms.ComboBox.WmReflectCommand(Message& m)
   at System.Windows.Forms.ComboBox.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4515.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
ESRI.DADF.Core
    Assembly Version: 10.5.0.0
    Win32 Version: 10.5.0.6491
    CodeBase: file:///C:/Program%20Files%20(x86)/ArcGIS/Desktop10.5/bin/ESRI.DADF.Core.DLL
----------------------------------------
SWAT_HRUs
    Assembly Version: 0.0.0.0
    Win32 Version: 0.0.0.0
    CodeBase: file:///c:/SWAT/ArcSWAT/swat_hrus.dll
----------------------------------------
ESRI.ArcGIS.System
    Assembly Version: 10.5.0.0
    Win32 Version: 10.5.0.6491
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/ESRI.ArcGIS.System/v4.0_10.5.0.0__8fc3cc631e44ad86/ESRI.ArcGIS.System.dll
----------------------------------------
SWAT_PM2
    Assembly Version: 1.0.7536.10316
    Win32 Version: 1.0.7536.10316
    CodeBase: file:///c:/SWAT/ArcSWAT/SWAT_PM2.dll
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 10.0.0.0
    Win32 Version: 14.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4488.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4515.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
SWAT_WD
    Assembly Version: 1.1.7536.10316
    Win32 Version: 1.1.7536.10316
    CodeBase: file:///c:/SWAT/ArcSWAT/SWAT_WD.dll
----------------------------------------
ESRI.ArcGIS.ArcMapUI
    Assembly Version: 10.5.0.0
    Win32 Version: 10.5.0.6491
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/ESRI.ArcGIS.ArcMapUI/v4.0_10.5.0.0__8fc3cc631e44ad86/ESRI.ArcGIS.ArcMapUI.dll
----------------------------------------
ESRI.ArcGIS.Framework
    Assembly Version: 10.5.0.0
    Win32 Version: 10.5.0.6491
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/ESRI.ArcGIS.Framework/v4.0_10.5.0.0__8fc3cc631e44ad86/ESRI.ArcGIS.Framework.dll
----------------------------------------
GpMetadataFunctions
    Assembly Version: 10.5.0.0
    Win32 Version: 10.5.0.6491
    CodeBase: file:///C:/Program%20Files%20(x86)/ArcGIS/Desktop10.5/bin/GpMetadataFunctions.DLL
----------------------------------------
ESRI.ArcGIS.Geoprocessing
    Assembly Version: 10.5.0.0
    Win32 Version: 10.5.0.6491
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/ESRI.ArcGIS.Geoprocessing/v4.0_10.5.0.0__8fc3cc631e44ad86/ESRI.ArcGIS.Geoprocessing.dll
----------------------------------------
ESRI.ArcGIS.Geodatabase
    Assembly Version: 10.5.0.0
    Win32 Version: 10.5.0.6491
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/ESRI.ArcGIS.Geodatabase/v4.0_10.5.0.0__8fc3cc631e44ad86/ESRI.ArcGIS.Geodatabase.dll
----------------------------------------
ESRI.ArcGIS.SearchUI
    Assembly Version: 10.5.0.0
    Win32 Version: 10.5.0.6491
    CodeBase: file:///C:/Program%20Files%20(x86)/ArcGIS/Desktop10.5/bin/ESRI.ArcGIS.SearchUI.DLL
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4515.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4390.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4190.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
ESRI.ArcGIS.SearchControl
    Assembly Version: 10.5.0.0
    Win32 Version: 10.5.0.6491
    CodeBase: file:///C:/Program%20Files%20(x86)/ArcGIS/Desktop10.5/bin/ESRI.ArcGIS.SearchControl.DLL
----------------------------------------
ESRI.ArcGIS.SearchCore
    Assembly Version: 10.5.0.0
    Win32 Version: 10.5.0.6491
    CodeBase: file:///C:/Program%20Files%20(x86)/ArcGIS/Desktop10.5/bin/ESRI.ArcGIS.SearchCore.DLL
----------------------------------------
ESRI.ArcGIS.Carto
    Assembly Version: 10.5.0.0
    Win32 Version: 10.5.0.6491
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/ESRI.ArcGIS.Carto/v4.0_10.5.0.0__8fc3cc631e44ad86/ESRI.ArcGIS.Carto.dll
----------------------------------------
ESRI.ArcGIS.Search
    Assembly Version: 10.5.0.0
    Win32 Version: 10.5.0.6491
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/ESRI.ArcGIS.Search/v4.0_10.5.0.0__8fc3cc631e44ad86/ESRI.ArcGIS.Search.dll
----------------------------------------
ESRI.ArcGIS.SystemUI
    Assembly Version: 10.5.0.0
    Win32 Version: 10.5.0.6491
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/ESRI.ArcGIS.SystemUI/v4.0_10.5.0.0__8fc3cc631e44ad86/ESRI.ArcGIS.SystemUI.dll
----------------------------------------
ESRI.ArcGIS.Version
    Assembly Version: 10.5.0.0
    Win32 Version: 10.5.0.6491
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/ESRI.ArcGIS.Version/v4.0_10.5.0.0__8fc3cc631e44ad86/ESRI.ArcGIS.Version.dll
----------------------------------------
Accessibility
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Data.SqlXml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Data.SqlXml/v4.0_4.0.0.0__b77a5c561934e089/System.Data.SqlXml.dll
----------------------------------------
System.Xml.Xsl.CompiledQuery.1
    Assembly Version: 0.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Data.SqlXml/v4.0_4.0.0.0__b77a5c561934e089/System.Data.SqlXml.dll
----------------------------------------
Lucene.Net
    Assembly Version: 2.9.2.1
    Win32 Version: 2.9.2.1
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Lucene.Net/2.9.2.1__402f1553d5c332e7/Lucene.Net.dll
----------------------------------------
ESRI.ArcGIS.Geometry
    Assembly Version: 10.5.0.0
    Win32 Version: 10.5.0.6491
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/ESRI.ArcGIS.Geometry/v4.0_10.5.0.0__8fc3cc631e44ad86/ESRI.ArcGIS.Geometry.dll
----------------------------------------
Snowball.Net
    Assembly Version: 2.0.0.1
    Win32 Version: 2.0.0.1
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Snowball.Net/2.0.0.1__402f1553d5c332e7/Snowball.Net.dll
----------------------------------------
System.Data
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4455.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
ESRI.ArcGIS.MxCommands
    Assembly Version: 10.5.0.0
    Win32 Version: 10.5.0.6491
    CodeBase: file:///C:/Program%20Files%20(x86)/ArcGIS/Desktop10.5/bin/ESRI.ArcGIS.MxCommands.DLL
----------------------------------------
PresentationFramework
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4515.0
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.dll
----------------------------------------
WindowsBase
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4515.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll
----------------------------------------
PresentationCore
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4515.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/PresentationCore/v4.0_4.0.0.0__31bf3856ad364e35/PresentationCore.dll
----------------------------------------
ESRI.ArcGIS.Desktop.AddIns.Factory
    Assembly Version: 10.5.0.0
    Win32 Version: 10.5.0.6491
    CodeBase: file:///C:/Program%20Files%20(x86)/ArcGIS/Desktop10.5/bin/ESRI.ArcGIS.Desktop.AddIns.Factory.DLL
----------------------------------------
ESRI.ArcGIS.Desktop.AddIns
    Assembly Version: 10.5.0.0
    Win32 Version: 10.5.0.6491
    CodeBase: file:///C:/Program%20Files%20(x86)/ArcGIS/Desktop10.5/bin/ESRI.ArcGIS.Desktop.AddIns.DLL
----------------------------------------
ESRI.ArcGIS.MapCenter
    Assembly Version: 10.5.0.0
    Win32 Version: 10.5.0.6491
    CodeBase: file:///C:/Users/HP/AppData/Local/ESRI/Desktop10.5/AssemblyCache/%7B75701328-F0CC-4E65-B204-99944EDF5B93%7D/ESRI.ArcGIS.MapCenter.dll
----------------------------------------
System.Xaml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4515.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xaml/v4.0_4.0.0.0__b77a5c561934e089/System.Xaml.dll
----------------------------------------
Microsoft.mshtml
    Assembly Version: 7.0.3300.0
    Win32 Version: 7.0.3300.0
    CodeBase: file:///C:/Windows/assembly/GAC/Microsoft.mshtml/7.0.3300.0__b03f5f7f11d50a3a/Microsoft.mshtml.dll
----------------------------------------
SWAT_InputFileGen
    Assembly Version: 1.0.7536.10316
    Win32 Version: 1.0.7536.10316
    CodeBase: file:///c:/SWAT/ArcSWAT/swat_inputfilegen.dll
----------------------------------------
SWAT_InputFileEdit
    Assembly Version: 1.0.7536.10316
    Win32 Version: 1.0.7536.10316
    CodeBase: file:///c:/SWAT/ArcSWAT/swat_inputfileedit.dll
----------------------------------------
SWAT_RunSwat
    Assembly Version: 1.0.7536.10316
    Win32 Version: 1.0.7536.10316
    CodeBase: file:///c:/SWAT/ArcSWAT/swat_runswat.dll
----------------------------------------
ESRI.ArcGIS.ArcGlobe
    Assembly Version: 10.5.0.0
    Win32 Version: 10.5.0.6491
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/ESRI.ArcGIS.ArcGlobe/v4.0_10.5.0.0__8fc3cc631e44ad86/ESRI.ArcGIS.ArcGlobe.dll
----------------------------------------
ESRI.ArcGIS.ArcScene
    Assembly Version: 10.5.0.0
    Win32 Version: 10.5.0.6491
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/ESRI.ArcGIS.ArcScene/v4.0_10.5.0.0__8fc3cc631e44ad86/ESRI.ArcGIS.ArcScene.dll
----------------------------------------
ESRI.ArcGIS.GlobeCore
    Assembly Version: 10.5.0.0
    Win32 Version: 10.5.0.6491
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/ESRI.ArcGIS.GlobeCore/v4.0_10.5.0.0__8fc3cc631e44ad86/ESRI.ArcGIS.GlobeCore.dll
----------------------------------------
ESRI.ArcGIS.3DAnalyst
    Assembly Version: 10.5.0.0
    Win32 Version: 10.5.0.6491
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/ESRI.ArcGIS.3DAnalyst/v4.0_10.5.0.0__8fc3cc631e44ad86/ESRI.ArcGIS.3DAnalyst.dll
----------------------------------------
ESRI.ArcGIS.Display
    Assembly Version: 10.5.0.0
    Win32 Version: 10.5.0.6491
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/ESRI.ArcGIS.Display/v4.0_10.5.0.0__8fc3cc631e44ad86/ESRI.ArcGIS.Display.dll
----------------------------------------
AGWA2 Desktop Add In
    Assembly Version: 1.0.7610.17912
    Win32 Version: 1.0.7610.17912
    CodeBase: file:///C:/Users/HP/AppData/Local/ESRI/Desktop10.5/AssemblyCache/%7BDAC06919-CC9F-4B81-865F-CF2695C52768%7D/AGWA2%20Desktop%20Add%20In.dll
----------------------------------------
AGWA2 Models
    Assembly Version: 1.0.7610.17907
    Win32 Version: 1.0.7610.17907
    CodeBase: file:///C:/Users/HP/AppData/Local/ESRI/Desktop10.5/AssemblyCache/%7BDAC06919-CC9F-4B81-865F-CF2695C52768%7D/AGWA2%20Models.DLL
----------------------------------------
AGWA2 Desktop
    Assembly Version: 1.0.7610.17910
    Win32 Version: 1.0.7610.17910
    CodeBase: file:///C:/Users/HP/AppData/Local/ESRI/Desktop10.5/AssemblyCache/%7BDAC06919-CC9F-4B81-865F-CF2695C52768%7D/AGWA2%20Desktop.DLL
----------------------------------------
AGWA2 Utilities
    Assembly Version: 1.0.7610.17907
    Win32 Version: 1.0.7610.17907
    CodeBase: file:///C:/Users/HP/AppData/Local/ESRI/Desktop10.5/AssemblyCache/%7BDAC06919-CC9F-4B81-865F-CF2695C52768%7D/AGWA2%20Utilities.DLL
----------------------------------------
AGWA2 Metadata
    Assembly Version: 1.0.7610.17907
    Win32 Version: 1.0.7610.17907
    CodeBase: file:///C:/Users/HP/AppData/Local/ESRI/Desktop10.5/AssemblyCache/%7BDAC06919-CC9F-4B81-865F-CF2695C52768%7D/AGWA2%20Metadata.DLL
----------------------------------------
ESRI.ArcGIS.Editor
    Assembly Version: 10.5.0.0
    Win32 Version: 10.5.0.6491
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/ESRI.ArcGIS.Editor/v4.0_10.5.0.0__8fc3cc631e44ad86/ESRI.ArcGIS.Editor.dll
----------------------------------------
ESRI.ArcGIS.Catalog
    Assembly Version: 10.5.0.0
    Win32 Version: 10.5.0.6491
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/ESRI.ArcGIS.Catalog/v4.0_10.5.0.0__8fc3cc631e44ad86/ESRI.ArcGIS.Catalog.dll
----------------------------------------
System.Numerics
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
CustomMarshalers
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/CustomMarshalers/v4.0_4.0.0.0__b03f5f7f11d50a3a/CustomMarshalers.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
sw simulation error.PNG
swat simulation_ppt.PNG

Amna Kulsoom

unread,
Aug 3, 2022, 8:18:24 AM8/3/22
to AGWA Support
Also, how can I prepare weather data for AGWA??

Shea

unread,
Aug 3, 2022, 4:07:51 PM8/3/22
to AGWA Support
>Thank you shea I really appreciate this.
>I couldn't access a lookup table from GLCC so I did the crosswalking thing, which is what I have made.
>Luckily It has worked and Parameterization was successfully performed but I want to be sure if the approach was correct.
>I used the same lookup table but gave the closest corresponding class names from landcover data. 
>
>Is it correct?
I can't see the whole table or check it again the land cover raster you're using, but here are the requirements of the land cover look-up table for KINEROS. It must have a CLASS field that contains the values found in the land cover raster, and for each record in the table, the COVER, INT, N, and IMPERV fields should be populated. It looks like you've crosswalked the names from the look-up table to the names of the cover types in your land cover raster, but also make sure that the pixel values in the land cover raster match the CLASS field of the look-up table.

>Now, since the parameterization is completed.
>I was trying to run a swat simulation.
>But this is happening.

>when selecting the ppt file, generated by AGWA at step 4.
>And when I was choosing parameterization.
Is the "Simulate N/P?" checkbox checked in the Advanced Inputs tab? If so, do you still encounter the error with it unchecked? Can you send the .MDB file containing the delineation, discretization, and parameterization look-up tables.

Also, how can I prepare weather data for AGWA??
To simplify troubleshooting for now, I would focus first on getting a simulation running successfully before preparing observed weather data. What weather data do you have available to use? The SWAT user manual describes the format requirements for the different weather inputs. AGWA really only assists in preparing the precipitation inputs for SWAT, the rest of the weather parameters for SWAT are typically generated using SWAT's built-in weather generator and the closest weather station to your watershed. Since your watershed is not located in the US, you can find daily global weather data for SWAT at https://swat.tamu.edu/data/cfsr and global weather station data at the ArcSWAT 2012 Global Weather Database link at https://swat.tamu.edu/data/. To use the global weather station data, you need to determine the closest station in the database to your watershed, then extract the weather parameters into a .WGN file that SWAT can read. Referencing the SWAT user manual and using an existing WGN file as a guide is probably the most straightforward method for setting the file up properly. After you have the .WGN file created, you need to create a new WGN theme shapefile or (edit the existing WGN theme available in the AGWA\datafiles\wgn\ directory) that references the .WGN file you created. The WGN shapefile needs the following fields STATE, STATION, and DATAFILE fields to be recognized by AGWA. The STATE should be populated with a folder name that resides in the \AGWA\datafiles\wgn\ directory, the .WGN file you created should be placed in that folder, and the name of that .WGN file should populate the DATAFILE field, and the name of your station should populate the STATION field. There are a lot of steps here, which is why I initially recommend getting the simulation running without using your own weather data.

Shea
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
Message has been deleted
0 new messages