Desktop interface to SWAT+ allowing the user to import a project from GIS, modify SWAT+ input, write the text files, and run the model.
Read the documentation at swatplus.gitbook.io/docs and join the user group to be notified of new releases.
- Install Python 3 (version 3.10 and up)
- Set up virtual environment
- Install
pipenv
following the instructions here. - From command prompt, go to source code
/src/api
directory - Create a directory
.venv
if it does not already exist - Run
pipenv install
- Run
pipenv --py
and confirm the python location matches thepythonPath
in/src/main/static/appsettings.json
- Install
- Install Node.js (version 18 LTS)
- Install required Node.js packages
- From command prompt, go to the root directory of the source code
- Run
npm install
- From command prompt, go to the root directory of the source code
- In Linux/Mac, you may need to set permissions on the electron package distribution:
cd node_modules/electron/dist
sudo chown root chrome-sandbox
sudo chmod 4755 chrome-sandbox
- Run
npm run dev
- From
/src/api
run the following depending on your OS:- Windows:
python-build-windows
- Linux:
sh python-build-linux.sh
- MacOS:
sh python-build-mac.sh
- Windows:
- From the root of the source code directory run the following depending on your OS:
- Windows:
npm run build:win
- NOTE: If you encounter errors during this step, be sure to enable Developer Mode on your PC
- Linux:
npm run build:linux
- MacOS:
npm run build:mac
- Windows:
- Program will be in
/release/dist