A method and system for quickly extracting characteristic curves based on high-precision DEM data
Through the slicing method and automatic peeling calculation method, a rapid extraction model of feature curves is constructed, which solves the problem of large calculation amount in the extraction process of high-precision DEM data feature curves, and realizes efficient and environment-free feature curve extraction, which is suitable for water conservancy projects. manage.
Patent Information
- Application Number
- CN202410977310.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-07-22
AI Technical Summary
When existing methods process high-precision DEM data, the calculation amount during the feature curve extraction process is large, resulting in a long running waiting time. Especially for the extraction of high-density curves, there is a lack of fast and environment-free solutions.
The slicing method is used to divide the high-precision DEM data of water conservancy projects into calculation units, and through the automatic peeling unit characteristic parameter calculation method, the characteristic parameters are gradually calculated from bottom to top, and a rapid extraction model of the characteristic curve is constructed. The Python language is used for model development and packaging to achieve Efficiently extract feature curves.
It significantly improves the calculation speed of characteristic curve extraction and reduces the amount of data stored and processed, making the extraction of water conservancy engineering characteristic curves more efficient and convenient without relying on specific environments. It is suitable for businesses such as flood control, water volume dispatching, and water resource allocation.
Smart Images

Figure CN118506023B
Abstract
Description
Technical Field
[0001] The present application relates to the field of water conservancy projects, and in particular to a method and system for quickly extracting characteristic curves based on high-precision DEM data. Background Art
[0002] Reservoirs, lakes, and flood storage and detention areas are important components of the basin flood control engineering system, important nodes of the water network, and important infrastructure to ensure water security. At the same time, water storage projects such as reservoirs and lakes are irreplaceable important infrastructure for regulating the spatial and temporal distribution of water resources, optimizing water resource allocation, improving the ecological environment, and promoting economic and social development. Some reservoir areas, lake areas, and flood storage and detention areas have problems such as unclear management and protection boundaries, lax supervision, and illegal occupation. In addition, siltation has caused varying degrees of volume loss, affecting the flood detention and water storage functions of these water conservancy projects. Volume management of water conservancy projects such as reservoirs, lakes, and flood storage and detention areas is an important guarantee for effectively exerting flood control, water supply, and ecological functions. Among them, carrying out capacity calculation and water level-volume curve review, and accurately grasping the reservoir capacity, lake capacity, and storage and detention volume are effective means to strengthen the management of reservoirs, lakes, and flood storage and detention areas.
[0003] Digital Elevation Model (DEM) is a digital simulation of ground terrain (i.e., a digital expression of terrain surface morphology) achieved through limited terrain elevation data. It is a physical ground model that represents ground elevation in the form of a set of ordered numerical arrays. It is a branch of Digital Terrain Model (DTM), and various other terrain characteristic values can be derived from it.
[0004] The calculation of characteristic curves such as water level-volume and water level-area generally uses the GIS surface volume tool to calculate and process high-precision DEM data. This method has high accuracy, but the application of this method requires a certain foundation in GIS and the installation of corresponding software. There are also water conservancy workers who develop small programs based on the grid traversal method to extract characteristic curves, but this method has a large amount of calculation, especially for the extraction of high-precision DEM data and high-density curves, and the running waiting time is long. Therefore, in response to the needs of high-precision DEM data and high-density extraction, it is an urgent problem to develop easy-to-use, fast-running, and environment-independent extraction software. Summary of the invention
[0005] The method and system for rapid extraction of characteristic curves based on high-precision DEM data provided in this application can solve the problem of long running waiting time due to large amount of calculation when using existing methods to extract characteristic curves, especially when extracting high-precision DEM data and high-density curves.
[0006] In the first aspect, the present application provides a method for quickly extracting characteristic curves based on high-precision DEM data, comprising the following steps:
[0007] Based on the high-precision DEM data of water conservancy projects, the slicing method is used to divide the high-precision DEM data of water conservancy projects into a series of calculation units of characteristic parameters;
[0008] The characteristic parameter calculation method of the automatic stripping type unit is used to calculate the characteristic parameters of each calculation unit one by one from bottom to top, and the grid in the calculation unit whose characteristic parameters have been calculated is automatically stripped, and the characteristic parameter calculation of the next calculation unit is continued until the characteristic parameter calculation of all calculation units is completed;
[0009] Based on a series of calculation units obtained and the automatic stripping unit characteristic parameter calculation method, a characteristic curve rapid extraction model is constructed;
[0010] Input high-precision DEM data into the constructed characteristic curve rapid extraction model to extract the characteristic curve of the water conservancy project.
[0011] In combination with the first aspect, in one implementation, the high-precision DEM data of the water conservancy project is divided into a series of characteristic parameter calculation units using a slicing method based on the high-precision DEM data of the water conservancy project, including the following steps:
[0012] According to the high-precision DEM data range, determine the lowest and highest water levels extracted by the characteristic curve, and determine the water level interval extracted by the characteristic curve;
[0013] According to the water level interval, the high-precision DEM data of the hydraulic project between the lowest water level and the highest water level is sliced at equal intervals to obtain the slicing results;
[0014] According to the slicing results, a series of calculation units are formed from the lowest water level to the highest water level.
[0015] In combination with the first aspect, in one embodiment, the automatic peeling unit characteristic parameter calculation method is used to calculate the characteristic parameters of each calculation unit one by one from bottom to top, specifically including the following steps:
[0016] The area involved in the calculation of the characteristic parameter of the water volume of the calculation unit is divided into three calculation areas;
[0017] According to the three divided calculation areas, the water volume of the calculation unit is calculated;
[0018] Based on the grid area of the high-precision DEM data of the water conservancy project in the corresponding water level interval and the number of grids in all grid sets that meet the water level interval of the water conservancy project DEM calculation unit, the water surface area of the calculation unit is calculated.
[0019] In combination with the first aspect, in one implementation, dividing the area involved in the calculation of the characteristic parameter of the water volume of the calculation unit into three calculation areas specifically includes the following steps:
[0020] The area involved in the calculation of the characteristic parameter of the water volume corresponding to any calculation unit is divided into a first calculation area, a second calculation area and a third calculation area. The first calculation area is the area below the calculation unit, the second calculation area is the cylindrical area within the calculation unit, and the third calculation area is the irregular area within the calculation unit.
[0021] In combination with the first aspect, in one implementation, the water volume of the calculation unit is calculated based on the three divided calculation areas, as shown in the following formula:
[0022]
[0023] In the formula, is the water volume of the kth calculation unit, is the water volume of the first calculation area, is the water volume of the second calculation area, is the water volume of the third calculation area;
[0024] The first calculation area is the result area corresponding to the previous calculation unit. , which only needs to be calculated in the first calculation unit. The specific calculation formula for the water volume is as follows:
[0025]
[0026] In the formula, Indicates the water level of the first calculation unit The corresponding volume, , Represents grid elevation The grid set that is less than the water level Z1 of the first calculation cell, Representing a collection The number of grids, Represents the grid area of high-precision DEM data of water conservancy projects within the corresponding water level range;
[0027] The calculation formula for the water volume of the second calculation area is as follows:
[0028]
[0029] In the formula, The grid elevation is between The upper boundary water level of the calculation unit and The lower boundary water level of the calculation unit The volume between , Represents grid elevation Less than Z k-1 The collection of all grids of Indicates that the grid elevation is less than Z k-1 The number of grids in the set of all grids, Represents the grid area of high-precision DEM data of water conservancy projects within the corresponding water level range;
[0030] The calculation formula for the water volume of the third calculation area is as follows:
[0031]
[0032] In the formula, is the water volume of the third calculation area, , represents the set of all grids within the water level interval of the kth calculation unit, Represents the grid area of high-precision DEM data of water conservancy projects within the corresponding water level range.
[0033] In combination with the first aspect, in one embodiment, in the step of constructing a rapid extraction model of characteristic curves based on a series of calculation units and an automatic stripping unit characteristic parameter calculation method, Python language is used for model development, and program packaging and model encapsulation are performed to form the rapid extraction model of characteristic curves.
[0034] In combination with the first aspect, in one embodiment, the step of inputting high-precision DEM data to the constructed characteristic curve rapid extraction model, after the step of extracting the characteristic curve, further comprises the following steps:
[0035] According to the lowest water level, the highest water level and the water level interval, high-precision DEM data is input into the characteristic curve rapid extraction model to obtain the model output results;
[0036] The characteristic curves extracted by the characteristic curve rapid extraction model and the characteristic curves extracted by the ArcGIS tool are compared to obtain the model performance verification results of the characteristic curve rapid extraction model.
[0037] In combination with the first aspect, in one implementation, after comparing the feature curve extracted by the feature curve rapid extraction model and the feature curve extracted by the ArcGIS tool to obtain the model performance verification result of the feature curve rapid extraction model, the following steps are also included:
[0038] Set different water level intervals to obtain the model output results of the characteristic curve rapid extraction model under different water level intervals and the characteristic curve extracted by the grid traversal method;
[0039] The computational performance of the characteristic curve rapid extraction model is obtained based on the model output results of the characteristic curve rapid extraction model under different water level spacing conditions and the characteristic curves extracted by the grid traversal method.
[0040] In the second aspect, the present application provides a fast feature curve extraction system based on high-precision DEM data, including:
[0041] The calculation unit division module is used to divide the high-precision DEM data of water conservancy projects into a series of calculation units of characteristic parameters by using the slicing method based on the high-precision DEM data of water conservancy projects;
[0042] A characteristic parameter calculation module is connected to the characteristic parameter calculation module for calculating characteristic parameters of each calculation unit from bottom to top by using an automatic stripping unit characteristic parameter calculation method, and automatically stripping the grid in the calculation unit whose characteristic parameters have been calculated, and continuing to perform characteristic parameter calculation on the next calculation unit until the characteristic parameter calculation of all calculation units is completed;
[0043] A model building module, which is in communication with the computing unit division module and the characteristic parameter calculation module, and is used to build a characteristic curve rapid extraction model based on a series of computing units obtained and an automatic stripping unit characteristic parameter calculation method;
[0044] The characteristic curve extraction module is connected to the computing unit division module and the model construction module for inputting high-precision DEM data into the constructed characteristic curve rapid extraction model to extract the characteristic curve of the water conservancy project.
[0045] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:
[0046] The present application provides a method for rapid extraction of characteristic curves based on high-precision DEM data, which uses a slicing method to divide the calculation unit and differentiate the characteristic parameter calculation process to improve the calculation speed;
[0047] In the process of characteristic parameter calculation, the automatic data separation method is used to strip the grid data involved in the calculated unit, effectively reducing the amount of data stored and processed;
[0048] The model constructed based on the above-mentioned method makes the extraction of characteristic curves of water conservancy projects more efficient, more convenient and non-environmentally dependent, providing technical support and practical tools for water conservancy-related businesses such as flood control, water volume scheduling, water resources allocation, water and drought disaster risk warning, and water conservancy project management. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 It is a flowchart of a method for rapid extraction of characteristic curves based on high-precision DEM data;
[0050] Figure 2 Schematic diagram of computing unit partition based on slicing method;
[0051] Figure 3 It is a schematic diagram of the change of grid data volume combined with the data separation method;
[0052] Figure 4 It is a schematic diagram of the partitioning calculation method for the computing unit;
[0053] Figure 5 Simulate a flow chart for the model;
[0054] Figure 6 A flow chart of a grid traversal model simulation provided in an embodiment of the present application;
[0055] Figure 7 A high-precision DEM schematic diagram of a flood storage area provided in an embodiment of the present application;
[0056] Figure 8 A high-precision DEM schematic diagram of a reservoir provided in an embodiment of the present application;
[0057] Fig. 9 Middle a is the water level-volume curve diagram of the flood storage area extracted by different methods; Fig. 9 Middle b is the water level-area curve of the flood storage area using different extractions;
[0058] Fig.10 a in the middle is the water level-volume curve extracted by different methods at a water level interval of 1m; Fig.10 b is the water level-area curve extracted by different methods at a water level interval of 1m
[0059] Fig.11 A in the middle is a comparison chart of the change in the amount of stored data during the feature curve extraction process at different densities using different methods; Fig.11 Middle b is a comparison chart of the changes in the amount of processed data during the extraction of characteristic curves at different densities using different methods;
[0060] Fig.12 This is a comparison chart of the calculation speed of reservoir characteristic curve extraction using different methods. DETAILED DESCRIPTION
[0061] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0062] The terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices. The terms "first", "second" and "third" are used to distinguish different objects, etc., and do not represent a sequence, nor do they limit "first", "second" and "third" to different types.
[0063] In the description of the embodiments of the present application, "exemplary", "for example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary", "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary", "for example" or "for example" is intended to present related concepts in a specific way.
[0064] In the description of the embodiments of the present application, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; the “and / or” in the text is merely a description of the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, “multiple” refers to two or more than two.
[0065] In some processes described in the embodiments of the present application, multiple operations or steps that appear in a specific order are included, but it should be understood that these operations or steps may not be executed in the order in which they appear in the embodiments of the present application or in parallel, and the sequence number of the operation is only used to distinguish the different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed in sequence or in parallel, and these operations or steps may be combined.
[0066] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0067] First, as Figure 1 , the present application provides a method for quickly extracting characteristic curves based on high-precision DEM data, comprising the following steps:
[0068] Step S1, based on the high-precision DEM data of the water conservancy project, using a slicing method to divide the high-precision DEM data of the water conservancy project into a series of calculation units of characteristic parameters;
[0069] Step S2, using an automatic stripping unit characteristic parameter calculation method to calculate characteristic parameters of each calculation unit from bottom to top, and automatically stripping the grid in the calculation unit whose characteristic parameters have been calculated, and continuing to perform characteristic parameter calculation on the next calculation unit until the characteristic parameter calculation of all calculation units is completed;
[0070] Step S3, constructing a characteristic curve rapid extraction model according to the obtained series of calculation units and the automatic stripping unit characteristic parameter calculation method;
[0071] Step S4: input high-precision DEM data into the constructed characteristic curve rapid extraction model to extract the characteristic curve of the water conservancy project.
[0072] The present application provides a method and system for quickly extracting characteristic curves based on high-precision DEM data, which uses a slicing method to divide the calculation unit and differentiate the characteristic parameter calculation process to improve the calculation speed;
[0073] In the process of characteristic parameter calculation, the automatic data separation method is used to strip the grid data involved in the calculated unit, effectively reducing the amount of data stored and processed;
[0074] The model constructed based on the above-mentioned method makes the extraction of characteristic curves of water conservancy projects more efficient, more convenient and non-environmentally dependent, providing technical support and practical tools for water conservancy-related businesses such as flood control, water volume scheduling, water resources allocation, water and drought disaster risk warning, and water conservancy project management.
[0075] The characteristic parameters of the water conservancy project in this application include the water volume below the different water levels and the water surface area corresponding to the different water levels.
[0076] In the present application, characteristic curves of water conservancy projects include water level-volume curves and water level-area characteristic curves.
[0077] In one embodiment, for the flood storage area, in step S1, high-precision DEM data of water conservancy projects is provided, which is specifically implemented as follows:
[0078] According to the high-precision DEM data of the flood storage area, such as Figure 7 As shown, an ASCII format data file is exported; according to the file, the spatial accuracy of the high-precision DEM data of the flood storage area is 2m, there are 2738×3357 grids, the minimum elevation is 0.83m, and the maximum elevation is 55.67m.
[0079] According to the data of the flood storage and detention area, the main elevation range of the flood storage and detention area is 14 meters (lowest water level) to 23 meters (highest water level). Therefore, this elevation range is selected as the extraction range of the characteristic curve of the flood storage and detention area. At the same time, in order to compare and analyze with existing results, the water level interval extracted from the flood storage and detention area is 0.2 meters.
[0080] In one embodiment, for a reservoir, in step S1, high-precision DEM data of a water conservancy project is provided, which is specifically implemented as follows:
[0081] Based on high-precision DEM data of large reservoirs, such as Figure 8 As shown, the ASCII format data file is exported; according to the file, the spatial accuracy of the high-precision DEM data of the reservoir is 2m, with a total of 18264×12983 grids, of which 31944139 are valid data grids. According to the high-precision DEM data, the lowest water level extracted from the characteristic curve is 0m and the highest water level is 123m.
[0082] In one embodiment, when extracting characteristic curves of water conservancy projects such as reservoirs, lakes, and flood storage areas, it is often necessary to calculate a set of characteristic parameters (such as volume, area, etc.) corresponding to the changing water level. In order to facilitate the calculation of a set of characteristic parameters corresponding to the changing water level, it is necessary to perform differentiation processing on the high-precision DEM data. In step S1, the slicing method is used to divide the high-precision DEM data of the water conservancy project into a series of characteristic parameter calculation units, which specifically includes the following steps:
[0083] Step S11, determining the lowest water level and the highest water level extracted by the characteristic curve according to the high-precision DEM data range, and determining the water level interval extracted by the characteristic curve;
[0084] Step S12: According to the water level interval, the high-precision DEM data of the hydraulic project between the lowest water level and the highest water level is sliced equidistantly to obtain the slicing results, such as Figure 2 As shown;
[0085] Step S13: Based on the slicing results, a series of calculation units from the lowest water level to the highest water level are formed, such as Figure 2 As shown, the upper and lower boundary water level calculation formulas for each calculation unit are as follows:
[0086]
[0087] In the formula, Z min is the lowest water level extracted from the characteristic curve, Z max is the highest water level extracted from the characteristic curve, △Z is the water level interval extracted from the characteristic curve, N is the number of divided computing units, k=1,…,N is the serial number of the computing unit, Z k-1 is the lower boundary water level of the kth computing unit, Z k is the upper boundary water level of the kth computing unit.
[0088] Combined with the lowest and highest water levels and water level intervals extracted from the characteristic curve, the calculation units are divided using the method described in step 1. The divided calculation units can form a grid set of N DEM data:
[0089]
[0090]
[0091]
[0092] In the formula, Indicates the elevation value corresponding to the grid (i, j) in the water conservancy project DEM. The grid (i, j) is the first Line A grid of columns, Represents the set of all grids in the water conservancy project DEM whose elevation meets the water level range of the calculation unit.
[0093] In one embodiment, if Figure 4 As shown, the characteristic parameter calculation in step S2 specifically includes the following steps:
[0094] Step S21, dividing the area involved in the calculation of the characteristic parameter of the water volume of the calculation unit into three calculation areas;
[0095] Step S22: Calculate and obtain the water volume of the calculation unit according to the three divided calculation areas;
[0096] Based on the grid area of the high-precision DEM data of the water conservancy project in the corresponding water level range and the number of grids in all grid sets that meet the water level range of the water conservancy project DEM calculation unit, the water surface area of the calculation unit is calculated and the calculation results are accumulated to reduce the amount of calculation.
[0097] In one embodiment, the step S21, dividing the area involved in the calculation of the characteristic parameter of the water volume of the calculation unit into three calculation areas, specifically includes the following steps:
[0098] The area involved in the calculation of the characteristic parameter of the water volume corresponding to any calculation unit is divided into a first calculation area, a second calculation area and a third calculation area. The first calculation area is the area below the calculation unit, the second calculation area is the cylindrical area within the calculation unit, and the third calculation area is the irregular area within the calculation unit.
[0099] In one embodiment, the step S22, calculating and obtaining the water volume of the calculation unit according to the three divided calculation areas, specifically includes the following steps:
[0100] According to the "bottom-to-top" order, for each calculation unit (the water level interval of the calculation unit is Z k-1 <Z≤Z k ) to calculate characteristic characteristic parameters, wherein the characteristic parameters include the water volume and water surface area divided into a series of calculation units.
[0101] Step S221: Calculate and obtain the water volume of the calculation unit according to the three divided calculation areas, as shown in the following formula:
[0102]
[0103] In the formula, is the water volume of the kth calculation unit, is the water volume of the first calculation area, is the water volume of the second calculation area, is the water volume of the third calculation area;
[0104] The calculation formula of the water volume in the first calculation area is as follows:
[0105]
[0106] In the formula, Indicates the water level of the first calculation unit The corresponding volume, , Represents grid elevation Less than the water level of the first calculation unit A collection of grids, Representing a collection The number of grids, Represents the grid area of high-precision DEM data of water conservancy projects within the corresponding water level range;
[0107] The calculation formula for the water volume of the second calculation area is as follows:
[0108]
[0109] In the formula, The grid elevation is between The upper boundary water level of the calculation unit and The lower boundary water level of the calculation unit The volume between , Represents grid elevation Less than The collection of all grids of Indicates that the grid elevation is less than Z k-1 The number of grids in the set of all grids;
[0110] The calculation formula for the water volume of the third calculation area is as follows:
[0111]
[0112] In the formula, , is the water volume of the third calculation area, Represents the set of all grids within the water level interval of the kth computational unit.
[0113] Step S222: Calculate and obtain the water surface area of the calculation unit according to the three divided calculation areas, as shown in the following formula:
[0114]
[0115] In the formula, is the water surface area corresponding to the upper boundary water level of the kth calculation unit, is the water surface area corresponding to the lower boundary water level of the kth calculation unit, , It represents the set of all grids in the water conservancy project DEM whose elevation meets the water level interval of the calculation unit. It represents the number of grids in the set of all grids whose elevations satisfy the water level interval of the calculation unit in the water conservancy project DEM. Represents the grid area of high-precision DEM data of water conservancy projects within the corresponding water level range.
[0116] Among them, the first calculation unit, its upper boundary water level The calculation formula for the corresponding water surface area is:
[0117]
[0118] In the formula, , is the water surface area corresponding to the upper boundary water level of the first calculation unit, Represents the grid area of high-precision DEM data of water conservancy projects within the corresponding water level range.
[0119] In one embodiment, when high-precision DEM data is used to extract characteristic curves, it often involves the processing of a large amount of grid data. In order to improve the calculation speed of the characteristic curve, the present application proposes a data automatic separation method based on "bottom-up", which increases the calculation speed by gradually reducing the amount of data storage and processing. In step S2, the DEM data in the calculation unit whose characteristic parameters have been calculated is automatically stripped, and the characteristic parameter calculation of the next calculation unit is continued until the characteristic parameter calculation of all calculation units is completed. Specifically, the following steps are included:
[0120] After calculating the characteristic parameters for a unit, the mesh data involved in the calculation unit will be automatically stripped off to reduce the amount of mesh data stored and processed when calculating the next unit. Figure 3 As shown:
[0121]
[0122]
[0123]
[0124]
[0125] In the formula, represents the grid data set that needs to be stored and processed when calculating the kth unit. Representing a collection The number of grid data, Represents the set of all grids within the water level interval of the kth computational unit.
[0126] In one embodiment, in step S3, according to the obtained series of calculation units and the automatic stripping unit characteristic parameter calculation method, the model is developed using Python language, and the program is packaged and the model is encapsulated to form the characteristic curve rapid extraction model, and the simulation process is as follows: Figure 5 shown.
[0127] In one embodiment, based on high-precision DEM data of water conservancy projects such as reservoirs / lakes / flood storage areas, the lowest and highest water levels and water level intervals extracted by given characteristic curves are used to extract water level-volume curves and water level-area curves using the model constructed by the present application, and the extraction results are compared and analyzed with the characteristic curves extracted by the ArcGIS surface tool of the geographic information system to verify the stability and accuracy of the model constructed by the present application. The step S4, inputting high-precision DEM data to the constructed characteristic curve rapid extraction model, after the characteristic curve extraction step, also includes the following steps:
[0128] According to the lowest water level, the highest water level and the water level interval, high-precision DEM data is input into the characteristic curve rapid extraction model to obtain the model output results;
[0129] The characteristic curves extracted by the method described in this application and ArcGIS tools are compared to obtain the model performance verification results of the characteristic curve rapid extraction model. Fig. 9 As shown in a and b, the stability and accuracy of the method described in this application are verified.
[0130] By comparing the characteristic curves, Fig. 9 A and Fig. 9 As shown in Figure b, the water level-volume curve and water level-area curve extracted by the method described in this application are basically consistent with the ArcGIS extraction results; at the same time, as shown in Table 1, the relative error range of the volume extracted by the method described in this application relative to the ArcGIS extraction results is between -1.8% and 1.0%, with an average error of 0.04%; the relative error of the area extracted is between -6.4% and 0.3%, with an average error of -0.69%. The results show that the characteristic curve results extracted by the method described in this application are accurate and available, and the constructed model is stable and reliable.
[0131] Table 1 Relative error between the extraction results of the method described in this application and the extraction results of ArcGIS
[0132]
[0133] In one embodiment, after comparing the characteristic curve extracted by the method described in the present application with the characteristic curve extracted by the ArcGIS tool and obtaining the model performance verification result of the method described in the present application, the following steps are also included:
[0134] Set different water level intervals to obtain the results proposed by the method described in this application and the characteristic curves extracted by the grid traversal method under different water level intervals;
[0135] In combination with the high-precision DEM data of large reservoirs in this implementation example, a comparative calculation experiment was set up, as shown in Table 2, to compare and analyze the calculation performance of the method described in this application and the conventional grid traversal method when extracting characteristic curves based on high-precision DEM data.
[0136] It can be seen from Table 2 that the water level range extracted in the comparative calculation test is 0~123 meters, and the main variable is the water level interval, which is 1m, 0.5m, 0.1m, 0.05m and 0.01m respectively. Fig.10 A and Fig.10The figure shows a comparison of the results of characteristic curve extraction using the method described in this application and the conventional grid traversal method when ab is a water level interval of 1m. It can be seen from the figure that the water level-capacity curve and water level-area curve extracted by the two different methods are completely consistent.
[0137] Fig.11 Figure a is a comparison chart of the change in the amount of stored data during feature curve extraction using the method described in this application and the conventional grid traversal method. Fig.11 Figure b is a comparison of the changes in the amount of data processed during the feature curve extraction process using the method described in this application and the conventional grid traversal method. Fig.11 A and Fig.11 It can be seen from b that when the method described in this application is used, the amount of stored grid data gradually decreases during the calculation process, and the amount of processed grid data is at a low level; while when the conventional grid traversal method is used, the amount of stored grid data is maintained at the effective grid data amount during the calculation process, and the amount of processed grid data gradually increases. In other words, compared with the conventional method, the method described in this application is more reasonable in terms of grid data storage and processing.
[0138] Fig.12 The calculation time consumed and the degree of improvement in calculation speed when the method described in this application is used to extract reservoir characteristic curves compared with the conventional grid traversal method. Fig.12 It can be seen that whether the method described in this application or the conventional grid traversal method is used, as the water level spacing becomes smaller, the required calculation time increases accordingly. This is because the smaller the water level spacing (increased calculation density) will bring a greater amount of calculation. It is worth noting that as the calculation density increases, the calculation time required by the conventional method increases more significantly, while the method described in this application increases more slowly. Fig.12 As shown in the figure, when the water level spacing is reduced from 1m to 0.01m, the calculation speed of the method described in this application increases from 4.3% to 36.3% compared with the conventional grid traversal method. In other words, compared with the conventional method, the method described in this application has more advantages in terms of high-precision DEM data and high-density extraction and other large calculation amounts.
[0139] Table 2 Computational performance comparison test settings
[0140]
[0141] In one embodiment, Python language is used to develop a model for the grid traversal method to obtain a characteristic curve calculation model for the grid traversal method. The simulation process is as follows: Figure 6 As shown, the characteristic parameter calculation steps of the grid traversal method characteristic curve calculation model are as follows:
[0142] According to the given minimum and maximum extraction water levels and water level intervals, a series of calculated water levels are formed ;
[0143] For a certain water level, the traversal method is used to calculate the volume and area corresponding to the current water level. The specific formula is as follows:
[0144]
[0145] In the formula, The grid elevation is between The upper boundary water level of the calculation unit The corresponding volume, , Represents grid elevation Less than the water level of the kth computational unit A collection of grids, Representing a collection The number of grids, Represents the grid area of high-precision DEM data of water conservancy projects within the corresponding water level range.
[0146] In the second aspect, the present application provides a characteristic curve rapid extraction system based on high-precision DEM data, including a calculation unit division module, a characteristic parameter calculation module, a model construction module and a characteristic curve extraction module, wherein the calculation unit division module is used to divide the high-precision DEM data of the water conservancy project into a series of characteristic parameter calculation units based on the high-precision DEM data of the water conservancy project by a slicing method; the characteristic parameter calculation module is communicated with the characteristic parameter calculation module, and is used to calculate the characteristic parameters of each calculation unit one by one from bottom to top by using an automatic stripping unit characteristic parameter calculation method, and automatically strip the DEM data grid in the calculation unit whose characteristic parameters have been calculated, and continue to perform the characteristic parameter calculation of the next calculation unit until the characteristic parameter calculation of all calculation units is completed; the model construction module is communicated with the calculation unit division module and the characteristic parameter calculation module, and is used to construct a characteristic curve rapid extraction model based on the acquired series of calculation units and the automatic stripping unit characteristic parameter calculation method; the characteristic curve extraction module is communicated with the calculation unit division module and the model construction module, and is used to input high-precision DEM data into the constructed characteristic curve rapid extraction model to extract the characteristic curve of the water conservancy project.
[0147] In one embodiment, the calculation unit division module includes a water level spacing extraction unit, a slicing result acquisition unit and a calculation unit formation unit. The water level spacing extraction unit is used to determine the lowest water level and the highest water level for characteristic curve extraction according to the high-precision DEM data range, and to determine the water level spacing for characteristic curve extraction; the slicing result acquisition unit is connected in communication with the water level spacing acquisition unit, and is used to perform equidistant slicing on the high-precision DEM data of the water conservancy project between the lowest water level and the highest water level according to the water level spacing, and obtain the slicing result; the calculation unit formation unit is connected in communication with the slicing result acquisition unit, and is used to form a series of calculation units from the lowest water level to the highest water level according to the slicing result.
[0148] Among them, the functional implementation of each module in the above-mentioned characteristic curve rapid extraction system based on high-precision DEM data corresponds to the steps in the above-mentioned characteristic curve rapid extraction method based on high-precision DEM data embodiment, and its functions and implementation processes are no longer repeated here one by one.
[0149] In a third aspect, an embodiment of the present application provides a device for quickly extracting characteristic curves based on high-precision DEM data. The device for quickly extracting characteristic curves based on high-precision DEM data can be a personal computer (PC), a laptop computer, a server, or other device with data processing capabilities.
[0150] In an embodiment of the present application, a device for quickly extracting characteristic curves based on high-precision DEM data may include a processor, a memory, a communication interface, and a communication bus.
[0151] The communication bus may be of any type and is used to interconnect the processor, the memory, and the communication interface.
[0152] The communication interface includes input / output (I / O) interface, physical interface and logical interface, etc., which are used to realize the interconnection of devices inside the device for rapid extraction of characteristic curves based on high-precision DEM data, and the interface for interconnecting the device for rapid extraction of characteristic curves based on high-precision DEM data with other devices (such as other computing devices or user devices). The physical interface can be an Ethernet interface, an optical fiber interface, an ATM interface, etc.; the user device can be a display, a keyboard, etc.
[0153] The memory can be various types of storage media, such as random access memory (RAM), read-only memory (ROM), non-volatile RAM (NVRAM), flash memory, optical storage, hard disk, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), etc.
[0154] The processor may be a general-purpose processor, which may call a fast feature curve extraction program based on high-precision DEM data stored in a memory, and execute a fast feature curve extraction method based on high-precision DEM data provided in an embodiment of the present application. For example, the general-purpose processor may be a central processing unit (CPU). The method executed when the fast feature curve extraction program based on high-precision DEM data is called may refer to the various embodiments of the fast feature curve extraction method based on high-precision DEM data of the present application, which will not be described in detail here.
[0155] In a fourth aspect, an embodiment of the present application also provides a readable storage medium.
[0156] The readable storage medium of the present application stores a program for quickly extracting characteristic curves based on high-precision DEM data, wherein when the program for quickly extracting characteristic curves based on high-precision DEM data is executed by a processor, the steps of the method for quickly extracting characteristic curves based on high-precision DEM data as described above are implemented.
[0157] Among them, the method implemented when the characteristic curve rapid extraction program based on high-precision DEM data is executed can refer to the various embodiments of the characteristic curve rapid extraction method based on high-precision DEM data in this application, and will not be repeated here.
[0158] It should be noted that the serial numbers of the above-mentioned embodiments of the present application are only for description and do not represent the advantages or disadvantages of the embodiments.
[0159] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD) as described above, and includes a number of instructions for a terminal device to execute the methods described in each embodiment of the present application.
[0160] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for rapid extraction of characteristic curves based on high-precision DEM data, characterized in that: The following steps are involved: Based on the high-precision DEM data of water conservancy projects, the slicing method is used to divide the high-precision DEM data of water conservancy projects into a series of calculation units of characteristic parameters; The characteristic parameter calculation method of the automatic stripping type unit is used to calculate the characteristic parameters of each calculation unit one by one from bottom to top, and the grid data in the calculation unit whose characteristic parameters have been calculated is automatically stripped, and the characteristic parameter calculation of the next calculation unit is continued until the characteristic parameter calculation of all calculation units is completed; Based on a series of calculation units obtained and the automatic stripping unit characteristic parameter calculation method, a characteristic curve rapid extraction model is constructed; Input high-precision DEM data into the constructed characteristic curve rapid extraction model to extract the characteristic curve of the water conservancy project.
2. The method for rapid extraction of characteristic curves based on high-precision DEM data according to claim 1, characterized in that: The method of dividing the water conservancy project DEM into a series of characteristic parameter calculation units based on the high-precision DEM data of the water conservancy project by using the slicing method includes the following steps: According to the high-precision DEM data range, determine the lowest and highest water levels extracted by the characteristic curve, and determine the water level interval extracted by the characteristic curve; According to the water level interval, the DEM data of the hydraulic project between the lowest water level and the highest water level is sliced at equal intervals to obtain the slicing results; According to the slicing results, a series of calculation units are formed from the lowest water level to the highest water level.
3. The method for rapid extraction of characteristic curves based on high-precision DEM data according to claim 1, characterized in that: The automatic stripping unit characteristic parameter calculation method is used to calculate the characteristic parameters of each calculation unit one by one from bottom to top, specifically including the following steps: The area involved in the calculation of the characteristic parameter of the water volume of the calculation unit is divided into three calculation areas; According to the three divided calculation areas, the water volume of the calculation unit is calculated; Based on the grid area of the high-precision DEM data of the water conservancy project in the corresponding water level interval and the number of grids in all grid sets that meet the water level interval of the water conservancy project DEM calculation unit, the water surface area of the calculation unit is calculated.
4. The method for rapid extraction of characteristic curves based on high-precision DEM data as claimed in claim 3, characterized in that: The process of dividing the area involved in the calculation of the characteristic parameter of the water volume of the calculation unit into three calculation areas specifically includes the following steps: The area involved in the calculation of the characteristic parameter of the water volume corresponding to any calculation unit is divided into a first calculation area, a second calculation area and a third calculation area. The first calculation area is the area below the calculation unit, the second calculation area is the cylindrical area within the calculation unit, and the third calculation area is the irregular area within the calculation unit.
5. The method for rapid extraction of characteristic curves based on high-precision DEM data as claimed in claim 4, characterized in that: According to the three divided calculation areas, the water volume of the calculation unit is calculated, as shown in the following formula: In the formula, is the water volume of the kth calculation unit, is the water volume of the first calculation area, is the water volume of the second calculation area, is the water volume of the third calculation area; The calculation formula of the water volume in the first calculation area is as follows: In the formula, Indicates the water level of the first calculation unit The corresponding volume, , Represents grid elevation Less than the water level of the first calculation unit A collection of grids, Representing a collection The number of grids, Represents the grid area of high-precision DEM data of water conservancy projects within the corresponding water level range; The calculation formula for the water volume of the second calculation area is as follows: In the formula, The grid elevation is between The upper boundary water level of the calculation unit and The lower boundary water level of the calculation unit The volume between , Represents grid elevation Less than Z k-1 The collection of all grids of Indicates that the grid elevation is less than Z k-1 The number of grids in the set of all grids, Represents the grid area of high-precision DEM data of water conservancy projects within the corresponding water level range; The calculation formula for the water volume of the third calculation area is as follows: In the formula, is the water volume of the third calculation area, , represents the set of all grids within the water level interval of the kth calculation unit, For the The upper boundary water level of the calculation unit, For the The lower boundary water level of the calculation unit, Represents the grid area of high-precision DEM data of water conservancy projects within the corresponding water level range.
6. The method for rapid extraction of characteristic curves based on high-precision DEM data according to claim 1, characterized in that: In the step of constructing a rapid feature curve extraction model based on a series of calculation units and an automatic stripping unit characteristic parameter calculation method, Python language is used for model development, and program packaging and model encapsulation are performed to form the rapid feature curve extraction model.
7. The method for rapid extraction of characteristic curves based on high-precision DEM data according to claim 1, characterized in that: After the step of inputting high-precision DEM data to the constructed characteristic curve rapid extraction model and extracting the characteristic curve, the following steps are also included: According to the lowest water level, the highest water level and the water level interval, high-precision DEM data is input into the characteristic curve rapid extraction model to obtain the model output results; The characteristic curves extracted by the characteristic curve rapid extraction model and the characteristic curves extracted by the ArcGIS tool are compared to obtain the model performance verification results of the characteristic curve rapid extraction model.
8. The method for rapid extraction of characteristic curves based on high-precision DEM data according to claim 7, characterized in that: After comparing the characteristic curve extracted by the characteristic curve rapid extraction model and the characteristic curve extracted by the ArcGIS tool to obtain the model performance verification result of the characteristic curve rapid extraction model, the following steps are also included: Set different water level intervals to obtain the model output results of the characteristic curve rapid extraction model under different water level intervals and the characteristic curve extracted by the grid traversal method; The computational performance of the characteristic curve rapid extraction model is obtained based on the model output results of the characteristic curve rapid extraction model under different water level spacing conditions and the characteristic curves extracted by the grid traversal method.
9. A fast characteristic curve extraction system based on high-precision DEM data, characterized in that: include: The calculation unit division module is used to divide the high-precision DEM data of water conservancy projects into a series of calculation units of characteristic parameters by using the slicing method based on the high-precision DEM data of water conservancy projects; A characteristic parameter calculation module, which is in communication connection with the characteristic parameter calculation module, is used to calculate the characteristic parameters of each calculation unit one by one from bottom to top by using an automatic stripping unit characteristic parameter calculation method, and automatically strip the grid data in the calculation unit whose characteristic parameters have been calculated, and continue to perform the characteristic parameter calculation of the next calculation unit until the characteristic parameter calculation of all calculation units is completed; A model building module, which is in communication with the computing unit division module and the characteristic parameter calculation module, and is used to build a characteristic curve rapid extraction model based on a series of computing units obtained and an automatic stripping unit characteristic parameter calculation method; The characteristic curve extraction module is connected to the computing unit division module and the model construction module for inputting high-precision DEM data into the constructed characteristic curve rapid extraction model to extract the characteristic curve of the water conservancy project.
10. The characteristic curve rapid extraction system based on high-precision DEM data according to claim 9, characterized in that: The computing unit partitioning module comprises: The water level interval extraction unit is used to determine the lowest water level and the highest water level extracted by the characteristic curve according to the high-precision DEM data range, and determine the water level interval extracted by the characteristic curve; A slicing result acquisition unit is communicatively connected with the water level interval acquisition unit, and is used to perform equidistant slicing on the high-precision DEM data of the hydraulic project between the lowest water level and the highest water level according to the water level interval to obtain a slicing result; The calculation unit forming unit is in communication connection with the slicing result obtaining unit and is used to form a series of calculation units from the lowest water level to the highest water level according to the slicing result.
Citation Information
Patent Citations
Crossing ridge line design method based on digital height model DEM
CN101236665A
A method of automatic generation of virtual terrain
CN109102565A
Data-free small reservoir parameter identification method combining hydrological simulation and continuous remote sensing images
CN109754025A
Reservoir water storage metering method based on satellite remote sensing and DEM data
CN112966570A
KR20220010925A
