SDC Sphy Manual
  • 📚Readme
  • manual
    • SPHY Manual
      • 1. Introduction
      • 2. Theory
        • 2.1 Background
        • Modules
        • Reference and potential evaporation
        • Dynamic vegetation processes
        • Snow processes
        • Glacier processes
        • Soil water processes
        • Soil erosion processes
        • Routing
      • 3. Applications
        • Irrigation management in lowland areas
        • Snow- and glacier-fed river basins
        • Flow forecasting
      • 4. Installation of SPHY
      • 5. SPHY model GUI
        • 5.1 Map canvas layers and GUI interactions
        • 5.2 Top menu buttons
        • 5.3 General settings
        • 5.4 Climate
        • 5.5 Soils
        • 5.6 Groundwater
        • 5.7 Land use
        • 5.8 Glaciers
        • 5.9 Snow
        • 5.10 Routing
        • 5.11 Report options
        • 5.12 Running the model
        • 5.13 Visualizing model output
      • 6. SPHY model preprocessor v1.0
        • 6.1 Overview
        • 6.2 General settings
        • 6.3 Area selection
        • 6.4 Modules
        • 6.5 Basin delineation
        • 6.6 Stations
        • 5.7 Meteorological forcing
      • 7. Build your own SPHY-model
        • Select projection extent and resolution
        • Clone map
        • DEM and Slope
        • Delineate catchment and create local drain direction map
        • Preparing stations map and sub-basins map
        • Glacier fraction map
        • Soil hydraulic properties
        • Other static input maps
        • Meteorological forcing map series
        • Open water evaporation
        • Soil erosion model input
        • Sediment transport
        • Reporting
      • Appendix 1: Input and Output
      • Appendix 2: Hindu Kush-Himalaya database
      • References
      • Copyright
Powered by GitBook
On this page
  1. manual
  2. SPHY Manual
  3. 5. SPHY model GUI

5.3 General settings

Previous5.2 Top menu buttonsNext5.4 Climate

Last updated 1 year ago

5.3.1 Folder selection

Figure 29 shows an overview of the General settings tab. As soon as you start a new project, the folder selection settings should be completed first. If this is not set correctly, then errors will show up. First of all, the GUI needs to know where your SPHY model source code is located. By clicking the Select sphy.py folder you are asked to select the folder in which the sphy.py file can be found. If you select a folder in which no sphy.py file can be found, then you will receive a notification as is shown in Figure 30. As was mentioned in Section 4.3.1, it is mandatory to have the SPHY model source code on the same disk as your SPHY model interface project.

The next step is to set your SPHY model input and output folders. The in- and output folders should be on the same disk as your SPHY model source code because these folders are used as relative paths in the model. All the model input data (maps, tables, etc.) that is used throughout setting up your model in the GUI should be located inside the Input folder.

The output folder is the location where all the model output will be saved during execution of the model. The model output data in this folder will be parsed to the Visualize results tab, which allows you to select certain output to be added to the map canvas. This is described in detail in Section 4.14.

5.3.2 Period of simulation

The period of simulation allows you to change the start and end date of your simulation. It should be noted that the start date always has to correspond with the first climate forcing file (*.001). Setting the end date is an interesting option if the user only wants to model/study for example the first year out of a period of 20 years of data. This may be used to check if all the model input is correctly set before executing the entire period of 20 years, which can take a long time.

5.3.3 Coordinate system

The default coordinate system used in the SPHY model GUI is WGS 84. This corresponds with EPSG:4326[SK|F1] . It is important to specify the coordinate system at the beginning of your SPHY model project and keep this coordinate system throughout the SPHY model project. If you change the coordinate system halfway your project, then maps will not align in QGIS.

5.3.4 Catchment settings

The catchment settings basically define the shape and orography of your river basin. The user has to select five spatial maps that define the basin of interest. Table 2 provides an overview of these maps. Each of these 5 maps can be selected and added to the map canvas by clicking the Select map button. After clicking this button, you will be referred to the Input folder that has been set under Section 4.4.1. Within this folder you are asked to select the map of interest and to click on Open to add the map to the GUI and the QGIS map canvas. This is illustrated in Figure 31 for the DEM map.

After these 5 maps have been set, the user can continue with the next tab: Climate.

Table 2: Catchments settings maps.

Map name
Description

Clone map

Mask of catchment. Defines the basin for cells being True.

DEM map [MASL]

Digital Elevation Model. Defines for each cell the elevation in Meters Above Sea Level [MASL].

Slope map [-]

Defines for each cell the slope [-], based on the DEM.

Sub-basins map

Map with cells belonging to the same sub-basin having the same unique ID. Used for calculation of sub-basin fluxes in mm.

Stations map

Nominal map with unique IDs for cells identified as being a location where time-series output is required. Non-station cells have zero values.

In order to present the model input and output map correctly in the QGIS map canvas, you need to specify the coordinate system of your area of interest. The coordinate system must be specified in EPSG. You can search for the corresponding EPSG number on this website:

http://spatialreference.org/ref/epsg/
Figure 29: Overview of the General settings tab.
Figure 30: Error message indicating that no sphy.py can be found in the selected folder.
Figure 31: Selecting a DEM map in the catchment settings.