# SPHY v3.1 source code

The SPHY v3.1 source code can be obtained from the SPHY model website (<https://github.com/FutureWater/SPHY/tags>). The source code is available as a zip-file (SPHY3.1.zip) and needs to be extracted to a folder on your hard drive. This folder can be zipped anywhere on the PC depending on where you want to keep all the model files (D:\SPHY3\_1). It is important to note that do not use space in the folder names for SPHY. After unzipping the contents of the SPHY3.1 zip to a folder of your preference, installation has been completed successfully. Alternatively the code can be cloned using git from the github page.

Open the command prompt and browse to the SPHY3.1 folder where all the SPHY source codes (.py) files are copied. This can be done by copying and pasting the SPHY source code folder:

\-         *cd D:\SPHY3\_1\\* to the command prompt.

Also, activate the environment by typing:

\-         *conda activate pcraster*.

After creating the required input files (see section 5), the SPHY model can be run from the command line by typing *python sphy.py sphy\_config.cfg*.
