# 5.12 Running the model

Figure 47 provides an overview of the Run Model tab. Before running the model you need to specify your environmental settings, which are setting the PATH of the PCRaster bin folder and selecting the python executable (python.exe).

The PCRaster bin PATH can be found under the PCRaster installation folder (see Section 3.1.3). This folder can be selected by clicking the Select path button.

The python executable can be found under the Python installation folder (see Section 3.1.1), and can be selected by clicking the Select python.exe button.

<figure><img src="https://4210278315-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68y0QNUHmAMyqeH7yW67%2Fuploads%2FL8MtqRKlmlkbiweoW2Ja%2Fafbeelding.png?alt=media&#x26;token=c3592ba6-edc4-4707-a2a2-bdfaea027fb1" alt=""><figcaption><p>Figure 47: Overview of the Run Model tab.</p></figcaption></figure>

After setting these environmental settings you can run the model by pressing the Run model button. During model execution the command line output will be reported in the log screen as is shown in Figure 48. Model run can be cancelled anytime by pressing the Cancel model run button. If this is done, then previous model output will NOT be overwritten. Figure 49 shows an example of the log screen output of a cancelled model run.&#x20;

<figure><img src="https://4210278315-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68y0QNUHmAMyqeH7yW67%2Fuploads%2F5aNcej4sTkFq2O68Sdsk%2Fafbeelding.png?alt=media&#x26;token=a1924848-415a-4910-8cc1-0ed843a9d4d9" alt=""><figcaption><p>Figure 48: Example of log screen output during model run.</p></figcaption></figure>

<figure><img src="https://4210278315-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68y0QNUHmAMyqeH7yW67%2Fuploads%2FNk6oyF2wRUweND92l7ml%2Fafbeelding.png?alt=media&#x26;token=d68e9d07-b5f9-4405-8271-d6d025ae81a2" alt=""><figcaption><p>Figure 49: Example log screen output of cancelled model run.</p></figcaption></figure>

If an error occurs after the Run model button has been clicked, then a screen similar to that of Figure 49 will be shown. In that case you need to check your model input/parameters, environmental settings, or a combination of these.

<figure><img src="https://4210278315-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68y0QNUHmAMyqeH7yW67%2Fuploads%2FSXUlxtQ66F6qI7UStpnz%2Fafbeelding.png?alt=media&#x26;token=9c07a497-1d52-418c-a1ee-a7bbb3e398af" alt=""><figcaption><p>Figure 50: Example log screen output of successful model run. </p></figcaption></figure>

If your model run was successful, then a screen similar (without red line) to Figure 50 will be shown. The text “Model run was successfully!” indicates that model execution was successfully.

At this stage you still can click the Cancel model run to prevent previous model output to be overwritten. Otherwise the GUI continues with converting model output (part below red line) to a suitable output format. Converting the model output may take a long time, depending on the length of the model simulation period and the settings in the Report options tab. The line with the three dots (…) indicates that the GUI is still working to convert the output.

After the line “Converting model output maps completed!” is shown, you can continue to the Visualize results tab in order to analyze model output.
