Gridding hydrological data visualization processing method
By dividing the gridded hydrological data into data blocks and processing them one by one, the problem of low efficiency in processing massive data is solved, efficient merging of hydrological parameter isosurfaces and isoline maps is achieved, and the timely understanding and understanding of the hydrological environment is promoted. Protect.
Patent Information
- Application Number
- CN202411088732.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-09
- Publication Date
- 2024-09-10
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
When the existing technology is used to visualize gridded hydrological data, the efficiency is low due to the difficulty of reading and processing massive data at one time.
Divide the gridded hydrological data into data blocks of predetermined size, read and process them one by one, calculate the hydrological parameters in each data block, and merge the isosurface maps and isoline maps of each data block to achieve efficient visual processing .
It improves the efficiency of visual processing of gridded hydrological data, allowing people to understand the hydrological environment in a timely manner, which has important protection and operational significance.
Smart Images

Figure CN118628612A
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of grid hydrological data visualization processing, and specifically relates to a grid hydrological data visualization processing method. Background Art
[0002] Visualizing the gridded hydrological data and obtaining the isosurface and isoline maps of the corresponding hydrological parameters is of great significance for people to understand the hydrological environment in a timely manner and carry out protection and operations.
[0003] Currently, when visualizing gridded hydrological data, most of them are read at one time. However, gridded hydrological data are mostly massive, which makes it difficult to read and process them at one time, and the efficiency is low.
[0004] This application is proposed in view of the above-mentioned technical defects. Summary of the invention
[0005] The purpose of this application is to provide a gridded hydrological data visualization processing method that can be performed based on a domestic platform to overcome or alleviate at least one of the known technical deficiencies.
[0006] The technical solution of this application is: A grid hydrological data visualization processing method, comprising: Grid hydrological data reading steps: dividing the grid hydrological data into data blocks of a predetermined size, and reading each data block one by one; Grid hydrological parameter calculation steps: calculate the hydrological parameters corresponding to the hydrological data in each data block one by one; The steps of drawing the gridded hydrological parameter isosurface map are as follows: the isosurface intervals of the hydrological parameters in each data block are identified one by one, mapped to corresponding grayscale values, and then the grayscale values are converted into color values, and the grid points in each data block are filled with colors to obtain the isosurface maps of the hydrological parameters in each data block, and the isosurface maps of the hydrological parameters in each data block are merged to obtain the gridded hydrological parameter isosurface map; The steps of drawing the gridded hydrological parameter contour map are as follows: draw the contour map of the hydrological parameters in each data block one by one, merge the contour maps of the hydrological parameters in each data block, and obtain the gridded hydrological parameter contour map.
[0007] Optionally, in the above-mentioned gridded hydrological data visualization processing method, the gridded hydrological data is temperature-salinity field gridded data, and the hydrological parameters include hydrological density and hydrological sound velocity.
[0008] Optionally, in the above-mentioned grid hydrological data visualization processing method, in the grid hydrological parameter calculation step, , calculate the hydrological density corresponding to the hydrological data in each data block one by one, where, is the hydrological density; It is the reference density, which is numerically equal to the density of pure water at the reference pressure and temperature; The hydrological temperature is Next, hydrological salinity When it is 0, the change of hydrological density relative to the reference density; is the base pressure and temperature, hydrological salinity Under , the change of hydrological density relative to the reference density; At base pressure, the hydrological temperature Next, hydrological salinity The impact of temperature and salinity interaction on hydrological density under different conditions.
[0009] Optionally, in the above-mentioned gridded hydrological data visualization processing method, in the gridded hydrological parameter calculation step, the sound speed empirical formula of Furlong and Pielou is used to calculate the hydrological sound speed corresponding to the hydrological data in each data block one by one.
[0010] Optionally, in the above-mentioned gridded hydrological data visualization processing method, in the step of drawing the gridded hydrological parameter isosurface map, thick black lines are added between the isosurfaces in the gridded hydrological parameter isosurface map.
[0011] Optionally, in the above-mentioned grid hydrological data visualization processing method, the step of drawing a grid hydrological parameter contour map is specifically as follows: The relationship between the four adjacent data points of the hydrological parameters in each data block and the contour threshold is judged one by one, and the points greater than the contour threshold are recorded as 0, and the rest are recorded as 1, and the corresponding 01 code is generated. According to the 01 code of the four adjacent data points and the contour line topological relationship diagram, the topological relationship between the contour line and the four adjacent data points is obtained, and then the intersection of the contour line and the four adjacent data points is calculated by linear interpolation to form a square, and the contour line segments are drawn. The contour line segments are connected to obtain the contour line map of the hydrological parameters in each data block, and the contour line maps of the hydrological parameters in each data block are merged to obtain the gridded contour line map of the hydrological parameters.
[0012] This application has at least the following beneficial technical effects: The gridded hydrological data visualization processing method disclosed in the above embodiment is designed to divide the gridded hydrological data into data blocks of predetermined sizes, read and process them one by one, and obtain a gridded hydrological parameter isosurface map by merging the isosurface maps of the hydrological parameters in each data block, and obtain a gridded hydrological parameter isoline map by merging the isoline maps of the hydrological parameters in each data block. It has high efficiency and is of great significance for people to understand the hydrological environment in a timely manner and carry out protection and operations. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 is a schematic diagram of a grid hydrological data visualization processing method provided in an embodiment of the present application; Figure 2 This is a topological relationship diagram of the 01 codes and contour lines of four adjacent data points provided in an embodiment of the present application.
[0014] In order to better illustrate the present embodiment, some parts of the drawings may be omitted, enlarged or reduced, and do not represent the size of the actual product. In addition, the drawings are only used for illustrative purposes and should not be construed as limitations on the present application. DETAILED DESCRIPTION
[0015] In order to make the technical solution and advantages of the present application clearer, the technical solution of the present application will be described in further detail in detail and in detail with reference to the accompanying drawings. It can be understood that the specific embodiments described here are only partial embodiments of the present application, which are only used to explain the present application, not to limit the present application. It should be noted that, for the convenience of description, only the parts related to the present application are shown in the accompanying drawings, and other related parts can refer to the general design.
[0016] In addition, unless otherwise defined, the technical terms or scientific terms used in the description of this application shall have the usual meanings understood by those of ordinary skill in the art to which this application belongs. The words used in the description of this application to indicate orientation are only used to indicate relative directions or positional relationships. When the absolute position of the described object changes, its relative positional relationship may also change accordingly. The word "include" used in the description of this application indicates that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, but does not exclude other elements or objects.
[0017] In addition, it should be noted that, unless otherwise clearly specified and limited, the words "installation", "connection" and similar terms used in the description of this application should be understood in a broad sense. For example, the connection can be a fixed connection or a detachable connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium. Technical personnel in the field can understand its specific meaning in this application according to the specific circumstances.
[0018] A grid hydrological data visualization processing method, such as Figure 1 As shown, the following steps are included.
[0019] Gridded hydrological data reading steps: divide the gridded hydrological data into data blocks of a predetermined size, and read each data block one by one.
[0020] The information parameter settings of each data block include the length of the data block, integrity check during data transmission, and repeatable read requests. If the number of failures of the data block read request is within a certain range, multiple read requests can be made.
[0021] Gridded hydrological parameter calculation steps: Calculate the hydrological parameters corresponding to the hydrological data in each data block one by one.
[0022] The gridded hydrological data may specifically be gridded temperature-salinity field data, and the hydrological parameters mainly include hydrological density and hydrological sound velocity.
[0023] The density is calculated as follows: ; in, is the hydrological density; It is the reference density, which is numerically equal to the density of pure water at the reference pressure and temperature. This value can be obtained by looking up data or by fitting experimental data. It is the reference value for calculating hydrological density. The hydrological temperature is Next, hydrological salinity When it is 0, the change value of hydrological density relative to the reference density, which can be obtained by looking up data or by fitting experimental data; is the base pressure and temperature, hydrological salinity Under the above conditions, the change of hydrological density relative to the reference density can be obtained by looking up data or by fitting experimental data; At base pressure, the hydrological temperature Next, hydrological salinity The influence of the interaction between temperature and salinity on the hydrological density can be obtained by looking up data or by fitting experimental data.
[0024] The hydrological sound velocity is calculated using the empirical sound velocity formula of Furlong and Pielou.
[0025] Hydrological density and hydrological sound velocity can also be calculated using other mature formulas.
[0026] The steps of drawing the gridded hydrological parameter isosurface map are as follows: draw the isosurface maps of the hydrological parameters in each data block one by one, merge the isosurface maps of the hydrological parameters in each data block, and obtain the gridded hydrological parameter isosurface map. The specific process can be referred to as follows: The isosurface intervals of the hydrological parameters in each data block are identified one by one, mapped to corresponding grayscale values, and then converted into color values. The grid points in each data block are filled with colors to obtain the isosurface maps of the hydrological parameters in each data block. The isosurface maps of the hydrological parameters in each data block are merged to obtain the gridded isosurface maps of the hydrological parameters.
[0027] When converting grayscale values into color values, the three RGB channels are used to calculate color values according to different weight levels.
[0028] In order to facilitate the identification of gridded hydrological parameter contour maps, thick black lines can be added between the contour surfaces.
[0029] The steps of drawing the grid hydrological parameter contour map are as follows: draw the contour map of the hydrological parameters in each data block one by one, merge the contour maps of the hydrological parameters in each data block, and obtain the grid hydrological parameter contour map. The specific process can be referred to as follows: Determine the relationship between the four adjacent data points of the hydrological parameters in each data block and the contour threshold one by one, record the points greater than the contour threshold as 0, and the rest as 1, generate the corresponding 01 code, and the topological relationship diagram of the 01 code and contour line of the four adjacent data points is as follows: Figure 2 As shown, the topological relationship between the contour line and the four adjacent data points is obtained, and then the intersection of the contour line and the four adjacent data points forming a square is calculated by linear interpolation, and the contour line segments are drawn. The contour line segments are connected to obtain the contour line map of the hydrological parameters in each data block, and the contour line maps of the hydrological parameters in each data block are merged to obtain the gridded contour line map of the hydrological parameters.
[0030] Calculate the intersection of the contour line and the square formed by four adjacent data points using the linear interpolation method.
[0031] The gridded hydrological data visualization processing method disclosed in the above embodiment can be designed in C++ language. The design divides the gridded hydrological data into data blocks of predetermined sizes, reads and processes them one by one, and obtains a gridded hydrological parameter isosurface map by merging the isosurface maps of the hydrological parameters in each data block, and obtains a gridded hydrological parameter isoline map by merging the isoline maps of the hydrological parameters in each data block. It has high efficiency and is of great significance for people to understand the hydrological environment in a timely manner and carry out protection and operations.
[0032] So far, the technical solution of the present application has been described in conjunction with the preferred embodiments shown in the accompanying drawings. Those skilled in the art should understand that the scope of protection of the present application is obviously not limited to these specific embodiments. Without departing from the principles of the present application, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the scope of protection of the present application.
Claims
1. A grid hydrological data visualization processing method, characterized in that: include: Grid hydrological data reading steps: dividing the grid hydrological data into data blocks of a predetermined size, and reading each data block one by one; Gridded hydrological parameter calculation steps: Calculate the hydrological parameters corresponding to the hydrological data in each data block one by one; The steps of drawing the gridded hydrological parameter isosurface map are as follows: the isosurface intervals of the hydrological parameters in each data block are identified one by one, mapped to corresponding grayscale values, and then the grayscale values are converted into color values, and the grid points in each data block are filled with colors to obtain the isosurface maps of the hydrological parameters in each data block, and the isosurface maps of the hydrological parameters in each data block are merged to obtain the gridded hydrological parameter isosurface map; The steps of drawing the gridded hydrological parameter contour map are as follows: draw the contour map of the hydrological parameters in each data block one by one, merge the contour maps of the hydrological parameters in each data block, and obtain the gridded hydrological parameter contour map.
2. The grid hydrological data visualization processing method according to claim 1 is characterized in that: The gridded hydrological data are gridded temperature-salinity field data, and the hydrological parameters include hydrological density and hydrological sound velocity.
3. The grid hydrological data visualization processing method according to claim 2 is characterized in that: In the grid hydrological parameter calculation step, , calculate the hydrological density corresponding to the hydrological data in each data block one by one, where, is the hydrological density; It is the reference density, which is numerically equal to the density of pure water at the reference pressure and temperature; The hydrological temperature is Next, hydrological salinity When it is 0, the change of hydrological density relative to the reference density; is the base pressure and temperature, hydrological salinity Under , the change of hydrological density relative to the reference density; At base pressure, the hydrological temperature Next, hydrological salinity The impact of temperature and salinity interaction on hydrological density under different conditions.
4. The grid hydrological data visualization processing method according to claim 2 is characterized in that: In the gridded hydrological parameter calculation step, the sound velocity empirical formula of Furlong and Pielou is used to calculate the hydrological sound velocity corresponding to the hydrological data in each data block one by one.
5. The grid hydrological data visualization processing method according to claim 1 is characterized in that: In the step of drawing the gridded hydrological parameter isosurface map, thick black lines are added between the isosurfaces in the gridded hydrological parameter isosurface map.
6. The grid hydrological data visualization processing method according to claim 1, characterized in that: The steps for drawing gridded hydrological parameter contour maps are as follows: Determine the relationship between the four adjacent data points of the hydrological parameters in each data block and the contour threshold one by one, record the points greater than the contour threshold as 0, and the rest as 1, generate the corresponding 01 code, and obtain the topological relationship between the contour line and the four adjacent data points based on the 01 code of the four adjacent data points and the contour line topological relationship diagram, and then calculate the intersection of the contour line and the four adjacent data points to form a square, draw contour line segments, connect each contour line segment, and obtain the contour line map of the hydrological parameters in each data block, merge the contour line maps of the hydrological parameters in each data block, and obtain the gridded contour line map of the hydrological parameters.
Citation Information
Patent Citations
Data processing method and device
CN110851984A
Marine data visualization method and device
CN111639149A
Deep learning-based water regime trend prediction method for dense river network basin and application thereof
CN113837450A
Meteorological station contour surface construction method and device and storage medium
CN115761162A
Cited By
Integrated processing system and method for ocean data stored in NetCDF file
CN121236208A
Integrated processing system and method for marine data stored in netCDF file
CN121236208B
