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
pipenvfollowing the instructions here. - From command prompt, go to source code
/src/apidirectory - Create a directory
.venvif it does not already exist - Run
pipenv install - Run
pipenv --pyand confirm the python location matches thepythonPathin/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/distsudo chown root chrome-sandboxsudo chmod 4755 chrome-sandbox
- Run
npm run dev
- From
/src/apirun 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