0Getting Started
By default, SWAT uses simulated weather data generated from monthly statistics. For more accurate modeling, you can replace this with observed weather data from real gauging stations. This significantly improves model accuracy, especially for calibration.
Why use observed weather? Simulated weather is statistically generated and may not capture actual storm events, droughts, or temperature extremes. Observed data from NOAA, CFSR, or PRISM reflects real conditions and is essential for meaningful calibration and validation.
Click Weather Data on the SwaNET menu to open the weather data interface.
The random number seed cycle code controls SWAT's internal weather generation. Leave it at 0 unless you need reproducible simulated weather results.
1Download from MAGNET4WATER Server
Three observed weather databases are available directly from the server.
Which source to choose: Use CFSR for global coverage with all five variables. Use NOAA for long US records (back to 1900) of temperature and precipitation. Use PRISM for high-quality US gridded data (slower to download but higher spatial resolution).
1a. NOAA and CFSR Data
- Click
NOAA/CFSR/PRISM. SelectNOAAorCFSRfrom the dropdown. - Set the bounding box: use model bounds (default) or add a buffer in degrees for a wider search area.
- Click
Load stations. Station locations appear as pushpins on the map. - Select the data type to download (
All availableor a specific variable). ClickDownload data. - Click any pushpin to view station info. Select a parameter and click
Showto plot downloaded data. - Set the time period and data type to apply. Select stations (all or specific ones).
- Click
Apply to SWAT. Weather files are created and applied to the model.
1b. PRISM Data
PRISM provides continuous raster data extracted to subbasin centroids. It is slower to download but offers higher spatial resolution.
- Select
PRISMfrom the dropdown. Select data type and set the time period first (required for PRISM). - Click
Download data. Enter subbasin numbers separated by commas. It is recommended to select only a few subbasins to save time. - Select data type and stations to apply, then click
Apply to SWAT.
Important: After applying weather data from any source, click Save Edits on the weather interface to update the SWAT input files.
2Upload Weather Data from Local Computer
Upload your own observed weather files for each variable independently.
2a. Precipitation
- Check
Observednext to "Precipitation data." Upload options appear. - Import a new file or select a previously uploaded one.
- Set rainfall time step (0 for daily), distribution code (0 for skewed), and number of gauges.
File format (single station): CSV with header lines for STATION, LATITUDE, LONGITUDE, ELEVATION, followed by date,value rows. Dates in yyyy/mm/dd format. Units in millimeters. Use -99.0 for missing values. Multiple stations repeat the header block.
2b. Temperature
Same process as precipitation. Temperature files use CSV format with Tmax and Tmin columns in degrees Celsius (date,Tmax,Tmin per row).
2c. Humidity, Solar Radiation, and Wind Speed
Follow the same upload process for each variable. Relative humidity is expressed as a fraction (0 to 1). Solar radiation uses MJ/m2. Wind speed uses m/s.
Do not forget to click Save Edits after configuring all weather data to update the SWAT input files.
Frequently Asked Questions
Which weather data source should I use?
What happens if I use simulated weather?
How do I handle missing weather data?
-99.0 for any missing values. SWAT will use the weather generator to fill gaps. Make sure every date has a row, even if the value is -99.0, since SwaNET reads dates sequentially from the first date.