Keywords

1 Introduction

Floods are a natural phenomenon associated with extraordinary rain events that are repeated with a period of return. The “El Niño” phenomenon, climate change, and the creation of large impervious surfaces due to the growth of paved urban areas or obsolete drainage networks contribute to increasing flood episodes. This entails an increased risk of floods that usually have economic consequences, loss of human life, destruction of property, roads, etc. (Fortnam et al., 2021).

In Ecuador, phenomena such as “El Niño” generate extraordinary rain events that cause flooding in cities and fields. It is necessary to design a tool that quantifies and anticipates floods, to increase the quality of life (Aguirre et al., 2019).

Among the strategies, the development of computer tools in real time is proposed, aimed at forecasting floods with enough time to allow an immediate reaction in the decision-making of the competent authorities (Bhardwaj et al., 2021). Furthermore, the generated information makes it possible to analyze the risk of flooding (Nicholls, 2001).

The application of the software in the control basin of the city of Loja allowed us to calibrate the generated software’s results and know the main threats related to the flood episodes that affect the studied area (Huang et al., 2020).

2 Methods

The project was divided into five phases:

  1. (1)

    The project’s first phase corresponds to the collection of information that includes maps and plans of the sector, general data of the study area, and hydrometeorological information from the National Institute of Meteorology and Hydrology (INAMHI).

  2. (2)

    In the second phase, the geomorphological parameters of the Loja city basin were determined.

  3. (3)

    In the third phase, the Gumbel method determined precipitations for different return periods. Likewise, a conventional hydrological analysis estimated the maximum flood flows for the same return periods.

  4. (4)

    In the fourth phase, the hydrological model was developed from the information generated in the previous phases using Hec-Ras. The results were calibrated with historical flood information, flow data from INAMHI, and measures taken “in situ”. The results of risk and flood zones are visualized in ArcGis.

  5. (5)

    In the fifth phase, the GESTINA software was coded and linked to a city rain gauge that sent precipitation data every 5 min. GESTINA estimates every 5 min the values of flow and intensity of rain, among others, and compares them with the results obtained in the fourth phase. The comparison allows for forecasting the time in which a flood could occur.

3 Results

The basin of Loja comprises three rivers: Malacatos, Zamora Huayco, and Zamora. The Malacatos River basin has an area of 62.33 km2, while the Zamora Huayco and Zamora River basins are 40.59 km2 and 130.95 km2, respectively. The maximum precipitation varies between 43.25 mm for a return period of 25 years to 76.94 mm for a return period of 1000 years. In addition, the surface flow values range according to the values indicated in Table 1.

Table 1 Differences (%) between maximum rainfall, flow for different return periods, and values estimated with GESTINA

Four critical checkpoints (reach) have been established in Loja city. In each checkpoint, the flow was measured in situ. These data were compared with results calculated by GESTINA in real time (Table 2).

Table 2 Differences (%) between flow data measured “in situ” and values estimated with GESTINA

Table 3 shows some estimated values during phase 3 of the investigation, the estimated values with GESTINA, and the differences in percentage.

Table 3 Differences (%) between some parameters estimated in phase 3 and the values estimated with GESTINA

Once the software has been calibrated, the model anticipates the time a flood could occur if precipitation intensity is maintained following a linear progression.

4 Discussion

GESTINA has been coded in Python and Java. A script has been developed to connect the software to Hec-Ras. GESTINA accumulates precipitation data, while the value entered is greater than 0 (zero). The precipitation counter returns to 0 (zero) value when the time with precipitation 0 (zero) equals basin concentration time. At this point, accumulated rainfall is restarted when new precipitation data is registered in GESTINA (Waseem et al., 2021). The software recalculates the flow values with each information input and compares them with those previously estimated in phase 4. For example, suppose the flow values estimated by GESTINA for the intensity of precipitation that generates them are less than the flood flows estimated in phase 4. In that case, GESTINA projects the result linearly and estimates when a flood could occur if the precipitation intensity is maintained (Pagano et al., 2016).

In the case of the city of Loja, the response time to flooding is 2.5 h, corresponding to the time of the flood. It is a short time because Loja is located at the head of the river sub-basins. The response time to flooding is variable. It depends on the locations of the basin’s point of interest and the rainfall that causes the flood. Implementing a climate operation model in GESTINA would increase the response time to a flood (Jin et al., 2015).

The differences between the flow data measured, those provided by INAMHI, and the values estimated by GESTINA are reasonable, considering that in all cases, the flows calculated with GESTINA are higher than those measured (Waseem et al., 2021). The generated code was also linked to Hec-Ras software to get additional hydraulic information. The results obtained can be viewed in Hec-Ras in real time (Pagano et al., 2016). GESTINA is a universal tool. Hydrological knowledge of the study area is required to enter the flow parameters for different return periods into the software, concentration time, and connection with rain gauges.

5 Conclusion

It is necessary to develop computer tools to forecast floods with enough time to make decisions that avoid human and economic losses. GESTINA (GESTión INtegral del Agua) software has been developed as an Early Warning System for floods. GESTINA receives precipitation data from a meteorological station and obtains the flow and additional hydraulic information to anticipate a possible flood. The software was calibrated in the Loja basin (Ecuador) with historical flood data, data from INAMHI, and measured data. The difference between the measured and calculated data is 2–7%. The software can be used in other parts of the world by entering specific parameters of the studied basin.