Skip to content

Input reference

This section describes the SWAT+ input files for revision 62.0.1. Each page gives the purpose of a file, its columns with units and defaults, how the model uses the values, an example from the reference datasets, and the files it is linked to. Where the code behaves in a way a user would not expect (a column that is read but has no effect, a default that differs from the one SWAT+ Editor writes), the page says so.

Every page was checked against the SWAT+ source at the commit recorded as verified_at_commit in its front matter. Where the source and older documentation disagree, the pages follow the source. The last section of each page, Sources, links to the Fortran routines and lists the variable names for developers.

file.cio names every other input file, so it is the place to start.

Older projects

A project set up for an earlier revision needs these changes before it runs correctly with 62.0.1:

Simulation control

  • file.cio: master index. Names the input file for every category, the weather data folders and the output folder.
  • time.sim: simulation period and number of time steps per day.
  • print.prt: warm-up years, daily print window and the output files written at each interval.
  • object.cnt: basin name, areas and the number of spatial objects of each type.

Basin parameters

  • codes.bsn: basin-wide method codes (PET method, channel routing, carbon model, runoff method and others).
  • parameters.bsn: basin-wide coefficients for runoff, peak rate, nutrients, pesticides, routing, lapse rates, erosion and CO₂.
  • carbon.bsn: parameters of the dynamic soil carbon model.
  • carbon_lyr.bsn: decomposition rates and CO₂ fractions of the dynamic soil carbon model, for the surface layer and the deeper layers.

Spatial objects and connectivity

Climate

  • Climate files: weather stations (weather-sta.cli), weather generator statistics (weather-wgn.cli), the lists of observed data files and atmospheric deposition.
  • *.pcp: measured daily or sub-daily precipitation for one gauge.
  • *.tmp: measured daily maximum and minimum air temperature for one gauge.
  • *.tem: temperature files with the .tem extension, read like .tmp files.
  • snow.sno: snowfall, snowmelt and snow cover parameters.

Soils and land use

Channels

Aquifers, reservoirs and wetlands

Management

Initial conditions

Structural practices

  • Structural practice files: tile drains, septic systems, filter strips, grassed waterways, user-defined practices, the septic and urban databases, and saturated buffers.

Pollutants

Groundwater

  • gwflow: the cell-based groundwater module, used in place of the lumped aquifers when gwflow = 1 in codes.bsn.

Salts and constituents

Water allocation

  • Water allocation: places of use, points of diversion and return, and the treatment, use, tower, canal, pipe and outside-basin files.
Sources