A method for constructing an integrated model for watershed forecasting and scheduling

Through the integrated model construction method of river basin forecasting and dispatching, the rapid and integrated simulation of large-scale river basin water systems is realized, which solves the problems of precision, efficiency and model independence of flood simulation and forecasting in the existing technology, and improves the efficiency and system of flood forecasting. efficiency.

CN118485222BActive Publication Date: 2024-10-22CHINA INST OF WATER RESOURCES & HYDROPOWER RES
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410241717.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-04
Publication Date
2024-10-22
Estimated Expiration
2044-03-04

AI Technical Summary

Technical Problem

Existing technologies cannot meet the precise and efficient requirements for large-scale flood simulation forecasting in large-scale river basins. Moreover, existing forecasting and dispatching models are relatively independent and cannot achieve integrated and fast 'forward calculation' and 'backcalculation' functions, and cannot meet the needs of digital twin watersheds. Flood control construction places higher requirements on flood forecast content, accuracy and efficiency.

Method used

This paper proposes a method to build an integrated model for river basin forecasting and dispatching. It interacts with the system platform through JSON files, supports parallel computing of distributed hydrological models, achieves high model accuracy, fast calculation speed, and rich output content, supports integrated calculation of forecasting and dispatching, and realizes Fast, integrated simulation of large-scale watershed systems.

Benefits of technology

It improves the efficiency of flood forecasting in the basin, supports integrated calculations of forecasting and dispatching, and can consider the dispatching calculations of reservoirs, weirs, gates and other projects, greatly improving the system's R&D and operation efficiency, and providing rich output results, including the output of runoff-generating units. Streams, confluences and channel evolution calculation results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118485222B_ABST
    Figure CN118485222B_ABST
Patent Text Reader

Abstract

A method for constructing an integrated model for basin forecasting and scheduling includes the following steps: basin basic data collection, basin basic data processing, model basic data preparation, model default parameter preparation, model calculation data preparation, distributed hydrological model calculation, basin river flood evolution and flood control calculation. This method supports distributed hydrological model calculation, and has rich model output, including the calculation results of runoff, confluence and river channel evolution of runoff-producing and confluence units; in terms of the process, it realizes the parallel calculation of the runoff-producing and confluence process of the runoff-producing and confluence units and the parallel calculation of the flood evolution of the sub-basin river channel, which improves the efficiency of basin flood forecasting; it supports the integrated calculation of forecasting and scheduling, and can consider the scheduling calculation of projects such as reservoirs, weirs and gates, which can greatly improve the research and development and operation efficiency of the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of water conservancy engineering, in particular to the field of basin flood forecasting and dispatching, and specifically to a method for constructing an integrated forecasting and dispatching model. Background Art

[0002] As an important part of non-engineering flood control measures, flood forecasting and dispatching can effectively improve the disaster prevention and mitigation capabilities of river basins and regions. At present, my country has realized flood forecasting for major control stations of the main tributaries of the seven major rivers, key flood control areas, key reservoirs and flood storage areas, and major small and medium-sized rivers. In the construction of digital twin river basin flood control in recent years, flood forecasting and dispatching is an important basis for "forecasting", "warning", "rehearsal" and "planning" work.

[0003] Faced with the higher requirements for flood forecasting content, accuracy and efficiency in the construction of digital twin river basin flood control in the new era, there are two problems with existing technologies: on the one hand, the output results of traditional empirical models and conceptual hydrological models are single and not suitable for large-scale river basin flood simulation and forecasting, and cannot meet the needs of fine and efficient simulation; on the other hand, the existing forecasting and scheduling models are relatively independent and cannot meet the integrated, fast and "forward calculation" and "reverse calculation" functions required by the "forecast" and "preview" business functions. In this context, it is necessary to develop a forecast and scheduling integrated model construction method to make the model high in accuracy, fast in calculation speed, and rich in output content, support forecast and scheduling integrated calculation, and realize rapid and integrated simulation of large-scale river basin water systems, thereby providing strong support for the construction of digital twin river basin flood control. Summary of the invention

[0004] Aiming at the problem of building a universal and fast integrated model of watershed forecast and dispatch, which is urgently needed in the current digital twin watershed construction, the present invention proposes a method for building an integrated model of watershed forecast and dispatch. This method supports the interaction between JSON files and system platforms, parallel calculation of distributed hydrological models, and integrated calculation of forecast and dispatch, and has the characteristics of rich output results and high calculation efficiency. The purpose of the present invention is achieved through the following technical solutions:

[0005] A method for constructing a basin forecasting and scheduling integrated model comprises the following steps:

[0006] S1 Collection of basic data of the watershed: Collection of watershed DEM data, data on reservoirs, sluices, weirs, and location data of rainfall stations, evaporation stations, and hydrological stations;

[0007] S2 Basin basic data processing: 2-1 Based on the basin DEM data, extract the water system and basin boundaries and divide the runoff units; 2-2 Set nodes according to the locations of reservoirs, gates, weirs, hydrological stations and forecast sections that need to be set up, divide the basin into sub-basins based on the node locations, and manage the runoff units above the nodes and between nodes in the form of sub-basins;

[0008] S3 model basic data preparation: 3-1 Manage the sub-basins and node units involved in the calculation in the basin in the form of JSON objects. The attributes of each object include: the name of the unit, the code of the unit, the code of the unit's downstream unit, the unit type, the calculation engine, and the model algorithm used by the unit for calculation; 3-2 Associate the sub-basin unit with the runoff unit data; 3-3 Manage the locations of rainfall stations and evaporation stations within the basin in the form of JSON objects, and save the location information of rainfall stations and evaporation stations; 3-4 Manage the relevant engineering data of reservoirs, gates, and weirs involved in the calculation within the basin in the form of JSON objects;

[0009] S4 Model default parameter preparation: Classify and manage model parameter data according to runoff generation, slope runoff, river network runoff and river flood evolution models, where: 4-1 The runoff generation, slope runoff and river network runoff model parameters are managed in the form of JSON objects with sub-basins as units; 4-2 The river flood evolution model parameters include two parts, one part is managed in sub-basins and the other part is managed in the whole basin, both of which are in the form of JSON objects; 4-3 The river parameters managed in sub-basins are the model parameters of the rivers within each sub-basin; 4-4 The river parameters managed in the whole basin are the model parameters of the rivers between units in the basin;

[0010] S5 Model calculation data preparation: The real-time rainfall, evaporation, flow and water level data of reservoirs, weirs and sluices monitored by rainfall stations, evaporation stations and hydrological stations within the basin are managed in the form of JSON objects as input data for model calculation;

[0011] S6 distributed hydrological model calculation:

[0012] 6-1 Read the model basic data prepared in step 3-1;

[0013] 6-2 Traverse all sub-basin units. The calculation model and calculation engine of the same type of units are the same, and parallel calculation is adopted during calculation. The calculation model or calculation engine of different types of units is different, and circular calculation is adopted during calculation.

[0014] 6-3 For the same sub-basin units with the same calculation model and calculation engine, read the runoff unit data associated with all sub-basin units prepared in step 3-2 at the same time; the read information includes the runoff unit code, area, river level, projection X coordinate and Y coordinate, and downstream unit code;

[0015] 6-4 Read the location information of the rainfall station and evaporation station prepared in step 3-3; read the measured rainfall and evaporation data prepared in step S5;

[0016] 6-5 Based on the projection X-coordinate and Y-coordinate of the runoff generating and confluence unit read in step 6-3, and the location information of the rain gauge station and the evaporation station and the rainfall and evaporation data read in step 6-4, rainfall data is allocated to each runoff generating and confluence unit based on a certain algorithm, wherein the algorithm includes a nearest neighbor method or a reverse distance interpolation method; the rainfall and evaporation data are managed in the form of an array;

[0017] 6-6 Read the runoff generation and confluence model parameter data, that is, the default parameters of the runoff generation model, slope confluence model, and river network confluence model prepared in step S4; manage the model parameters in the form of arrays;

[0018] 6-7 manages the runoff generating and confluence unit areas involved in the calculation in the form of a one-dimensional array, and the runoff generating and confluence unit areas are read in step 6-3;

[0019] 6-8 Call the runoff calculation model, which includes a runoff module, a slope runoff module and a river network runoff module. Based on the calculation engine confirmed in step 6-2, choose to use GPU or CPU for calculation. The input data of the model includes: the model name of the cyclic calculation confirmed in step 6-2, the rainfall and evaporation arrays prepared in step 6-5, the model parameter array prepared in step 6-6 and the runoff unit area array prepared in step 6-7; the output data of the model is obtained by calculation, including the surface runoff, soil flow, underground runoff and net rain calculation results obtained after the runoff calculation of each unit, and the flow calculation results after the runoff calculation, and the calculation results are all in array form;

[0020] 6-9 Read the parameter data of the river flood evolution model, and prepare the parameter reading in step S4; manage the model parameters in the form of an array;

[0021] 6-10 Generate a topological relationship array of runoff generating and confluence units of the sub-basin based on the codes of the runoff generating and confluence units, river levels, and codes of downstream units read in step 6-3;

[0022] 6-11 Call the river flood evolution calculation model. The input data of the model include: the flow calculation results of the runoff generating and confluence units in step 6-8, the model parameter array prepared in step 6-9, and the topological relationship array of the runoff generating and confluence units prepared in step 6-10; the output data is the calculation results of the river flood evolution of each unit in each sub-basin, and the calculation results are in array form;

[0023] 6-12 Save the calculation results of each flow generating and converging unit in the form of a JSON object;

[0024] S7 Basin river flood evolution and flood control calculation:

[0025] 7-1 Read the model basic data prepared in step 3-1, and generate the sub-basin and node unit topological relationship array of the basin based on the sub-basin and node unit codes and the downstream unit codes. The array stores the upstream and downstream relationship of each sub-basin and node unit involved in the river flood evolution calculation;

[0026] 7-2 Read the parameter data of the river flood evolution model of the whole basin, and read out the default parameters of the river flood evolution model of the river between the basin units prepared in step S4; manage the model parameters in the form of an array;

[0027] 7-3 If each node contains a section type node that needs to be corrected, read the monitoring flow data prepared in step S5;

[0028] 7-4 If each node includes a reservoir, weir or gate type node, read the monitoring water level data prepared in step S5, and read the reservoir, gate, weir related engineering data prepared in step 3-4;

[0029] 7-5 Carry out flood evolution, flood control calculation and real-time correction calculation for each unit in the basin, using a cyclic calculation method and calculating in sequence according to the river level.

[0030] Further optimization, in step S3,

[0031] 3-1 Manage the sub-basins and node units involved in the calculation in the basin in the form of a JSON object, which includes "Name", "Id", "Type", "Engine", "NextId", "Model", "Reach_Model" and "Correction" attributes;

[0032] The "Name" property holds the name of the unit;

[0033] The "Id" attribute holds the unit's code, which is unique among all units;

[0034] The "Type" attribute stores the type of the unit, including "Watershed", "Region", "Reservoir", "Gate", "Weir" and "Section", where "Watershed" represents the sub-basin type above the node in step 2-2, "Region" represents the sub-basin type between nodes in step 2-2, "Reservoir" represents the reservoir node type, "Gate" represents the gate node type, "Weir" represents the weir node type, and "Section" represents the section node type;

[0035] The "Engine" property stores the computing engine, including "CPU" and "GPU". "CPU" means using the CPU for computing, and "GPU" means using the GPU for computing.

[0036] The "NextId" attribute stores the code of the downstream unit of the unit. This code is the "Id" of the first unit downstream of the unit according to the water system topology. When the unit is the most downstream unit in the water system topology, "NextId" is -1.

[0037] The "Model" property stores the model algorithm used by the unit for calculation. This property is in array form. If the unit type is "Watershed" or "Region", the array length is 4, and the elements in the array are the names of the runoff generation model, slope confluence model, river network confluence model, and river flood evolution model. If the unit type is "Reservoir", "Gate", or "Weir", the array length is 1, and the elements in the array are the names of the scheduling models. If the node unit type is "Section", the array length is 1, and the elements in the array are the names of the real-time correction models.

[0038] When a cell is the downstream cell of another cell and its "NextId" is not -1, the cell contains the "Reach_Model" attribute, which stores the name of the river flood evolution model of the downstream river section of the cell according to the river topology;

[0039] When a cell type is "Section", the cell contains the "Correction" attribute, which is used to identify whether to perform real-time correction on the predicted flow process of the section, where 1 represents real-time correction and 0 represents no real-time correction;

[0040] Merge and save the JSON objects of all the calculation units in the basin as the model basic data JSON file;

[0041] 3-2 For the cells with "Type" attribute of "Watershed" and "Region", the runoff generating and confluence cell data is associated, which includes "GridID", "RiverOrder", "Shape_Area", "NextDownID", "Lgtd" and "Lttd" attributes;

[0042] The "GridID" attribute stores the unique code of the flow-producing and converging unit;

[0043] The “RiverOrder” attribute stores the river network order of the flow-producing unit;

[0044] The "Shape_Area" attribute stores the area of ​​the runoff-producing unit;

[0045] The "NextDownID" attribute stores the "GridID" of the downstream unit of each flow-producing and converging unit. When the flow-producing and converging unit is the most downstream unit, the "NextDownID" is -1.

[0046] The "Lgtd" attribute stores the projected X coordinate of the geometric center point of each flow-producing and confluence unit;

[0047] The "Lttd" attribute stores the projected Y coordinate of the geometric center point of each flow producing and converging unit;

[0048] 3-3 Manage the locations of rainfall stations and evaporation stations within the basin in the form of a JSON object, which contains three attributes: "STCD", "Lgtd", and "Lttd";

[0049] The "STCD" attribute stores the station code of the rainfall station;

[0050] The "Lgtd" attribute stores the projected X coordinates of the rainfall and evaporation stations;

[0051] The "Lttd" attribute stores the projected Y coordinates of the rainfall and evaporation stations;

[0052] Classify and save the rainfall station and evaporation station JSON objects into JSON files;

[0053] 3-4 Manage the engineering data of reservoirs, sluices and weirs involved in the calculation within the basin in the form of JSON objects;

[0054] For the reservoir object, it includes "Name", "Code", "Criterion", "C_Index", "Z_list", "V_list", "C_Z_list" and "C_Q_list" attributes; the "Name" attribute stores the name of the reservoir; the "Code" attribute stores the dispatching method of the reservoir; the "Criterion" attribute stores the control conditions of the reservoir; the "C_Index" attribute is in array form, which stores the index value of the control condition, that is, the specific flow, water level or net rainfall value; the "Z_list" and "V_list" attributes are both in array form, with the same length, and the values ​​in the array are one-to-one corresponding, which store the relationship curve between the water level and storage capacity of the reservoir; "C_Z_list" and "C_Q_list" are both multidimensional arrays, with the same length of each dimension, which store the relationship curve between the reservoir water level and discharge under different control index values;

[0055] For the gate object, it includes "Name", "C_Index", "C_Z1_list", "C_Z2_list" and "C_Q_list" attributes; the "Name" attribute stores the name of the gate project; the "C_Index" attribute is in array form and stores the controlled water level value; the "C_Z1_list", "C_Z2_list" and "C_Q_list" attributes are all in array form, and the lengths of the three are the same, which store the upstream water level, downstream water level and flow value respectively, and together form the discharge capacity curve;

[0056] For the weir object, it includes "Name", "Elevation", "Type" and "B" attributes; the "Name" attribute saves the name of the weir project; the "Elevation" attribute saves the elevation of the weir bottom; "Type" saves the type of the weir, which can be a thin-walled weir, a wide-top weir or a practical weir; "B" saves the width of the weir.

[0057] Further optimization, in step S4,

[0058] 4-1 The runoff generation, slope runoff, and river network runoff model parameters are managed in the form of a JSON object, with sub-basins as the unit. The object includes the "Name", "Model_1", "Model_2", and "Model_3" attributes; the "Name" attribute stores the name of the sub-basin; "Model_1", "Model_2", and "Model_3" are the abbreviations of the runoff generation model, slope runoff model, and river network runoff model stored in the "Model" attribute in step 3-1, respectively. Their attributes are all in array form, which store the default parameters of the sub-basin runoff generation model, slope runoff model, and river network runoff model; merge the runoff generation, slope runoff, and river network runoff model parameter JSON objects of all sub-basins in the basin and save them as a model parameter JSON file;

[0059] 4-2 The river flood evolution model parameters include two parts, one part is managed in sub-basin units, and the other part is managed in the whole basin unit, both of which are in the form of JSON objects;

[0060] 4-3 The river parameters managed in sub-basins are the model parameters of the rivers in each sub-basin, which include the "GridID" and "Model_4" attributes; the "GridID" attribute stores the code of each runoff unit, which corresponds to the unique code of each runoff unit in the sub-basin in step 3-2, but only includes the "GridID" of the runoff units whose "RiverOrder" is greater than 1 in step 3-2. Only the downstream river sections of such runoff units will be calculated for river flood evolution; "Model_4" is the name of the river flood evolution model in step 3-1, and its attributes are in array form, which stores the river flood evolution model parameters of the river sections in the sub-basin that participate in the river flood evolution calculation;

[0061] 4-4 The river channel parameters managed in the whole basin are the model parameters of the river channels between the units in the basin, which include "Name" and "Model_5" attributes; the "Name" attribute stores the name of the unit, corresponding to the unit name stored in the "Name" attribute in step 3-1; "Model_5" is the name of the river channel flood evolution calculation model of the downstream river section of the unit stored in the "Reach_Model" attribute in step 3-1, and its attributes are in array form, which stores the parameters of the river channel flood evolution calculation model of the downstream river section of the node unit.

[0062] Further optimization, in step S5,

[0063] 5-1 Manage the real-time rainfall, evaporation, flow and water level data of reservoirs, weirs and sluices monitored by rainfall stations, evaporation stations and hydrological stations within the basin in the form of JSON objects as input data for model calculation;

[0064] 5-2 The rainfall data object includes "STCD" and "Precipitation" attributes; the "STCD" attribute stores the station code of the rain gauge station; the "Precipitation" attribute is in array form and stores the rainfall time series monitored by the rain gauge station;

[0065] 5-3 The evaporation data object includes "STCD" and "Evaporation" attributes; the "STCD" attribute stores the station code of the evaporation station; the "Evaporation" attribute is in array form, which stores the evaporation time series monitored by the evaporation station;

[0066] 5-4 The flow data object includes "Name" and "Discharge" attributes; the "Name" attribute stores the name of the section unit; the "Discharge" attribute is an array type. When the unit type is "Section" and the "Correction" attribute of the unit is 1, the array stores the flow time series monitored by the hydrological station corresponding to the unit, otherwise the array is empty;

[0067] 5-5 The water level data objects of reservoirs, sluice gates and weirs include "Name" and "Water_level" attributes; the "Name" attribute stores the name of the unit; the "Water_level" attribute stores the water level data monitored by the hydrological station associated with the unit.

[0068] Further optimization, in step S6, the runoff generation module of the model in 6-8 is a three-water source full-storage runoff generation algorithm, a two-water source full-storage runoff generation algorithm, or a mixed runoff generation algorithm; the slope confluence module is a linear reservoir algorithm; the river network confluence module is a unit line algorithm or a hysteresis calculation algorithm; the river flood evolution calculation model in 6-11 is the Muskingum method; the attributes of the object are different according to the type of runoff generation and confluence unit;

[0069] Step 6-12 saves the calculation results of each flow generating and converging unit in the form of a JSON object.

[0070] The unit with "NextDownID" of -1 is the outlet unit in the sub-basin, and the properties of the result object include "GridID", "RiverOrder", "Basin Area", "Basin Average Rainfall", "Sub-basin Rainfall", "Net Rainfall", "Sub-basin Flow", "Basin Outlet Flow", and "Regional Outlet";

[0071] For cells with "NextDownID" not -1 and "RiverOrder" equal to 1, the properties of the result object include "GridID", "RiverOrder", "Subbasin Rainfall", "Net Rainfall", "Subbasin Flow", and "Regional Outlet";

[0072] For the unit whose "NextDownID" is not -1 and "RiverOrder" is not 1, the properties of the result object include "GridID", "RiverOrder", "Sub-basin Rainfall", "Net Rainfall", "Sub-basin Flow", "Basin Outlet Flow", and "Regional Outlet"; "GridID" and "RiverOrder" correspond to the runoff generating and confluence unit properties in step 3-2; "Sub-basin Rainfall" corresponds to the rainfall data assigned to each runoff generating and confluence unit in step 6-5; "Net Rainfall" corresponds to the runoff calculation result obtained in step 6-8; "Sub-basin Flow" corresponds to the runoff calculation result obtained in step 6-8; "Regional Outlet" is used to identify whether the unit is the outlet unit of the sub-basin, where 1 represents that the unit is an outlet unit and 0 represents a non-outlet unit;

[0073] When the "RiverOrder" of a cell is not 1, its result object additionally contains the "Catchment Outlet Flow" attribute, which stores the calculation results of the river flood evolution of the cell obtained in steps 6-11;

[0074] When the unit is a sub-basin outlet unit, its result object additionally contains "basin area" and "basin average rainfall" attributes; the "basin area" attribute saves the total area of ​​the sub-basin, which corresponds to the sum of the areas of all runoff-producing and confluence units in the sub-basin in step 3-2; the "basin average rainfall" saves the surface average rainfall process of the sub-basin, which is the area-weighted average of the rainfall of each runoff-producing and confluence unit in the sub-basin.

[0075] Further optimization, in step S7, step 7-5 includes:

[0076] 7-5-1 Read the upstream inflow data of the river: For a certain river, when the upstream unit is of the "Watershed" or "Region" type, the inflow data is the data saved in the "Watershed Outlet Flow" attribute of the unit whose "Region Outlet" is 1 in step 6-12; when the upstream node is "Reservoir", "Weir" or "Gate", the inflow data is the data saved in the "Outflow Process" attribute of the unit; when the upstream node is "Section", if the "Correction" attribute is 1, the inflow data is the data saved in the "Correction Result" attribute; if the "Correction" attribute is 0, the inflow data is the data saved in the "Calculation Result" attribute;

[0077] 7-5-2 Call the river flood evolution calculation model to perform river flood evolution calculation, where the input data includes: the upstream inflow data of the river read in step 7-5-1, and the parameter data of the river flood evolution model read in step 7-2; the output data is the flow process data of the downstream unit of the river;

[0078] 7-5-3 Calculate the composite flow for the downstream unit of the river. When the upstream unit is "Watershed" or "Region", directly add the inflow data read in step 7-5-1. When the upstream unit is not "Watershed" or "Region", add the downstream unit flow process data calculated in step 7-5-2.

[0079] 7-5-4 Determine the type of unit in the downstream of the river. If the unit is of type "Reservoir", "Weir" or "Gate", flood control calculation is required, and the flood control calculation model is called. The input data includes: the composite flow calculated in step 7-5-3, the monitoring water level data read in step 7-4, and the relevant engineering data of reservoirs, gates and weirs; the output data includes: the process data of the downstream flow, the process data of the water level change, and the process data of the water storage capacity change; the output data is saved in the form of a JSON object, which includes the attributes of "inflow process", "outflow process", "water storage capacity process" and "water level process", among which the "inflow process" attribute saves the input composite flow data, the "outflow process" attribute saves the downstream flow process data, the "water storage capacity process" attribute saves the water storage capacity change process data, and the "water level process" attribute saves the water level change process data;

[0080] 7-5-5 Determine the unit type of the downstream river channel. If the unit is of the "Section" type, determine whether real-time correction calculation is required. If the "Correction" attribute of the unit is 0, no real-time correction calculation is required. If the "Correction" attribute of the node is 1, call the real-time correction calculation model. The input data is: the synthetic flow calculated in step 7-5-3, and the section monitoring flow data read in step 7-3; the output data is the flow process data after real-time correction; the output data is saved in the form of a JSON object, which includes "Name", "Calculation Result", and "Correction Result" attributes, where the "Name" attribute saves the name of the node, the "Calculation Result" attribute saves the input synthetic flow data, and the "Correction Result" attribute saves the flow process data after real-time correction;

[0081] 7-5-6 Repeat steps 7-5-1 to 7-5-5 until all cells are calculated.

[0082] Beneficial effects of the present invention:

[0083] This method manages model parameters and input and output data through JSON files, and can be easily connected to software and system platforms; this method supports distributed hydrological model calculations, and has rich model outputs, including the runoff generation, confluence and river channel evolution calculation results of runoff generating and confluence units; in terms of process, it realizes parallel calculation of the runoff generation and confluence process of runoff generating and confluence units and parallel calculation of sub-basin river flood evolution, which improves the efficiency of basin flood forecasting; it supports integrated forecasting and scheduling calculations, can consider the scheduling calculations of reservoirs, weirs, sluices and other projects, and can greatly improve the system's R&D and operation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0084] Figure 1 is a flow chart of the integrated model building method of the present invention;

[0085] Figure 2 This is the distributed hydrological model calculation process in step S6 of the embodiment of the present invention;

[0086] Figure 3 A schematic diagram of a rainfall array in an embodiment of the present invention;

[0087] Figure 4 This is a schematic diagram of an evaporation array in an embodiment of the present invention;

[0088] Figure 5 The topological relationship array of the current generating and sinking units in the embodiment of the present invention;

[0089] Figure 6 The present invention implements the flood evolution and flood control calculation process of the river network in the basin in step S7;

[0090] Figure 7 It is an array of topological relationships between sub-watersheds and node units in an embodiment of the present invention.

[0091] The present invention will be further described below in conjunction with the accompanying drawings and embodiments. DETAILED DESCRIPTION

[0092] Embodiment 1:

[0093] A method for constructing an integrated model of watershed forecasting and scheduling, such as Figure 1 As shown, the following process is included:

[0094] S1 Collection of basic data of watershed.

[0095] Collect basin DEM data, engineering data related to reservoirs, gates, and weirs, and location data of rain gauges, evaporation stations, and hydrological stations. Among them, DEM data should have a certain accuracy, and the spatial resolution should not be less than 30 meters; engineering data include its latitude and longitude information, dispatching rules, characteristic water level, characteristic storage capacity, water level-storage capacity relationship curve, water level-discharge relationship curve, etc.; location data of rain gauges, evaporation stations, and hydrological stations are their latitude and longitude projection coordinates.

[0096] S2 basin basic data processing.

[0097] 2-1 Based on the basin DEM data, the water system and basin boundary extraction and runoff unit division are carried out. The main process includes filling depressions, analyzing flow direction, calculating runoff accumulation, extracting river networks, extracting runoff unit boundaries, vectorizing basin boundaries, and vectorizing water systems. The extraction of basins and water systems and the division of runoff units can be achieved with the help of professional GIS software.

[0098] 2-2 When extracting watersheds and water systems, nodes need to be set according to the locations of reservoirs, sluices, weirs, hydrological stations, and forecast sections that need to be set up. The watersheds are divided into sub-watersheds based on the node locations, and the runoff-producing and runoff-contributing units above the nodes and between nodes are managed independently in the form of sub-watersheds.

[0099] Prepare basic data for the S3 model.

[0100] 3-1 Manage the sub-basins and node units participating in the calculation in the basin in the form of a JSON object, which includes attributes such as "Name", "Id", "Type", "Engine", "NextId", "Model", "Reach_Model" and "Correction". The "Name" attribute stores the name of the unit; the "Id" attribute stores the unit code, which is unique among all units; the "Type" attribute stores the type of the unit, including but not limited to "Watershed", "Region", "Reservoir", "Gate", "Weir" and "Section", where "Watershed" represents the sub-basin type above the node in step 2-2, "Region" represents the sub-basin type between nodes in step 2-2, "Reservoir" represents the reservoir node type, "Gate" represents the gate node type, "Weir" represents the weir node type, and "Section" represents the section node type; the "Engine" attribute stores the calculation engine, including "CPU" and "GPU", where "CPU" represents the use of CPU for calculation, and "GPU" represents the use of GPU for calculation; the "NextId" attribute stores the code of the downstream unit of the unit, which is the "Id" of the first unit downstream of the unit according to the water system topology. When the unit is the most downstream unit in the water system topology, the "NextId" attribute stores the code of the downstream unit of the unit. "tId" is -1; the "Model" attribute stores the model algorithm used by the unit for calculation. This attribute is in array form. If the unit type is "Watershed" or "Region", the array length is 4, and the elements in the array are the names of the flow generation model, slope confluence model, river network confluence model and river flood evolution model in turn. If the unit type is "Reservoir", "Gate" or "Weir", the array length is 1, and the elements in the array are the names of the scheduling model. If the node unit type is "Section", the array length is 1, and the elements in the array are the names of the real-time correction model. When a unit is the downstream unit of another unit and its "NextId" is not -1, the unit contains the "Reach_Model" attribute, which stores the name of the river flood evolution model of the downstream river section of the unit according to the river topology relationship. When a unit type is "Section", the unit contains the "Correction" attribute, which is used to indicate whether to perform real-time correction on the forecast flow process of the section, where 1 represents real-time correction and 0 represents no real-time correction. Merge and save the JSON objects of all participating calculation units in the watershed as a model basic data JSON file.

[0101] 3-2 For the units with "Type" attribute of "Watershed" and "Region", the data of runoff units are associated, which includes attributes such as "GridID", "RiverOrder", "Shape_Area", "NextDownID", "Lgtd", and "Lttd". The "GridID" attribute stores the unique code of the runoff unit; the "RiverOrder" attribute stores the river network level of the runoff unit, which can be determined based on the Strahler method or the Shreve method; the "Shape_Area" attribute stores the area of ​​the runoff unit in square kilometers; the "NextDownID" attribute stores the "GridID" of the downstream unit of each runoff unit. When the runoff unit is the most downstream unit, the "NextDownID" is -1; the "Lgtd" attribute stores the projected X coordinate of the geometric center point of each runoff unit; the "Lttd" attribute stores the projected Y coordinate of the geometric center point of each runoff unit. After completing step S2, the data can be exported from the extracted sub-basin and runoff generating unit data through professional GIS software and saved independently in sub-basin units.

[0102] 3-3 Manage the locations of rainfall stations and evaporation stations within the basin in the form of JSON objects, which contain three attributes: "STCD", "Lgtd" and "Lttd". The "STCD" attribute stores the station code of the rainfall station, which complies with the water conservancy industry standard "Real-time Rainfall Database Table Structure and Identifier SL 323-2011"; the "Lgtd" attribute stores the projected X coordinates of the rainfall station and evaporation station; the "Lttd" attribute stores the projected Y coordinates of the rainfall station and evaporation station. Classify and save the rainfall station and evaporation station JSON objects as JSON files.

[0103] 3-4 Manage the engineering data of reservoirs, gates, and weirs involved in the calculation within the basin in the form of JSON objects. For reservoir objects, they include "Name", "Code", "Criterion", "C_Index", "Z_list", "V_list", "C_Z_list", "C_Q_list" and other attributes; the "Name" attribute stores the name of the reservoir; the "Code" attribute stores the dispatching method of the reservoir; the "Criterion" attribute stores the control conditions of the reservoir, which can be flow, water level, net rain, etc.; the "C_Index" attribute is in array form, which stores the index value of the control condition, that is, the specific flow, water level or net rain value; the "Z_list" and "V_list" attributes are both in array form, with the same length, and the values ​​in the array are one-to-one corresponding, which stores the relationship curve between the water level and storage capacity of the reservoir; "C_Z_list" and "C_Q_list" are both multidimensional arrays, with the same length of each dimension, which stores the relationship curve between the reservoir water level and discharge under different control index values. For gate objects, they include properties such as "Name", "C_Index", "C_Z1_list", "C_Z2_list", and "C_Q_list". The "Name" property stores the name of the gate project. The "C_Index" property is in array form and stores the controlled water level value. The "C_Z1_list", "C_Z2_list", and "C_Q_list" properties are all in array form, and the three have the same length, which store the upstream water level, downstream water level, and flow value respectively, and together form the discharge capacity curve. For weir objects, they include properties such as "Name", "Elevation", "Type", and "B". The "Name" property stores the name of the weir project. The "Elevation" property stores the elevation of the weir bottom. "Type" stores the type of the weir, which can be a thin-walled weir, a wide-top weir, a practical weir, etc. "B" stores the width of the weir.

[0104] The default parameters of the S4 model are prepared, and the model parameter data are classified and managed according to the runoff generation, slope runoff, river network runoff and river flood evolution model.

[0105] 4-1 The runoff generation, slope runoff, and river network runoff model parameters are managed in the form of a JSON object with sub-basins as the unit. The object includes the "Name", "Model_1", "Model_2", and "Model_3" attributes. The "Name" attribute stores the name of the sub-basin; "Model_1", "Model_2", and "Model_3" are the abbreviations of the runoff generation model, slope runoff model, and river network runoff model stored in the "Model" attribute in step 3-1. Their attributes are all in the form of arrays, which store the default parameters of the sub-basin runoff generation model, slope runoff model, and river network runoff model. The runoff generation, slope runoff, and river network runoff model parameter JSON objects of all sub-basins in the basin are merged and saved as a model parameter JSON file.

[0106] 4-2 The parameters of the river flood evolution model include two parts, one part is managed on a sub-basin basis, and the other part is managed on a whole basin basis. Both are in the form of JSON objects.

[0107] 4-3 The river parameters managed in sub-basins are the model parameters of the rivers in each sub-basin, which include the "GridID" and "Model_4" attributes. The "GridID" attribute stores the codes of each runoff unit, which corresponds to the unique code of each runoff unit in the sub-basin in step 3-2, but only includes the "GridID" of the runoff units with "RiverOrder" greater than 1 in step 3-2. Only the downstream river sections of such runoff units will be calculated for river flood evolution; "Model_4" is the name of the river flood evolution model in step 3-1, and its attributes are in array form, which stores the river flood evolution model parameters of the river sections in the sub-basin that participate in the river flood evolution calculation.

[0108] 4-4 The river channel parameters managed in the whole basin are the model parameters of the river channels between the units in the basin, which include the "Name" and "Model_5" attributes. The "Name" attribute stores the name of the unit, corresponding to the unit name stored in the "Name" attribute in step 3-1; "Model_5" is the name of the river channel flood evolution calculation model of the downstream river section of the unit stored in the "Reach_Model" attribute in step 3-1. Its attributes are in array form and store the river channel flood evolution calculation model parameters of the downstream river section of the node unit.

[0109] S5 model calculation data preparation.

[0110] 5-1 The real-time rainfall, evaporation, flow and water level data of reservoirs, weirs and sluices monitored by rainfall stations, evaporation stations and hydrological stations within the basin are managed in the form of JSON objects as input data for model calculations.

[0111] 5-2 The rainfall data object includes "STCD" and "Precipitation" attributes. The "STCD" attribute stores the station code of the rain gauge, which corresponds to the "STCD" attribute of the rain gauge object in step 3-3; the "Precipitation" attribute is in array form, which stores the rainfall time series monitored by the rain gauge.

[0112] 5-3 The evaporation data object includes "STCD" and "Evaporation" attributes. The "STCD" attribute stores the station code of the evaporation station, corresponding to the "STCD" attribute of the evaporation station object in step 3-3; the "Evaporation" attribute is in array form, which stores the evaporation time series monitored by the evaporation station.

[0113] 5-4 The flow data object includes "Name" and "Discharge" attributes. The "Name" attribute stores the name of the cross-section unit, which corresponds to the "Name" attribute of the "Section" type unit in step 3-1; the "Discharge" attribute is an array type. When the unit type is "Section" and the "Correction" attribute of the unit is 1, the array stores the flow time series monitored by the hydrological station corresponding to the unit, otherwise the array is empty.

[0114] 5-5 The water level data objects of reservoirs, gates and weirs include "Name" and "Water_level" attributes. The "Name" attribute stores the name of the unit, which corresponds to the "Name" attribute of the "Reservoir", "Gate" and "Weir" type units in step 3-1; the "Water_level" attribute stores the water level data monitored by the hydrological station associated with the unit.

[0115] S6 distributed hydrological model calculation. Figure 2 As shown,

[0116] 6-1 Read the model basic data prepared in step 3-1.

[0117] 6-2 Traverse all sub-watershed units, that is, units with "Type" attributes of "Watershed" and "Region" types, find their "Model" and "Engine" attributes, and classify and manage units with the same "Model" and "Engine"; the calculation model and calculation engine of the same type of units are the same, and parallel calculation is adopted during calculation; the calculation models or calculation engines of different types of units are different, and a circular calculation method is adopted during calculation.

[0118] 6-3 For the same sub-basin units with the same calculation model and calculation engine, read the runoff unit data associated with all sub-basin units at the same time, that is, the data prepared in step 3-2. The read information includes the runoff unit code, area, river level, projection X coordinate and Y coordinate, and downstream unit code.

[0119] 6-4 Read the location information of the rain gauge station and the evaporation station, i.e. the projection X-coordinate and Y-coordinate of the rain gauge station and the evaporation station prepared in step 3-3; read the measured rainfall and evaporation data, i.e. the data prepared in steps 5-2 and 5-3.

[0120] 6-5 Based on the projection X-coordinate and Y-coordinate of the runoff unit read in step 6-3, and the location information of the rain gauge and evaporation station and the rainfall and evaporation data read in step 6-4, rainfall data is allocated to each runoff unit based on a certain algorithm, which may be the nearest neighbor method or the reverse distance interpolation method, etc.; the rainfall and evaporation data are managed in the form of arrays, and the sizes of the two arrays are both M×N, where M is the number of runoff units involved in the calculation, and N is the length of the rainfall and evaporation time series. The rainfall and evaporation arrays are as follows: Figure 3 , Figure 4 As shown, represents the rainfall value of the i-th runoff producing unit at the j-th time step, Represents the evaporation value of the i-th runoff producing and sinking unit at the j-th time step.

[0121] 6-6 Read the parameter data of the runoff model, i.e. the default parameters of the runoff model, slope runoff model and river network runoff model prepared in step 4-1; manage the model parameters in the form of arrays, with the array sizes being M×N1, M×N2 and M×N3, respectively, where M is the number of runoff units involved in the calculation, and N1, N2 and N3 are the numbers of parameters of the runoff model, slope runoff model and river network runoff model, respectively.

[0122] 6-7 manages the runoff generating and confluence unit areas involved in the calculation in the form of one-dimensional data, that is, the runoff generating and confluence unit areas read in step 6-3, and the size of the array is M×1, where M is the number of runoff generating and confluence units involved in the calculation.

[0123] 6-8 calls the runoff calculation model. The runoff module of the model can be a three-water source full-storage runoff algorithm, a two-water source full-storage runoff algorithm, a mixed runoff algorithm, etc. The slope runoff module can be a linear reservoir algorithm, and the river network runoff module can be a unit line algorithm, a hysteresis calculation algorithm, etc. Based on the calculation engine confirmed in step 6-2, GPU or CPU is selected for calculation. The input data of the model include: the model name of the current cycle calculation confirmed in step 6-2, the rainfall and evaporation arrays prepared in step 6-5, the model parameter array prepared in step 6-6, and the runoff unit area array prepared in step 6-7; the output data of the model is obtained by calculation, including the surface runoff, subsoil flow, underground runoff and net rain calculation results obtained after the runoff calculation of each unit, and the flow calculation results after the runoff calculation. The calculation results are all in array form, and the size is M×N, where M is the number of runoff units involved in the calculation, and N is the length of the input rainfall and evaporation sequences, that is, the input and output time series are of equal length.

[0124] 6-9 reads the parameter data of the river flood evolution model, that is, the default parameters of the river flood evolution model prepared in step 4-3; manages the model parameters in the form of an array, the size of the array is M′×N4, where M′ is the number of units involved in the river flood evolution calculation, and N4 is the number of river flood evolution model parameters.

[0125] 6-10 Based on the codes of the runoff generating and confluence units read in step 6-3, the river level, and the codes of the downstream units, the topological relationship array of the runoff generating and confluence units of the sub-basin is generated. The array stores the upstream and downstream relationships of each runoff generating and confluence unit involved in the calculation of river flood evolution. The content stored in the array is the runoff generating and confluence unit code, which corresponds to the "GridID" attribute of the runoff generating and confluence unit, such as Figure 5 As shown in the figure, the size of the array is M′×(N5+1), where M′ is the number of units involved in the calculation of river flood evolution. For each sub-basin, the units involved in the calculation of river flood evolution are the runoff-producing and runoff-confluence units with a river level greater than 1. The first column is the code of the river outlet unit, and the remaining columns in the same row are the codes of the runoff-producing and runoff-confluence units that flow into the unit. N5 is the maximum number of units flowing into each river. When the number of units flowing into a river is less than N5, the default value "-99" is used to supplement it.

[0126] 6-11 calls the river flood evolution calculation model, which can be the Muskingum method. The input data of the model includes: the calculation results of the outlet flow of the runoff unit in step 6-8, the model parameter array prepared in step 6-9, and the topological relationship array of the runoff unit prepared in step 6-10; the output data is the calculation results of the river flood evolution of each unit in each sub-basin. The calculation results are in array form, and the size is M×N, where M is the number of runoff units involved in the calculation, and N is the length of the calculation results of the outlet flow of each runoff unit, that is, the input and output time series are of equal length.

[0127] 6-12 Save the calculation results of each runoff-producing and confluence unit in the form of a JSON object. The properties of the object vary depending on the type of runoff-producing and confluence unit. Among them, the unit with "NextDownID" of -1 is the outlet unit in the sub-basin, and the properties of its result object include "GridID", "RiverOrder", "basin area", "basin average rainfall", "sub-basin rainfall", "net rain", "sub-basin flow", "basin outlet flow", and "regional outlet"; for the unit with "NextDownID" not -1 and "RiverOrder" being 1, the properties of its result object include "GridID", "RiverOrder", "sub-basin rainfall", "net rain", "sub-basin flow", and "regional outlet"; for the unit with "NextDownID" not -1 and "RiverOrder" not 1, the properties of its result object include "GridID", "RiverOrder", "sub-basin rainfall", "net rain", "sub-basin flow", "basin outlet flow", and "regional outlet". "GridID" and "RiverOrder" correspond to the runoff generating and confluence unit attributes in step 3-2; "Sub-basin rainfall" corresponds to the rainfall data assigned to each runoff generating and confluence unit in step 6-5; "Net rain" corresponds to the runoff calculation result obtained in step 6-8; "Sub-basin flow" corresponds to the confluence calculation result obtained in step 6-8; "Regional outlet" is used to identify whether the unit is the outlet unit of the sub-basin, where 1 represents the unit as an outlet unit and 0 represents a non-export unit; when the unit's "RiverOrder" When it is not 1, the result object additionally includes the "basin outlet flow" attribute, which saves the calculation results of the river flood evolution of the unit calculated in steps 6-11; when the unit is a sub-basin outlet unit, the result object additionally includes the "basin area" and "basin average rainfall" attributes; the "basin area" attribute saves the total area of ​​the sub-basin, which corresponds to the sum of the areas of all runoff-producing and confluence units in the sub-basin in step 3-2; the "basin average rainfall" saves the surface average rainfall process of the sub-basin, which is the area-weighted average of the rainfall of each runoff-producing and confluence unit in the sub-basin.

[0128] S7 Basin river flood evolution and flood control calculation. Figure 6 As shown:

[0129] 7-1 Read the basic model data prepared in step 3-1. Generate the sub-basin and node unit topological relationship array of the basin based on the sub-basin and node unit codes and the downstream unit codes. The array stores the upstream and downstream relationship of each sub-basin and node unit involved in the river flood evolution calculation. The content stored in the array is the production unit code, corresponding to the "Id" attribute of the unit, such as Figure 7 As shown in the figure, the size of the array is M″×(N6+1), where M″ is the number of units involved in the calculation of river flood evolution, the first column is the code of the river outlet unit, and the remaining columns in the same row are the unit codes that flow into the unit. N6 is the maximum number of units flowing into each river. When the number of units flowing into a river is less than N6, the default value "-99" is used to supplement it.

[0130] 7-2 Read the parameter data of the river flood evolution model for the entire river basin, i.e., the default parameters of the river flood evolution model for the river channels between the river basin units prepared in step 4-4; manage the model parameters in the form of an array, the size of the array is M″×N7, where M″ is the number of rivers involved in the river flood evolution calculation, and N7 is the number of river flood evolution model parameters.

[0131] 7-3 If each node contains a section type node, that is, a "Section" type node, and its "Correction" attribute is 1, read the measured flow data of the section objects involved in the basin, that is, the monitoring flow data prepared in step 5-4.

[0132] 7-4 If each node contains a reservoir, weir or gate type node, that is, a "Reservoir", "Weir" or "Gate" type node, read the measured water level data of the reservoir, weir and gate projects involved in the basin, that is, the monitoring water level data prepared in step 5-5, and read the reservoir, gate, weir and other project data prepared in step 3-4.

[0133] 7-5 Carry out flood evolution, flood control calculation and real-time correction calculation for each unit in the basin, using a cyclic calculation method and calculating in sequence according to the river level.

[0134] 7-5-1 Read the upstream inflow data of the river. For a certain river, when the upstream unit is of "Watershed" or "Region" type, the inflow data is the data saved in the "Watershed Outlet Flow" attribute of the unit whose "Region Outlet" is 1 in step 6-12; when the upstream node is "Reservoir", "Weir" or "Gate", the inflow data is the data saved in the "Outflow Process" attribute of the unit; when the upstream node is "Section", if the "Correction" attribute is 1, the inflow data is the data saved in the "Correction Result" attribute, and if the "Correction" attribute is 0, the inflow data is the data saved in the "Calculation Result" attribute.

[0135] 7-5-2 calls the river flood evolution calculation model to perform river flood evolution calculations, where the input data includes: the upstream river inflow data read in step 7-5-1, and the river flood evolution model parameter data read in step 7-2; the output data is the flow process data of the downstream unit of the river.

[0136] 7-5-3 performs composite flow calculation on the downstream units of the river. When the upstream unit is a "Watershed" or "Region", the inflow data read in step 7-5-1 is directly added. When the upstream unit is not a "Watershed" or "Region", the flow process data of the downstream unit calculated in step 7-5-2 is added.

[0137] 7-5-4 Determine the type of unit in the downstream of the river. If the unit is a reservoir, weir, or gate, that is, "Reservoir", "Weir" or "Gate" type, flood control calculation is required and the flood control calculation model is called. The input data includes: the composite flow calculated in step 7-5-3, the monitoring water level data read in step 7-4, and the engineering data of reservoirs, gates, weirs, etc. The output data includes: the downstream flow process data, the water level change process data, and the water storage change process data; the output data is saved in the form of a JSON object, which includes "inflow process", "outflow process", "water storage process", and "water level process" attributes, where the "inflow process" attribute saves the input composite flow data, the "outflow process" attribute saves the downstream flow process data, the "water storage process" attribute saves the water storage change process data, and the "water level process" attribute saves the water level change process data.

[0138] 7-5-5 Determine the unit type of the downstream river channel. If the unit is a section type, that is, the "Section" type, determine whether real-time correction calculation is required. If the "Correction" attribute of the unit is 0, no real-time correction calculation is required. If the "Correction" attribute of the node is 1, call the real-time correction calculation model, which can be the least squares method, Kalman filter method, etc. The input data is: the synthetic flow calculated in step 7-5-3, the measured flow data of the section read in step 7-3; the output data is the flow process data after real-time correction; the output data is saved in the form of a JSON object, which includes "Name", "Calculation Result" and "Correction Result" attributes, where the "Name" attribute saves the name of the node, the "Calculation Result" attribute saves the input synthetic flow data, and the "Correction Result" attribute saves the flow process data after real-time correction.

[0139] 7-5-6 Repeat steps 7-5-1 to 7-5-5 until all cells are calculated.

[0140] Finally, it should be noted that the above is only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred arrangement scheme, a person skilled in the art should understand that the technical solution of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.

Claims

1. A method for constructing an integrated model for watershed forecasting and scheduling, characterized in that: The following steps are involved: S1 Collection of basic data of the watershed: Collection of watershed DEM data, data on reservoirs, sluices, weirs, and location data of rainfall stations, evaporation stations, and hydrological stations; S2 Basin basic data processing: 2-1 Based on the basin DEM data, extract the water system and basin boundaries and divide the runoff units; 2-2 Set nodes according to the locations of reservoirs, gates, weirs, hydrological stations and forecast sections that need to be set up, divide the basin into sub-basins based on the node locations, and manage the runoff units above the nodes and between nodes in the form of sub-basins; S3 model basic data preparation: 3-1 Manage the sub-basins and node units involved in the calculation in the basin in the form of JSON objects. The attributes of each object include: the name of the unit, the code of the unit, the code of the unit's downstream unit, the unit type, the calculation engine, and the model algorithm used by the unit for calculation; 3-2 Associate the sub-basin unit with the runoff unit data; 3-3 Manage the locations of rainfall stations and evaporation stations within the basin in the form of JSON objects, and save the location information of rainfall stations and evaporation stations; 3-4 Manage the relevant engineering data of reservoirs, gates, and weirs involved in the calculation within the basin in the form of JSON objects; S4 Model default parameter preparation: Classify and manage model parameter data according to runoff generation, slope runoff, river network runoff and river flood evolution models, where: 4-1 The runoff generation, slope runoff and river network runoff model parameters are managed in the form of JSON objects with sub-basins as units; 4-2 The river flood evolution model parameters include two parts, one part is managed in sub-basins and the other part is managed in the whole basin, both of which are in the form of JSON objects; 4-3 The river parameters managed in sub-basins are the model parameters of the rivers within each sub-basin; 4-4 The river parameters managed in the whole basin are the model parameters of the rivers between units in the basin; S5 Model calculation data preparation: The real-time rainfall, evaporation, flow and water level data of reservoirs, weirs and sluices monitored by rainfall stations, evaporation stations and hydrological stations within the basin are managed in the form of JSON objects as input data for model calculation; S6 distributed hydrological model calculation: 6-1 Read the model basic data prepared in step 3-1; 6-2 Traverse all sub-basin units. The calculation model and calculation engine of the same type of units are the same, and parallel calculation is adopted during calculation; the calculation model or calculation engine of different types of units is different, and circular calculation is adopted during calculation; 6-3 For the same sub-basin units with the same calculation model and calculation engine, read the runoff unit data associated with all sub-basin units prepared in step 3-2 at the same time; the read information includes the runoff unit code, area, river level, projection X coordinate and Y coordinate, and downstream unit code; 6-4 Read the location information of the rainfall station and evaporation station prepared in step 3-3; read the measured rainfall and evaporation data prepared in step S5; 6-5 Based on the projection X-coordinate and Y-coordinate of the runoff generating and confluence unit read in step 6-3, and the location information of the rain gauge station and the evaporation station and the rainfall and evaporation data read in step 6-4, rainfall data is allocated to each runoff generating and confluence unit based on a certain algorithm, wherein the algorithm includes a nearest neighbor method or a reverse distance interpolation method; the rainfall and evaporation data are managed in the form of an array; 6-6 Read the runoff generation and confluence model parameter data, that is, the runoff generation model, slope confluence model, and river network confluence model parameters prepared in step S4; manage the model parameters in the form of arrays; 6-7 manages the runoff generating and confluence unit areas involved in the calculation in the form of a one-dimensional array, and the runoff generating and confluence unit areas are read in step 6-3; 6-8 Call the runoff calculation model, which includes a runoff module, a slope runoff module and a river network runoff module. Based on the calculation engine confirmed in step 6-2, choose to use GPU or CPU for calculation. The input data of the model includes: the model name of the cyclic calculation confirmed in step 6-2, the rainfall and evaporation arrays prepared in step 6-5, the model parameter array prepared in step 6-6 and the runoff unit area array prepared in step 6-7; the output data of the model is obtained by calculation, including the surface runoff, soil flow, underground runoff and net rain calculation results obtained after the runoff calculation of each unit, and the flow calculation results after the runoff calculation, and the calculation results are all in array form; 6-9 Read the parameter data of the river flood evolution model, and prepare the parameter reading in step S4; manage the model parameters in the form of an array; 6-10 Generate a topological relationship array of runoff generating and confluence units of the sub-basin based on the codes of the runoff generating and confluence units, river levels, and codes of downstream units read in step 6-3; 6-11 Call the river flood evolution calculation model. The input data of the model include: the flow calculation results of the runoff generating and confluence units in step 6-8, the model parameter array prepared in step 6-9, and the topological relationship array of the runoff generating and confluence units prepared in step 6-10; the output data is the calculation results of the river flood evolution of each unit in each sub-basin, and the calculation results are in array form; 6-12 Save the calculation results of each flow generating and converging unit in the form of a JSON object; S7 Basin river flood evolution and flood control calculation: 7-1 Read the model basic data prepared in step 3-1, and generate the sub-basin and node unit topological relationship array of the basin based on the sub-basin and node unit codes and the downstream unit codes. The array stores the upstream and downstream relationship of each sub-basin and node unit involved in the river flood evolution calculation; 7-2 Read the flood evolution model parameter data of the whole river basin, and read out the flood evolution model parameters of the river channels between the river basin units prepared in step S4; manage the model parameters in the form of an array; 7-3 If each node contains a section type node that needs to be corrected, read the monitoring flow data prepared in step S5; 7-4 If each node includes a reservoir, weir or gate type node, read the monitoring water level data prepared in step S5, and read the reservoir, gate, weir related engineering data prepared in step 3-4; 7-5 Carry out flood evolution, flood control calculation and real-time correction calculation for each unit in the basin, using a cyclic calculation method and calculating in sequence according to the river level.

2. The method for constructing a basin forecast and dispatch integrated model according to claim 1, characterized in that: In step S1, the engineering data includes: longitude and latitude information, dispatching rules, characteristic water level, characteristic storage capacity, water level-storage capacity relationship curve, water level-discharge relationship curve; the location data of the rainfall station, evaporation station and hydrological station are their longitude and latitude projection coordinates.

3. The method for constructing a basin forecast and dispatch integrated model according to claim 2, characterized in that: In step S3, 3-1 Manage the sub-basins and node units involved in the calculation in the basin in the form of a JSON object, which includes "Name", "Id", "Type", "Engine", "NextId", "Model", "Reach_Model" and "Correction" attributes; The "Name" property holds the name of the unit; The "Id" attribute holds the unit's ID, which is unique among all units; The "Type" property stores the type of the unit, including "Watershed", "Region", "Reservoir", "Gate", "Weir" and "Section", where "Watershed" represents the sub-basin type above the node in step 2-2, "Region" represents the sub-basin type between nodes in step 2-2, "Reservoir" represents the reservoir node type, "Gate" represents the gate node type, "Weir" represents the weir node type, and "Section" represents the section node type; The "Engine" property stores the computing engine, including "CPU" and "GPU". "CPU" means using the CPU for computing, and "GPU" means using the GPU for computing. The "NextId" attribute stores the code of the downstream unit of the unit. This code is the "Id" of the first unit downstream of the unit according to the water system topology. When the unit is the most downstream unit in the water system topology, "NextId" is -1. The "Model" property stores the model algorithm used by the unit for calculation. This property is in array form. If the unit type is "Watershed" or "Region", the array length is 4, and the elements in the array are the names of the runoff generation model, slope confluence model, river network confluence model, and river flood evolution model. If the unit type is "Reservoir", "Gate", or "Weir", the array length is 1, and the elements in the array are the names of the scheduling models. If the node unit type is "Section", the array length is 1, and the elements in the array are the names of the real-time correction models. When a cell is the downstream cell of another cell and its "NextId" is not -1, the cell contains the "Reach_Model" attribute, which stores the name of the river flood evolution model of the downstream river section of the cell according to the river topology; When a cell type is "Section", the cell contains the "Correction" attribute, which is used to identify whether to perform real-time correction on the predicted flow process of the section, where 1 represents real-time correction and 0 represents no real-time correction; Merge and save the JSON objects of all the calculation units in the basin as the model basic data JSON file; 3-2 For the cells with "Type" attribute of "Watershed" and "Region", the runoff generating and confluence cell data are associated, which includes the attributes of "GridID", "RiverOrder", "Shape_Area", "NextDownID", "Lgtd" and "Lttd"; The "GridID" attribute stores the unique code of the flow-generating and converging unit; The "RiverOrder" property stores the river network order of the flow-producing unit; The "Shape_Area" attribute stores the area of ​​the runoff-producing unit; The "NextDownID" attribute stores the "GridID" of the downstream unit of each flow-producing and converging unit. When the flow-producing and converging unit is the most downstream unit, "NextDownID" is -1; The "Lgtd" attribute stores the projected X coordinate of the geometric center point of each flow-producing and confluence unit; The "Lttd" attribute stores the projected Y coordinate of the geometric center point of each flow producing and converging unit; 3-3 Manage the locations of rainfall stations and evaporation stations within the basin in the form of a JSON object, which contains three attributes: "STCD", "Lgtd" and "Lttd"; The "STCD" attribute stores the station code of the rainfall station; The "Lgtd" attribute stores the projected X coordinates of the rainfall and evaporation stations; The "Lttd" attribute stores the projected Y coordinates of the rainfall and evaporation stations; Classify and save the rainfall station and evaporation station JSON objects into JSON files; 3-4 Manage the engineering data of reservoirs, sluices and weirs involved in the calculation within the basin in the form of JSON objects; For the reservoir object, it includes "Name", "Code", "Criterion", "C_Index", "Z_list", "V_list", "C_Z_list" and "C_Q_list" attributes; the "Name" attribute stores the name of the reservoir; the "Code" attribute stores the dispatching mode of the reservoir; the "Criterion" attribute stores the control conditions of the reservoir; the "C_Index" attribute is in array form, which stores the index value of the control condition, that is, the specific flow, water level or net rainfall value; the "Z_list" and "V_list" attributes are both in array form, with the same length, and the values ​​in the array are one-to-one corresponding, which store the relationship curve between the water level and storage capacity of the reservoir; "C_Z_list" and "C_Q_list" are both multidimensional arrays, with the same length of each dimension, which store the relationship curve between the reservoir water level and discharge under different control index values; For the gate object, it includes "Name", "C_Index", "C_Z1_list", "C_Z2_list" and "C_Q_list" attributes; the "Name" attribute stores the name of the gate project; the "C_Index" attribute is in array form and stores the controlled water level value; the "C_Z1_list", "C_Z2_list" and "C_Q_list" attributes are all in array form, and the lengths of the three are the same, which store the upstream water level, downstream water level and flow value respectively, and together form the discharge capacity curve; For the weir object, it includes "Name", "Elevation", "Type", and "B" properties; the "Name" property stores the name of the weir project; the "Elevation" property stores the elevation of the weir bottom; the "Type" stores the type of the weir, which can be a thin-walled weir, a wide-top weir, or a practical weir; and the "B" stores the width of the weir.

4. The method for constructing a basin forecast and dispatch integrated model according to claim 3, characterized in that: In step S4, 4-1 The runoff generation, slope runoff, and river network runoff model parameters are managed in the form of a JSON object with sub-basins as units. The object includes the "Name", "Model_1", "Model_2", and "Model_3" attributes; the "Name" attribute stores the name of the sub-basin; "Model_1", "Model_2", and "Model_3" are the abbreviations of the runoff generation model, slope runoff model, and river network runoff model stored in the "Model" attribute in step 3-1, respectively. Their attributes are all in array form, which store the default parameters of the sub-basin runoff generation model, slope runoff model, and river network runoff model respectively; Merge and save the model parameter JSON objects of runoff generation, slope runoff, and river network runoff of all sub-basins in the basin into a model parameter JSON file; 4-2 The river flood evolution model parameters include two parts, one part is managed in sub-basin units, and the other part is managed in the whole basin unit, both of which are in the form of JSON objects; 4-3 The river parameters managed in sub-basins are the model parameters of the rivers in each sub-basin, which include "GridID" and "Model_4" attributes; the "GridID" attribute stores the code of each runoff unit, which corresponds to the unique code of each runoff unit in the sub-basin in step 3-2, but only includes the "GridID" of the runoff units whose "RiverOrder" is greater than 1 in step 3-2. Only the downstream river sections of such runoff units will be calculated for river flood evolution; "Model_4" is the name of the river flood evolution model in step 3-1, and its attributes are in array form, which stores the river flood evolution model parameters of the river sections in the sub-basin that participate in the river flood evolution calculation; 4-4 The river channel parameters managed in the whole basin are the model parameters of the river channels between the units in the basin, which include "Name" and "Model_5" attributes; the "Name" attribute stores the name of the unit, corresponding to the unit name stored in the "Name" attribute in step 3-1; "Model_5" is the name of the river channel flood evolution calculation model of the downstream river section of the unit stored in the "Reach_Model" attribute in step 3-1, and its attributes are in array form, which stores the parameters of the river channel flood evolution calculation model of the downstream river section of the node unit.

5. The method for constructing a basin forecast and dispatch integrated model according to claim 4, characterized in that: In step S5, 5-1 Manage the real-time rainfall, evaporation, flow and water level data of reservoirs, weirs and sluices monitored by rainfall stations, evaporation stations and hydrological stations within the basin in the form of JSON objects as input data for model calculation; 5-2 The rainfall data object includes "STCD" and "Precipitation" attributes; the "STCD" attribute stores the station code of the rainfall station; the "Precipitation" attribute is in array form and stores the rainfall time series monitored by the rainfall station; 5-3 The evaporation data object includes "STCD" and "Evaporation" attributes; the "STCD" attribute stores the station code of the evaporation station; the "Evaporation" attribute is in array form and stores the evaporation time series monitored by the evaporation station; 5-4 The flow data object includes "Name" and "Discharge" attributes; the "Name" attribute stores the name of the section unit; the "Discharge" attribute is an array type. When the unit type is "Section" and the "Correction" attribute of the unit is 1, the array stores the flow time series monitored by the hydrological station corresponding to the unit, otherwise the array is empty; 5-5 The water level data objects of reservoirs, sluice gates and weirs include "Name" and "Water_level" attributes; the "Name" attribute stores the name of the unit; the "Waterlevel" attribute stores the water level data monitored by the hydrological station associated with the unit.

6. The method for constructing a basin forecast and dispatch integrated model according to claim 5, characterized in that: In step S6, the runoff generation module of the model in 6-8 is a three-water source full-storage runoff generation algorithm, a two-water source full-storage runoff generation algorithm, or a mixed runoff generation algorithm; the slope confluence module is a linear reservoir algorithm; the river network confluence module is a unit line algorithm or a hysteresis calculation algorithm; the river flood evolution calculation model in 6-11 is the Muskingum method; the attributes of the object are different according to the type of runoff generation and confluence unit; Step 6-12 saves the calculation results of each flow generating and converging unit in the form of a JSON object. The unit with "NextDownID" of -1 is the outlet unit in the sub-basin, and the properties of its result object include "GridID", "RiverOrder", "Basin Area", "Basin Average Rainfall", "Sub-basin Rainfall", "Net Rainfall", "Sub-basin Flow", "Basin Outlet Flow" and "Regional Outlet"; For cells whose "NextDownID" is not -1 and whose "RiverOrder" is 1, the properties of the result object include "GridID", "RiverOrder", "Subbasin Rainfall", "Net Rainfall", "Subbasin Flow", and "Regional Outlet"; For cells whose "NextDownID" is not -1 and whose "RiverOrder" is not 1, the properties of the result object include "GridID", "RiverOrder", "Subbasin Rainfall", "Net Rainfall", "Subbasin Flow", "Basin Outlet Flow" and "Region Outlet"; "GridID" and "RiverOrder" correspond to the runoff generating and confluence unit attributes in step 3-2; "Sub-basin rainfall" corresponds to the rainfall data assigned to each runoff generating and confluence unit in step 6-5; "Net rain" corresponds to the runoff calculation result obtained in step 6-8; "Sub-basin flow" corresponds to the runoff calculation result obtained in step 6-8; "Regional outlet" is used to identify whether the unit is the outlet unit of the sub-basin, where 1 represents the unit as an outlet unit and 0 represents a non-export unit; When the "RiverOrder" of a cell is not 1, its result object additionally contains the "Catchment Outlet Flow" attribute, which stores the calculation results of the river flood evolution of the cell obtained in steps 6-11; When the unit is a sub-basin outlet unit, its result object additionally contains "basin area" and "basin average rainfall" attributes; the "basin area" attribute stores the total area of ​​the sub-basin, which corresponds to the sum of the areas of all runoff-producing and confluence units in the sub-basin in step 3-2; the "basin average rainfall" stores the surface average rainfall process of the sub-basin, which is the area-weighted average of the rainfall of each runoff-producing and confluence unit in the sub-basin.

7. The method for constructing a basin forecast and dispatch integrated model according to claim 6, characterized in that: In step S7, step 7-5 includes: 7-5-1 Read the upstream inflow data of the river: For a certain river, when the upstream unit is of "Watershed" "Region" type, the inflow data is the data saved in the "Watershed Outlet Flow" attribute of the unit with "Region Outlet" as 1 in step 6-12; when the upstream node is "Reservoir", "Weir" or "Gate", the inflow data is the data saved in the "Outflow Process" attribute of the unit; when the upstream node is "Section", if the "Correction" attribute is 1, the inflow data is the data saved in the "Correction Result" attribute, if the "Correction" attribute is 0, the inflow data is the data saved in the "Calculation Result" attribute; 7-5-2 Call the river flood evolution calculation model to perform river flood evolution calculation, where the input data includes: the upstream inflow data of the river read in step 7-5-1, and the parameter data of the river flood evolution model read in step 7-2; the output data is the flow process data of the downstream unit of the river; 7-5-3 Calculate the composite flow for the downstream unit of the river. When the upstream unit is "Watershed" or "Region", directly add the inflow data read in step 7-5-1. When the upstream unit is not "Watershed" or "Region", add the downstream unit flow process data calculated in step 7-5-2. 7-5-4 Determine the type of the unit in the downstream of the river. If the unit is of type "Reservoir", "Weir" or "Gate", flood control calculation is required, and the flood control calculation model is called. The input data includes: the synthetic flow calculated in step 7-5-3, the monitoring water level data read in step 7-4, and the related engineering data of reservoirs, gates, and weirs; the output data includes: the process data of the downstream flow, the process data of the water level change, and the process data of the water storage capacity change; the output data is saved in the form of a JSON object, which includes the attributes of "inflow process", "outflow process", "water storage capacity process", and "water level process", among which the "inflow process" attribute saves the input synthetic flow data, the "outflow process" attribute saves the downstream flow process data, the "water storage capacity process" attribute saves the water storage capacity change process data, and the "water level process" attribute saves the water level change process data; 7-5-5 Determine the unit type of the downstream river channel. If the unit is of the "Section" type, determine whether real-time correction calculation is required. If the "Correction" attribute of the unit is 0, no real-time correction calculation is required. If the "Correction" attribute of the node is 1, call the real-time correction calculation model. The input data is: the synthetic flow calculated in step 7-5-3, and the section monitoring flow data read in step 7-3; the output data is the flow process data after real-time correction; the output data is saved in the form of a JSON object, which includes "Name", "Calculation Result", and "Correction Result" attributes, where the "Name" attribute saves the name of the node, the "Calculation Result" attribute saves the input synthetic flow data, and the "Correction Result" attribute saves the flow process data after real-time correction; 7-5-6 Repeat steps 7-5-1 to 7-5-5 until all cells are calculated.