🌾 SwaNET · Quick Tutorial 14 of 19

Watershed Delineation & Stream Network

A complete walkthrough for creating a SwaNET project, loading a DEM from multiple sources, and generating stream networks for SWAT watershed modeling.

Tutorial 1 of SeriesPrereq: MAGNET4WATER Account~15 min read

What You'll Learn

DEM LoadingUpload from local files, MAGNET server, or DataNet — with automatic UTM reprojection
Shapefile BoundariesDraw, upload, or load watershed boundaries from HUC / HydroSHEDS databases
Stream Burn-inSuperimpose known stream networks onto DEMs for accurate drainage paths
Stream CreationControl subbasin count through threshold area selection and create stream networks

0Getting Started

Watershed delineation is the first step in building a SWAT model with SwaNET. The process begins by loading a Digital Elevation Model (DEM), then generating a stream network from that terrain data.

ℹ️

Prerequisites: You need a MAGNET4WATER account to submit jobs for loading SwaNET projects, running simulations, and saving models. Create an account here.

To begin, click Create SWAT Model at the top left of the SwaNET model interface.

Loading interactive watershed delineation interface
Figure 1. Loading interactive watershed delineation interface

A new interface appears with multiple options for loading a DEM.

DEM loading interface
Figure 2. DEM loading interface

Three Ways to Load a DEM

💻
Local Computer
Upload your own TIF or IMG raster file
🌐
MAGNET Server
Extract DEM using a shapefile boundary
🗄️
DataNet
Browse and transfer from GeoServer catalogs

1Load DEM from Local Computer

The simplest approach: upload a DEM raster file directly from your machine.

Upload a New DEM

  1. Check the box next to Import, then click Import. Browse to your file, select it, and click Open. The file uploads to the MAGNET server and its name appears in the dialog.
  2. Click Load DEM.
Loading a new DEM from local computer
Figure 3. Loading a new DEM from local computer

A new SwaNET project is created, the DEM is copied into your SwaNET folder, and the DEM/hillshade map is displayed.

DEM and hillshade loaded
Figure 4. DEM and hillshade loaded
💡

Auto-projection: SwaNET requires DEMs in a projected coordinate system. If yours is in geographic coordinates (lat/lon), it will be automatically reprojected to the local UTM zone. Supported formats: .tif and .img.

Load a Previously Uploaded DEM

  1. Click Use Uploaded File.
  2. Select a file from the dropdown list.
  3. Click Load DEM.
Loading previous uploaded DEM
Figure 5. Loading previous uploaded DEM

2Load DEM from MAGNET Server

MAGNET's built-in DEM database lets you extract terrain data with just a few clicks. You provide a boundary shapefile, and the server handles the rest. There are four ways to supply this boundary.

2a. Draw a Shape on the Map

  1. Select Draw a shape on the map under "Use shape file to extract DEM."
  2. Click Draw Shape and draw a bounding box around your area of interest. Redraw as many times as needed.
  3. Click Save Shape. The shape is uploaded, saved, and plotted on the map.
Drawing a shape as a model boundary
Figure 6. Drawing a shape as a model boundary
Shape drawn on the map
Figure 7. Shape drawn on the map

2b. Upload a Watershed Shapefile

You can upload your own shapefile for DEM extraction. Accepted formats: .zip (with .shp, .prj, .dbf minimum) or .geojson.

Upload a New Shapefile

  1. Select Upload a watershed shape file.
  2. Check the box next to Import and click it.
  3. Browse to the file, select it, and click Open.
  4. Click Load Shapefile.
Uploading a new shape file
Figure 8. Uploading a new shape file
User shape file plotted in background map
Figure 9. User shape file plotted in background map

Load a Previously Uploaded Shapefile

  1. Select Upload a watershed shape file.
  2. Click Use Uploaded File.
  3. Choose a file from the dropdown list.
  4. Click Load Shapefile.
Loading a previously uploaded shape file
Figure 10. Loading a previously uploaded shape file

2c. Upload Shapefile from DataNet

DataNet is MAGNET's platform for browsing and downloading raster/vector data from GeoServers.

  1. Select Upload a watershed shape file, then click Upload From DataNet.
  2. On first click, a warning appears — click OK. A DataNet tab opens; close its login prompt and return to SwaNET.
  3. Click Upload from DataNet again. Switch to the DataNet tab.
  4. In DataNet: click Show Layers → expand Data Space → search for your layer (e.g., GlobalWatersheds) → filter by WFSGet Layers.
  5. Check the desired layer (e.g., World GlobalWatershed_Level5). Navigate to your area.
  6. Use Draw Tool → Regular to draw a rectangle inside your target watershed.
  7. Click Data Manipulation → Transfer. Select WFS as the service. Click Send.
  8. Return to SwaNET and accept the data transfer prompts. Click Load Shapefile.
Loading a shape file from DataNet
Figure 11. Loading a shape file from DataNet
DataNet page not found warning
Figure 12. DataNet page not found warning
Selecting watershed shape file in DataNet
Figure 13. Selecting watershed shape file in DataNet
Data transfer interface in DataNet
Figure 14. Data transfer interface in DataNet
Data receive notification
Figure 15. Data receive notification
Loading shape file from MAGNET server
Figure 16. Loading shape file from MAGNET server

2d. Load Watershed from MAGNET Server

Instantly load HUC (US) or HydroSHEDS (global) watershed boundaries by clicking a point on the map.

  1. Select Load watershed map from server. Pan/zoom to your area of interest.
  2. Click a point on the map. Latitude and longitude are captured.
  3. Choose the data source: DataCenter 2 (Global) for HydroSHEDS, or DataCenter 1 (US only) for HUC.
  4. Select the watershed level — from Level 1 (HUC 2-digit, largest) to Level 6 (HUC 12-digit, smallest).
  5. Click Load Shapefile.
Loading watershed shape file from MAGNET server
Figure 17. Loading watershed shape file from MAGNET server

2e. Load the DEM

Once any shapefile boundary is loaded:

  1. Select the DEM resolution from the dropdown. The most suitable resolution is selected by default.
  2. Click Load DEM from Magnet server. The server extracts, merges, and crops the DEM tiles to your boundary.
Loading DEM from MAGNET server
Figure 18. Loading DEM from MAGNET server
⚠️

Resolution limits: In the US, DEM resolution up to 10 m is available. Outside the US, higher-resolution DEMs are not currently available (90 m typical).

3Load DEM from DataNet

DEM rasters can be loaded directly from DataNet's GeoServer catalog — either with or without a pre-defined watershed boundary.

3a. Without a Bounding Box

  1. Click Load DEM from DataNet. On first click, dismiss the warning, then click again after DataNet opens.
  2. In DataNet: Show Layers → expand Data Space → search keywords (e.g., DEM90m Michigan) → filter by WCSGet Layers.
  3. Check the desired raster layer (e.g., USA Michigan Michigan DEM 300m).
  4. Use Draw Tool → Regular to draw a rectangle around your area of interest.
  5. Data Manipulation → Transfer → select WCSSend.
  6. Return to SwaNET and accept the data transfer. The DEM is loaded and plotted.
Selecting DEM from DataNet
Figure 19. Selecting DEM from DataNet
Loading DEM from DataNet
Figure 20. Loading DEM from DataNet
Data transfer interface on DataNet
Figure 21. Data transfer interface on DataNet
Data receive notification
Figure 22. Data receive notification
Data overwrite notification
Figure 23. Data overwrite notification

3b. With a Bounding Box

If you've already loaded a shapefile boundary (from Section 2), repeat the DataNet workflow above. The key difference: no "no domain polygon" warning appears, and you don't need to draw a rectangle — the existing boundary is used automatically.

4Create Stream Network

After loading the DEM, the stream network creation interface appears (also accessible via the Threshold selection tab). This interface lets you optionally burn in an existing stream network, set the drainage threshold, and generate streams.

Stream network creation interface
Figure 24. Stream network creation interface

4a. Burn-in Stream Network (Optional)

Burning in superimposes a known stream network onto the DEM, forcing derived drainage paths to match real-world stream positions. Especially useful in flat terrain.

💡

When to burn in: Use this when you have a reliable stream network shapefile and want model streams to follow known channel paths. Accepted formats: .zip (with .shp, .prj, .dbf) or .geojson.

Upload a New Stream Shapefile

  1. Check Burn in existing stream network.
  2. Check Import and click it. Browse to your stream shapefile and upload.
  3. Click Burn. The DEM is modified and the map updates.
Uploading user shape file as burn-in stream network
Figure 25. Uploading user shape file as burn-in stream network

Use a Previously Uploaded File

  1. Check Burn in existing stream network.
  2. Click Use Uploaded File and select from the dropdown.
  3. Click Burn.
Loading previously loaded burn-in stream network
Figure 26. Loading previously loaded burn-in stream network

You can also load a burn-in file from DataNet following the same transfer workflow described in Section 2c.

4b. Threshold Selection & Stream Creation

The threshold area is the minimum drainage area required to form the origin of a stream. It directly controls the density of your stream network and the number of subbasins.

📐

Key relationship: Larger threshold → fewer, larger subbasins. Smaller threshold → more, smaller subbasins. Adjust iteratively until you have the subbasin density your modeling goals require.

  1. A default number of cells and area are provided. Modify either value as needed — they are linked.
  2. Click Create streams. The stream network is generated and displayed. Repeat as needed.
Selecting threshold and creating stream network
Figure 27. Selecting threshold and creating stream network
Stream network
Figure 28. Stream network

5View DEM Properties

Click DEM properties to expand a panel showing your DEM's metadata: bounding box extents (North/South/East/West), cell size, cell area, spatial reference system, and the full projection string (e.g., WGS 1984 UTM Zone 16N).

DEM properties
Figure 29. DEM properties

This information is useful for verifying that your DEM is in the correct coordinate system and covers your intended study area.

Frequently Asked Questions

What DEM formats does SwaNET support?
SwaNET supports TIF and IMG raster formats. If the uploaded DEM uses a geographic coordinate system (lat/lon), it is automatically reprojected to the local UTM zone.
What is the threshold area, and how do I choose one?
The threshold area is the minimum drainage area needed to form a stream origin. Start with the default value, generate streams, and adjust iteratively: increase for fewer subbasins, decrease for more.
What DEM resolutions are available on the MAGNET server?
Within the US, resolutions up to 10 m are available. Outside the US, 90 m is typically the highest. The system selects the most appropriate resolution by default.
What shapefile formats are accepted?
A .zip file containing at minimum .shp, .prj, and .dbf files, or a GeoJSON file.
When should I use burn-in stream network?
When you have a reliable stream network shapefile and want model-derived streams to match known channels — particularly valuable in flat terrain.
What are the HUC watershed levels?
HUC levels range from Level 1 (2-digit, major river basins) to Level 6 (12-digit, individual sub-watersheds). Choose the level matching your study scale.
Can I use DataNet for areas outside the US?
Yes. DataNet provides global datasets including HydroSHEDS. The World DEM layer provides global coverage.