What this tutorial covers
This tutorial explains how to create a SwaNET project using the DEM, landuse, and soil map available at the MAGNET server. It assumes you already have a MAGNET account, which is required for loading SwaNET projects, running simulations, saving models, and submitting jobs.
Inputs
Server-based watershed boundary, DEM, landuse, and soil datasets.
Core outputs
Watershed map, stream network, HRU map, and SWAT-ready input files.
Use case
Interactive project setup for a complete SwaNET watershed modeling workflow.
End-to-end model creation sequence
Load the interactive SwaNET model creation interface
Click Create SWAT Model at the top left of the MAGNET SwaNET interface. If a prompt appears asking to load a previous project, click Cancel. The interactive model creation interface opens.
Load the DEM watershed shapefile and DEM
If the mgnSWAT Select DEM interface is not already visible, click Watershed boundary on the upper left menu. Under Use shape file to extract DEM, check Load watershed map from server. Then zoom to the Kalamazoo area in southwestern Michigan and click on the background map so latitude and longitude populate automatically.
Next, select DataCenter 1 (US only) so the watershed map comes from the US watershed database. Choose Level4 (HUC 8-digit), then click Load Shapefile. The selected watershed boundary is extracted and displayed on the map.
Under Select DEM resolution, choose 90 m, then click Load DEM from Magnet server. After the success message appears, click OK. The DEM is extracted, loaded into the project, plotted, and overlaid on the background map.
Create the stream network
Once the DEM has been loaded, the stream creation interface appears automatically. You can also open it by clicking Threshold selection on the left.
Change the threshold area to 5000 ha, then click Create streams. The stream network is generated and overlaid on the map.
Select the outlet and finalize the watershed
After the stream network is created, the outlet selection interface appears. You can also open it through Outlet selection in the left menu.
Check Use default outlet under Select outlets, then click Create watershed. A message appears confirming watershed delineation and reporting the number of subbasins. Click OK.
Now the Finalize watershed button is active. Click it, then confirm the completion message. The watershed is finalized and the DEM is cropped to watershed extent and overlaid on the background map.
Create HRUs
After watershed finalization, the HRU creation interface appears automatically. You can also open it through HRU creation on the left.
First, load the landuse map. Keep Upload from Magnet server checked, select 400 m, and click Upload. After the confirmation message, the landuse map is displayed on the map.
Next, load the soil map the same way: keep Upload from Magnet server checked, select 400 m, and click Upload. After the success message, the soil map appears on the map.
Leave the slope bands at their default value, then click Create HRUs. A confirmation message reports the number of potential HRUs, and the full potential HRU map is overlaid on the background map.
Manage maps and visualization
The Manage maps interface lets you control which overlays are displayed, adjust opacity, show or hide markers, display legends, and visualize the project in 3D.
Show or hide maps
Select a map from the overlay list and click Hide or Show.
Opacity
Select an overlay, enter a new opacity value, and click Change.
Markers and legends
Toggle marker visibility, and check the DEM, landuse, or soil legend boxes as needed.
Click View in 3D to open the 3D visualization interface, then explore the available controls. The help icon in the upper left provides additional assistance.
Select the final HRUs
When HRU creation is complete, the HRU selection interface appears. It can also be opened by clicking HRU selection on the left.
For this tutorial, select HRUs by area. Check Filter by area, make sure Percent of subbasin is selected under threshold method, then set the threshold to 10. You can drag the slider or type the value manually. Finally, click Finalize HRUs.
After processing, a prompt reports the total number of subbasins and HRUs. Click OK.
Write SWAT input files and load the project
After the HRU selection process is complete, the writing interface opens. You can also access it through Write SWAT input files on the left.
For the Kalamazoo example, choose WGEN_US_FirstOrder as the weather generator file. Check Test run SWAT, then click Write input files.
After the success message appears, click OK. A second prompt asks whether to load the recently completed SwaNET project. Click OK again.
The finished SwaNET project opens in another interface where you can edit input files, update weather data, calibrate the model, run the model, and visualize outputs.
What you have built
Watershed
Delineated subbasins and a finalized watershed extent.
Hydrology
Stream network and HRU structure consistent with the selected inputs and thresholds.
SWAT setup
Project-specific SWAT input files generated and tested.
Next actions
Calibrate, run scenarios, update weather data, and inspect results.
Congratulations - you have interactively created a complete SwaNET project. This tutorial ends at the point where the project is loaded and ready for editing, calibration, simulation, and visualization.
Frequently asked questions
What is the main purpose of this tutorial?
It walks through the complete interactive setup of a SwaNET watershed model in MAGNET4WATER, from watershed boundary and DEM loading to HRU generation and writing SWAT input files.
Why is DEM loading such a critical step?
The DEM controls flow direction, stream extraction, and watershed delineation. Because those outputs drive later model structure, DEM quality matters throughout the workflow.
What does the stream threshold area control?
It controls how dense the extracted stream network becomes. This tutorial uses 5000 ha, matching the original example.
What are HRUs in this workflow?
Hydrologic Response Units are landuse-soil-slope combinations within subbasins. SWAT uses them to represent hydrologic variability across the watershed.
Why does the tutorial apply a 10% HRU threshold?
It filters final HRUs by area so that only combinations covering at least 10% of a subbasin are retained. This simplifies the model while preserving major watershed characteristics.