Analitical surface water forecasting system for Republic of Slovenia Analitičen sistem napovedovanja pretokov površinskih vod v Republiki Sloveniji Goran Vižintin 1, Sandi Viršek2 ■University of Ljubljana, Faculty of Natural Sciences and Engineering, Aškerčeva cesta 12, SI-1000 Ljubljana, Slovenia; E-mail: goran.vizintin@ntf.uni-lj.si 2Agency for Radioactive Waste Management, Parmova ulica 53, SI-1000 Ljubljana, Slovenia; E-mail: sandi.virsek@gov.si Received: September 21, 2007 Accepted: April 14, 2008 Abstract: River management is one of the key factors of environmental management. On the territory of the Republic of Slovenia there are four main rivers (Mura, Drava, Sava and Soča) which drain water from the Alpine region in the north of the country and from a typically Karstic part in the south. It is a well known fact that all main Slovenian river flows can take a disastrous proportion in case of strong rain precipitation in their recharge area. For this reason the Environmental Agency of Republic of Slovenia (ARSO) put the hydrological monitoring system and data analysis in a common system known as HIDPRO. HIDPRO is a Slovenian acronym for Hydrological prognostic system. The main aim of Hydrological prognostic system is to analyze the collected data in an oracle database to make flow forecasts and take precaution measures against possible flooding whenever a worst case scenario is predicted. Izvleček: Upravljanje z vodami je eden od ključnih faktorjev upravljanja okolja. Na območju Republike Slovenije so štiri glavne reke (Mura, Drava, Sava in Soča), ki drenirajo vodo iz alpskega sveta na severu države in kraškega sveta na jugu. Znano je, da v primeru obilnega deževja na zbirnem območju, pretoki rek dosežejo vrednosti, ki lahko povzročijo katastrofalne hidrološke razmere. Zaradi tega je Agencija Republike Slovenije za okolje združila monitoring in obdelavo podatkov v skupni sistem imenovan HIDPRO. HIDPRO je slovenski akronim za Hidrološki prognostični sistem. Glavna naloga hidrološkega pro-gnostičnega sistema je analiza zbranih podatkov v Oraclovi bazi in izdelava prognoze pretokov rek ter v primeru poslabšanja poplavne varnosti opozarjanje prebivalstva. Key words: river prognostic system, database analysis, client server DSS, data classification, river flow forecasting Ključne besede: rečni prognostični sistem, klient - server ekspertni sistem, klasifikacija podatkov, napovedovanje pretokov rek Introduction During the 1980s and 1990s a series of programmes for river data collection and analysis were being built in the former Hy-drometeorological Institute of Slovenia. During that time data were being collected in an Oracle database. A collection of data measurements has been partly done by the observers on the field and partly by automatic gaugingl stations, which is also the case nowadays. The data collected in database were first stored inside the so-called rough database and after the validation process the data were transferred into a database and opened to the public. As the process of hydrology forecasting has to be done in real time, a series of FORTRAN programmes have been made. The operating system for FORTRAN made software was VAX.A great job was done by programming those FORTRAN programmes. But the main not-yet-solved difficulty was that the programmes were not directly linked to the Oracle database; even more - the data needed for hydrological records coming from weather forecasting super computer had to be put inside the FORTRAN made programmes manually. In addition the reports of final products were sent to the user partly electronically and partly manually. The FORTRAN programmes for hydro-logical forecasting were used until the end of the previous century. At the end of the last century a decision was made to form a new Hydrological forecasting and decision support system. The main aim was to make a programme system in Windows 2000/XP which would allow hydrologists to use the incoming data in real time and would also help them make a validation process before hydrological forecasting. The Hydro- logical prognostic system (HIDPRO) was built during a period between years 2000 and 2002. The system was built in the Windows 2000/XP platform and the database Oracle was selected again. The system became operational in the year 2002 and is now the main forecasting and decision support system for hydrology in Slovenia. Requirements for the HIDPRO system • For a new system replacement a series of demands were put together. • Data have to be stored inside Oracle database. • All data coming from different sources have to be transferred in the system automatically. • Validation of data has to be done during the process of data transfer from the measurements stations to the Oracle database. • The hydrologist has to have the possibility to check and change the data during the entire process of forecasting. • The system has to provide a series of automatic reports for different users (government's offices, newspaper, TV, radio etc.). On the basis of demands shown above and operating systems used in the government's offices a client server application (Figure 1) was selected for the Hydrological Prognostic System (HIDPRO). This firstly means that data are stored inside the oracle database and secondly that programmes for the data management are made with MS Access XP development programme Visual basic for the Application. The decision to adopt MS Access XP was also made on the basis that people working in hydrology Desktop computer I Client application Client applied on Client application SQL Server Databases Figure 1. Diagram of HIDPRO client server architecture Slika 1. Diagram HIDPRO server - klient arhitekture prognosis are very well acquainted with MS Access and MS Excel. coming from the gauging stations are the observed river level in centimetres and the river water temperature. Data flow and analysis A quick check of data can show if the measurements are inside the logically ex-For a smooth flow of data between different pected values or not. In case of error detec- sources and real time validation one has to know a data flow diagram very well. Figure 2 presents a data flow diagram with all check points of automatic validation and phases of hydrology forecasting and deci- tion a numerical value for a type of error is transferred into the database instead of the erroneous value. If the data pass the first check, the river level values are transferred in the rough database of automatic meas- sion support system. The detailed look at urements (AMP database). For the hydrol-the data flow diagram (Figure 2) can show ogy forecasting a data transformation is there are two very important steps: the first needed; therefore the water river level data step is the automatic analysis of data coming from automatic gauging station. The analysis in use for this step is only to control the data; if the data are erroneous on a large scale, they are not to be transferred to the rough data of AMP database. The data / are transformed in the river flow data (Figure 2). The process is done inside the rough AMP database. The data are transformed on the basis of step polynomial functions of high order (Equation 1) which coefficients are obtained by the regression. 96cm í ft < 1 lOcro =» 0.103370E - M +h 0.8W970E - 03+h1 0,225364E-07 + h '0.504223E +01 110cm < h 80cm => 0.140766E - IM + h 0.20040 5 E - »2 -h: 0 I48332E - 05 - h 50.139660E + 02 qj I 80™ < It-a 290cm => 0,630307R -05 + h 0.39 292 3 F, -02 + h; 0.518343E -06-h ' 0.314814E + 02 290*™ < ft -a450cm => -0.853863E -05+ h 0.10093 IE-01 h1 0.144057E-05 hJ 0.1 S6105E -03 ^450cm < h <540cm=> -0.714420E - 05 + h 0.879S00E -02 + Ii :0-500243 E -06- h3 0.500243E -06 \ / Kj S*t M ^ ^ § § ^ CV CM At Al i MM | d O ■ * -- ssa s B1 W " W NO'*'» i O Si Ei >-» -f ^d o ¿o r\! C-! S 3 a LA s bS — m « H i—• 'j.' * * £ —1 rt — — rt — h- rt — rt rt i--- 3 SSS H n dhtfi lil si sssss g n rti r j ry ftj -n, ifi •rt nj " n ^ § •tj S g f'4 O rt P Cl = 33 3 ■