Construction method of system for quickly judging post-earthquake trend of earthquake adaptive to domestic environment
By building a fast post-quake trend determination system that is suitable for the domestic environment, using domestic software and hardware and open source tools to collect and analyze rich seismic information, the problem of inaccurate judgment in the existing technology is solved, and the accuracy of judgment and the safety and efficiency of the system are improved.
Patent Information
- Application Number
- CN202411977855.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-05-09
AI Technical Summary
In the prior art, the trend after earthquakes is judged inaccurately and the earthquake-related information is collected, resulting in low accuracy of judgment.
Build a fast-determination system for earthquake post-quake trends that are suitable for domestic environments. By selecting domestic servers, operating systems, databases and open source middleware, combining GDAL/OGR library, SpatiaLite space library, shell commands and GMT tools and other technologies, collect and analyze earthquake tectonic background, intensity range impact, historical seismic data and precursor abnormal information.
By collecting more earthquake-related information, the accuracy of post-seismic trend judgment is improved, the system's safety and execution efficiency is enhanced, and the efficiency of data visualization and report generation is improved.
Smart Images

Figure CN119961878A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a method for constructing a system for quickly determining a post-earthquake trend, belongs to the field of earthquake analysis and consultation, and in particular to a method for constructing a system for quickly determining a post-earthquake trend that is adapted to a domestic environment. Background Art
[0002] According to the post-earthquake emergency consultation work process of the Monitoring and Forecasting Department of the China Earthquake Administration, a quick assessment of the post-earthquake trend must be reported half an hour after a significant earthquake occurs. In this extremely short period of time, the cleaning, calculation, analysis and product output of a large amount of historical earthquake, tectonic background and other data are inseparable from the support of the post-earthquake trend determination system, so the construction of the post-earthquake trend determination system is very important.
[0003] A Chinese patent application with application number 202310580059.1 and application date May 22, 2023 discloses a post-earthquake trend analysis method, device, electronic device and readable storage medium. The post-earthquake trend analysis method includes: obtaining earthquake data within a preset time range; merging the earthquake data according to a second preset time range and longitude and latitude range to obtain a normalized earthquake data set; the normalized earthquake data set includes at least one earthquake record set within a second preset time range; each of the earthquake record sets includes at least one earthquake location; based on the normalized earthquake data set and an association rule mining algorithm, association rules between the earthquake locations are obtained. Although the design determines the post-earthquake trend of an earthquake based on historical earthquake data, it still has the following defects: In this design, less earthquake-related information is collected. When judging the post-earthquake trend based on the less earthquake-related information, it will lead to inaccurate judgment of the post-earthquake trend.
[0004] The information disclosed in this background technology section is only intended to increase the understanding of the overall background of the application, and should not be regarded as acknowledging or suggesting in any form that the information constitutes the prior art already known to ordinary technicians in this field. Summary of the invention
[0005] The purpose of the present invention is to overcome the defects and problems in the prior art of collecting less earthquake-related information and inaccurate judgment of post-earthquake trends, and to provide a method for constructing a system for quickly determining post-earthquake trends of earthquakes that is suitable for domestic environments and can collect more earthquake-related information and accurately judge post-earthquake trends.
[0006] To achieve the above objectives, the technical solution of the present invention is: A method for constructing a system for quickly determining post-earthquake trends adapted to a domestic environment, the method comprising the following steps: Step 1: First analyze the post-earthquake trend rapid determination system, and then determine the software and hardware that need to be selected and the functions that need to be built. The software and hardware that need to be selected include servers, operating systems, databases, middleware and text editors. The functions that need to be built include earthquake tectonic background analysis, intensity range impact analysis, historical earthquake data statistics, precursor anomaly tracking and judgment, and post-earthquake opinion analysis; Step 2: First select a domestic server as the server, then select a domestic operating system as the operating system, then select a domestic database as the database, then select open source middleware, and then create an earthquake message monitoring thread in the open source middleware. The earthquake message includes the time of the earthquake, the longitude and latitude of the epicenter, and the magnitude, and then select an open source cross-platform text editor; Step 3: First select GDAL / OGR library and SpatiaLite spatial library to complete earthquake tectonic background analysis, then select SpatiaLite extension library to complete intensity range impact analysis, then select shell command and GMT tool to complete historical earthquake data statistics, then select openGauss domestic database to complete precursor anomaly tracking and judgment, and then select the specified method to complete post-earthquake opinion analysis, that is, complete the preliminary construction of the earthquake post-earthquake trend rapid judgment system; Step 4: First, perform designated tests on the initially constructed earthquake post-seismic trend rapid determination system. After the initially constructed earthquake post-seismic trend rapid determination system passes the designated tests, the construction of the earthquake post-seismic trend rapid determination system is completed.
[0007] In the third step, the selection of GDAL / OGR library and SpatiaLite spatial library to complete the earthquake tectonic background analysis is to first select the binary executable command ogr2ogr provided by the GDAL / OGR library to retrieve the faults near the epicenter and the properties of the faults according to the longitude and latitude of the epicenter to obtain the name and properties of the fault closest to the epicenter, and then use the Distance module of the SpatiaLite spatial library to calculate the spherical distance from the fault to the epicenter to obtain the spherical distance from the fault to the epicenter to complete the earthquake tectonic background analysis.
[0008] In the fourth step, the selection of the SpatiaLite extension library to complete the intensity range impact analysis is to first select the corresponding theoretical intensity attenuation model, then use the theoretical intensity attenuation model to calculate the maximum intensity of the epicenter and the intensity circle range above III degrees, and then use the WithIn module in the SpatiaLite extension library to calculate the intensity circle range above III degrees to obtain the number of administrative points and the affected population in the intensity impact area to complete the intensity range impact analysis.
[0009] In the fourth step, the shell command and the GMT tool are selected to complete the statistics of historical earthquake data. First, the shell command is used to perform a preliminary screening of the historical earthquake-related data according to the longitude and latitude of the epicenter to obtain the historical earthquake-related data that meets the longitude and latitude requirements. Then, the GMT tool is used to draw all the historical earthquake data within a specified kilometer radius of the earthquake as a circular historical earthquake distribution map. Then, the GMT tool is used to screen the historical earthquake-related data that meets the longitude and latitude requirements to obtain all the historical earthquake-related data within a specified kilometer radius of the earthquake. Then, all the historical earthquake data in the earthquake zone are drawn as a regional historical earthquake distribution map to complete the statistics of historical earthquake data.
[0010] In the fifth step, the use of shell commands to perform preliminary screening of historical earthquake related data according to the longitude and latitude of the epicenter is to first convert all heterogeneous data containing Chinese in the historical earthquake data into data with specified encoding, and then use shell commands to perform preliminary screening of historical earthquake related data according to the longitude and latitude of the epicenter.
[0011] In the fourth step, the preliminary construction of the earthquake post-earthquake trend rapid determination system is completed by first selecting the open source OpenXml standard library to complete the report output, and then completing the preliminary construction of the earthquake post-earthquake trend rapid determination system.
[0012] In the second step, the selection of the domestic server as the server is to first select the domestic main server as the main server, then select the domestic backup server as the backup server, and then use Keepalived to connect the domestic main server and the domestic backup server.
[0013] In the second step, selecting a domestic main server as the main server is selecting a ThinkSystem SR658Z rack-mounted server as the main server, and selecting a domestic backup server as the backup server is selecting a ThinkSystem SR658Z rack-mounted server as the backup server.
[0014] In the second step, selecting a domestic operating system as the operating system is selecting Tongxin server operating system V20 A version as the operating system.
[0015] In the second step, the open source middleware is selected as the Redis cache database as the cache database and the earthquake information receiving middleware; In the second step, the open source cross-platform text editor is selected by selecting Visual Studio Code as the text editor, and then paired with a C# development plug-in to complete the entire process of development, debugging, and deployment under a domestic operating system.
[0016] Compared with the prior art, the present invention has the following beneficial effects: 1. In a method for constructing a system for quickly determining the post-earthquake trend of an earthquake that is adapted to a domestic environment, the method comprises the following steps: the first step: firstly analyzing the system for quickly determining the post-earthquake trend of an earthquake, and then obtaining the software and hardware to be selected and the functions to be constructed; the second step: selecting a server, an operating system, a database and a middleware, and then creating an earthquake message monitoring thread in the middleware; the third step: firstly selecting a GDAL / OGR library and a SpatiaLite space library to complete the earthquake tectonic background analysis, and then selecting a SpatiaLite extension library to complete the intensity range impact analysis, and then selecting a shell command and a GMT tool to complete the historical earthquake data statistics, and then selecting an openGauss domestic database to complete the precursor anomaly tracking and judgment, and then selecting a specified method to complete the post-earthquake opinion judgment, that is, completing the preliminary construction of the system for quickly determining the post-earthquake trend of an earthquake; the fourth step: firstly testing the aforementioned system, and completing the construction of the system for quickly determining the post-earthquake trend of an earthquake by the test, the advantages of the present invention also include: First point: In the present invention, relevant information about faults near the epicenter, relevant information about the intensity impact range, relevant information about historical earthquakes, and relevant information about precursor anomalies are collected, so more earthquake-related information is collected, and more earthquake-related information is combined to judge the post-earthquake trend of the earthquake, so the accuracy of the post-earthquake trend judgment can be improved, and the specific functions of spatial screening, model calculation, buffer zone analysis, template drawing, report generation, etc. of docking analysis and consultation business can be well realized; Second point: Most of the existing technologies are based on Windows Server operating system, which is based on Intel and AMD CPUs. The microcode systems built into Intel and AMD CPUs have had multiple vulnerabilities, so the security of the existing technologies is relatively low. However, the present invention uses domestic servers and domestic operating systems to process earthquake information, which will not cause vulnerabilities, so the security is improved. Therefore, the present invention collects more earthquake-related information and makes accurate judgments on the post-earthquake trend.
[0017] 2. In the method for constructing a system for quickly determining the post-earthquake trend of an earthquake that is adapted to the domestic environment, in the third step, the binary executable command ogr2ogr provided by the GDAL / OGR library is used to retrieve the faults near the epicenter and the properties of the faults according to the longitude and latitude of the epicenter, and the Distance module of the SpatiaLite spatial library is used to calculate the spherical distance from the fault to the epicenter; in the fourth step, the WithIn module in the SpatiaLite extension library is used to calculate the range of the intensity circle above degree III; the spatial retrieval and calculation of earthquake data are performed through the open source GDAL / OGR library and spatialite library, which not only fully supports all geographic spatial analysis tasks and large text processing tasks in post-earthquake trend analysis, but also has extremely high execution efficiency and long-term sustainable updates. Therefore, the execution efficiency of the present invention is relatively high.
[0018] 3. In the method for constructing a system for quickly determining the post-earthquake trend of an earthquake that is adapted to a domestic environment, in the third step, the heterogeneous data containing Chinese characters are first converted into a specified code, and then the shell command is used to preliminarily screen the historical earthquake-related data, and then the GMT tool is used to screen the relevant data of the specified distance and draw a picture, and then the GMT tool is used to count the historical earthquake data of the earthquake zone where the epicenter is located, and draw a picture; the shell command is used to screen the data, and the open source GMT drawing tool is used to realize the output of data and pictures, so that the proportion of each data can be clearly seen, which improves the visualization effect of the data. Therefore, the data visualization effect of the present invention is better.
[0019] 4. In the method for constructing a system for quickly determining the post-earthquake trend of an earthquake adapted to a domestic environment, in the fourth step, the open source OpenXml standard library is first selected to summarize the previous results into a report in natural language for output, which is convenient for consultation and auxiliary use; there is no need to rely on office or wps external software interfaces, and the efficiency of generating graphic reports is 2 times higher than that of office or wps external software. Therefore, the report generation efficiency of the present invention is high.
[0020] 5. In the construction method of a system for quickly determining the post-earthquake trend of an earthquake adapted to a domestic environment, in the second step, two ThinkSystem SR658Z rack servers are selected as the main server and the backup server, and the two are connected through Keepalived, and the Tongxin server operating system V20 A version is selected as the operating system, and the Redis cache database is selected as the cache database and the receiving earthquake information middleware. The two servers are hot-backed up through the Redis cache database. Once the domestic main server is abnormal, the domestic backup server is immediately promoted to the domestic main server, and the cache database is rebuilt through persistent storage to ensure the reliability of message processing; and the dual backup computing nodes are separated from the database and storage device, which is not only conducive to rapid deployment and troubleshooting, but also conducive to the flexible transplantation and rapid expansion of the method in other operating systems, and the disassembly and assembly combination with other systems. Therefore, the reliability of the present invention is high. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 It is a schematic diagram of the present invention.
[0022] Figure 2 It is a schematic diagram of the functions to be constructed in the present invention.
[0023] Figure 3 The present invention is a flowchart of a post-earthquake trend determination system constructed according to the present invention.
[0024] Figure 4 It is a structural schematic diagram of Example 5.
[0025] Figure 5 It is a schematic diagram of earthquake information received in the present invention.
[0026] Figure 6 It is a schematic diagram of the earthquake tectonic background analysis in the present invention.
[0027] Figure 7 It is a schematic diagram of the intensity range impact analysis in the present invention.
[0028] Figure 8 This is the first schematic diagram of the historical earthquake data statistics in the present invention.
[0029] Fig. 9 This is the second schematic diagram of the historical earthquake data statistics in the present invention.
[0030] Fig.10 This is the third schematic diagram of the historical earthquake data statistics in the present invention.
[0031] Fig.11 This is the fourth schematic diagram of the historical earthquake data statistics in the present invention.
[0032] Fig.12This is the fifth schematic diagram of the historical earthquake data statistics in the present invention.
[0033] Fig.13 It is a schematic diagram of the precursor anomaly tracking statistics in the present invention.
[0034] Fig.14 It is a schematic diagram of post-earthquake opinion analysis in the present invention.
[0035] Fig.15 It is a schematic diagram of the results of Example 4. DETAILED DESCRIPTION
[0036] The present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0037] See also Figure 1 — Fig.15 A method for constructing a system for quickly determining the post-earthquake trend of an earthquake adapted to a domestic environment, the method comprising the following steps: Step 1: First analyze the post-earthquake trend rapid determination system, and then determine the software and hardware that need to be selected and the functions that need to be built. The software and hardware that need to be selected include servers, operating systems, databases, middleware and text editors. The functions that need to be built include earthquake tectonic background analysis, intensity range impact analysis, historical earthquake data statistics, precursor anomaly tracking and judgment, and post-earthquake opinion analysis; Step 2: First select a domestic server as the server, then select a domestic operating system as the operating system, then select a domestic database as the database, then select open source middleware, and then create an earthquake message monitoring thread in the open source middleware. The earthquake message includes the time of the earthquake, the longitude and latitude of the epicenter, and the magnitude, and then select an open source cross-platform text editor; Step 3: First select GDAL / OGR library and SpatiaLite spatial library to complete earthquake tectonic background analysis, then select SpatiaLite extension library to complete intensity range impact analysis, then select shell command and GMT tool to complete historical earthquake data statistics, then select openGauss domestic database to complete precursor anomaly tracking and judgment, and then select the specified method to complete post-earthquake opinion analysis, that is, complete the preliminary construction of the earthquake post-earthquake trend rapid judgment system; Step 4: First, perform designated tests on the initially constructed earthquake post-seismic trend rapid determination system. After the initially constructed earthquake post-seismic trend rapid determination system passes the designated tests, the construction of the earthquake post-seismic trend rapid determination system is completed.
[0038] In the third step, the selection of GDAL / OGR library and SpatiaLite spatial library to complete the earthquake tectonic background analysis is to first select the binary executable command ogr2ogr provided by the GDAL / OGR library to retrieve the faults near the epicenter and the properties of the faults according to the longitude and latitude of the epicenter to obtain the name and properties of the fault closest to the epicenter, and then use the Distance module of the SpatiaLite spatial library to calculate the spherical distance from the fault to the epicenter to obtain the spherical distance from the fault to the epicenter to complete the earthquake tectonic background analysis.
[0039] In the fourth step, the selection of the SpatiaLite extension library to complete the intensity range impact analysis is to first select the corresponding theoretical intensity attenuation model, then use the theoretical intensity attenuation model to calculate the maximum intensity of the epicenter and the intensity circle range above III degrees, and then use the WithIn module in the SpatiaLite extension library to calculate the intensity circle range above III degrees to obtain the number of administrative points and the affected population in the intensity impact area to complete the intensity range impact analysis.
[0040] In the fourth step, the shell command and the GMT tool are selected to complete the statistics of historical earthquake data. First, the shell command is used to perform a preliminary screening of the historical earthquake-related data according to the longitude and latitude of the epicenter to obtain the historical earthquake-related data that meets the longitude and latitude requirements. Then, the GMT tool is used to draw all the historical earthquake data within a specified kilometer radius of the earthquake as a circular historical earthquake distribution map. Then, the GMT tool is used to screen the historical earthquake-related data that meets the longitude and latitude requirements to obtain all the historical earthquake-related data within a specified kilometer radius of the earthquake. Then, all the historical earthquake data in the earthquake zone are drawn as a regional historical earthquake distribution map to complete the statistics of historical earthquake data.
[0041] In the fifth step, the use of shell commands to perform preliminary screening of historical earthquake related data according to the longitude and latitude of the epicenter is to first convert all heterogeneous data containing Chinese in the historical earthquake data into data with specified encoding, and then use shell commands to perform preliminary screening of historical earthquake related data according to the longitude and latitude of the epicenter.
[0042] In the fourth step, the preliminary construction of the earthquake post-earthquake trend rapid determination system is completed by first selecting the open source OpenXml standard library to complete the report output, and then completing the preliminary construction of the earthquake post-earthquake trend rapid determination system.
[0043] In the second step, the selection of the domestic server as the server is to first select the domestic main server as the main server, then select the domestic backup server as the backup server, and then use Keepalived to connect the domestic main server and the domestic backup server.
[0044] In the second step, selecting a domestic main server as the main server is selecting a ThinkSystem SR658Z rack-mounted server as the main server, and selecting a domestic backup server as the backup server is selecting a ThinkSystem SR658Z rack-mounted server as the backup server.
[0045] In the second step, selecting a domestic operating system as the operating system is selecting Tongxin server operating system V20 A version as the operating system.
[0046] In the second step, the open source middleware is selected as the Redis cache database as the cache database and the earthquake information receiving middleware; In the second step, the open source cross-platform text editor is selected by selecting Visual Studio Code as the text editor, and then paired with a C# development plug-in to complete the entire process of development, debugging, and deployment under a domestic operating system.
[0047] The supplementary description of the present invention is as follows: In the accompanying drawings of the present invention: Figure 6 — Fig.15 All of them are partial result demonstrations of the system for rapid determination of post-earthquake trends constructed according to the present invention, and may be different from the reports produced according to actual conditions; in actual conditions, "X" in the figures is a meaningful Chinese character or number.
[0048] The domestic environment described in the present invention is: domestic software and hardware environment, referring to domestic servers, operating systems, databases, middleware, etc.
[0049] The present invention provides for selecting a designated method to complete post-earthquake opinion analysis and judgment as follows: selecting the patent document "A post-earthquake trend probability analysis method based on structural zoning" as the designated method to complete post-earthquake opinion analysis and judgment.
[0050] The designated tests for the preliminary constructed earthquake post-seismic trend rapid determination system described in the present invention are: performing system function testing, performance testing, unit testing and integration testing on the preliminary constructed earthquake post-seismic trend rapid determination system to ensure that the aforementioned system operates stably and correctly; after completing the aforementioned tests, it is necessary to operate synchronously with the original earthquake post-seismic trend rapid determination system for at least two months to compare the operating efficiency and correctness of the output results of the two systems to see whether they meet the requirements, and the construction of the earthquake post-seismic trend rapid determination system described in the present invention is completed after joint review and approval by users and experts.
[0051] Embodiment 1: See also Figure 1 — Fig.15 A method for constructing a system for quickly determining the post-earthquake trend of an earthquake adapted to a domestic environment, the method comprising the following steps: Step 1: First analyze the post-earthquake trend rapid determination system, and then determine the software and hardware that need to be selected and the functions that need to be built. The software and hardware that need to be selected include servers, operating systems, databases, middleware and text editors. The functions that need to be built include earthquake tectonic background analysis, intensity range impact analysis, historical earthquake data statistics, precursor anomaly tracking and judgment, and post-earthquake opinion analysis; Step 2: First select a domestic server as the server, then select a domestic operating system as the operating system, then select a domestic database as the database, then select open source middleware, and then create an earthquake message monitoring thread in the open source middleware. The earthquake message includes the time of the earthquake, the longitude and latitude of the epicenter, and the magnitude, and then select an open source cross-platform text editor; Step 3: First select GDAL / OGR library and SpatiaLite spatial library to complete earthquake tectonic background analysis, then select SpatiaLite extension library to complete intensity range impact analysis, then select shell command and GMT tool to complete historical earthquake data statistics, then select openGauss domestic database to complete precursor anomaly tracking and judgment, and then select the specified method to complete post-earthquake opinion analysis, that is, complete the preliminary construction of the earthquake post-earthquake trend rapid judgment system; Step 4: First, perform designated tests on the initially constructed earthquake post-seismic trend rapid determination system. After the initially constructed earthquake post-seismic trend rapid determination system passes the designated tests, the construction of the earthquake post-seismic trend rapid determination system is completed.
[0052] Embodiment 2: The basic content is the same as that of Example 1, except that: See also Figure 1 — Figure 7 In the third step, the selection of GDAL / OGR library and SpatiaLite spatial library to complete the earthquake tectonic background analysis is to first select the binary executable command ogr2ogr provided by GDAL / OGR library to retrieve the faults near the epicenter and the properties of the faults according to the longitude and latitude of the epicenter to obtain the name and properties of the fault closest to the epicenter, and then use the Distance module of the SpatiaLite spatial library to calculate the spherical distance from the fault to the epicenter to obtain the spherical distance from the fault to the epicenter to complete the earthquake tectonic background analysis. In the fourth step, the selection of SpatiaLite extension library to complete the intensity range impact analysis is to first select the corresponding theoretical intensity attenuation model, and then use the theoretical intensity attenuation model to calculate the maximum intensity of the epicenter and the intensity circle range above III, and then use the WithIn module in the SpatiaLite extension library to calculate the intensity circle range above III to obtain the number of administrative points and the affected population in the intensity impact area to complete the intensity range impact analysis.
[0053] During application, when an earthquake message is received in the listening thread, the earthquake message includes the time of earthquake occurrence, the longitude and latitude of the epicenter, and the magnitude. If the longitude and latitude of the epicenter are within the response area and the magnitude reaches the response level, the binary executable command ogr2ogr provided by the GDAL / OGR library is first used to retrieve the faults near the epicenter and the properties of the faults according to the longitude and latitude of the epicenter, and then the faults near the epicenter and the properties of the faults are obtained. Then, the Distance module of the SpatiaLite spatial library is used to calculate the spherical distance from the fault to the epicenter, and then the distance between the fault and the epicenter is obtained, thus completing the earthquake tectonic background analysis. Then, the theoretical intensity attenuation model is used to calculate the maximum intensity of the epicenter and the range of intensity circles above degree III, and then the WithIn module in the SpatiaLite extension library is used to calculate the number of administrative points and the affected population in the intensity impact area for the range of intensity circles above degree III, so as to complete the intensity range impact analysis.
[0054] Embodiment 3: The basic content is the same as that of Example 1, except that: See also Figure 1 — Fig.11 In the fourth step, the shell command and the GMT tool are selected to complete the historical earthquake data statistics. First, the shell command is used to preliminarily screen the historical earthquake related data according to the longitude and latitude of the epicenter to obtain the historical earthquake related data that meets the longitude and latitude requirements, and then the GMT tool is used to draw all the historical earthquake data within the specified kilometers of the earthquake radius into a circular domain historical earthquake distribution map, and then the GMT tool is used to screen the historical earthquake related data that meets the longitude and latitude requirements to obtain all the historical earthquake related data within the specified kilometers of the earthquake radius, and then all the historical earthquake data in the earthquake zone are drawn into a regional historical earthquake distribution map to complete the historical earthquake data statistics. In the fifth step, the shell command is used to preliminarily screen the historical earthquake related data according to the longitude and latitude of the epicenter. First, all the heterogeneous data containing Chinese in the historical earthquake data are converted into data of specified coding, and then the shell command is used to preliminarily screen the historical earthquake related data according to the longitude and latitude of the epicenter.
[0055] When applying, after completing the intensity range impact analysis, first convert all heterogeneous data containing Chinese in all historical earthquake data into data with specified codes to ensure that the fields with Chinese attributes can be displayed correctly, and then use the shell command to perform an initial screening of the historical earthquake-related data according to the longitude and latitude of the epicenter, and then use the GMT tool to screen out all historical earthquake-related data within a specified kilometer radius of the earthquake, and draw a circular historical earthquake distribution map; then use the GMT tool to count all historical earthquake data in the earthquake zone, and then use the GMT tool to draw all historical earthquake data in the earthquake zone as a regional historical earthquake distribution map to complete the statistics of historical earthquake data.
[0056] Embodiment 4: The basic content is the same as that of Example 1, except that: See also Figure 1 — Figure 5 In the fourth step, the preliminary construction of the earthquake post-earthquake trend rapid determination system is completed by first selecting the open source OpenXml standard library to complete the report output, and then completing the preliminary construction of the earthquake post-earthquake trend rapid determination system.
[0057] When applied, ShapeCrawler library or OpenXML standard library is used to edit the results of earthquake tectonic background analysis, intensity range impact analysis, historical earthquake data statistics, precursor anomaly tracking and judgment, and post-earthquake opinion analysis into a natural language report for easy reading and analysis. According to the richness of the above results, the report template and expression method are changed accordingly; there is no need to rely on office or wps external software interfaces, and the efficiency of generating graphic reports is 2 times higher than that of office or wps external software; after the report is produced, it is pushed to the designated user through the WeChat enterprise platform interface, and then the current earthquake information and report are updated into the trend analysis background library, and after waiting for a certain period of time, for example, ten seconds, the monitoring thread continues to monitor the earthquake information; the open source Skia library can also be used to realize image processing.
[0058] Embodiment 5: The basic content is the same as that of Example 1, except that: See also Figure 1 — Figure 4 , in the second step, the selection of a domestic server as the server is to first select a domestic main server as the main server, then select a domestic backup server as the backup server, and then use Keepalived to connect the domestic main server and the domestic backup server. In the second step, the selection of a domestic main server as the main server is to select a ThinkSystem SR658Z rack-mounted server as the main server, and the selection of a domestic backup server as the backup server is to select a ThinkSystemSR658Z rack-mounted server as the backup server. In the second step, the selection of a domestic operating system as the operating system is to select the Tongxin server operating system V20 A version as the operating system. In the second step, the selection of open source middleware is to select the Redis cache database as the cache database and the earthquake message receiving middleware; in the second step, the selection of an open source cross-platform text editor is to select Visual Studio Code as the text editor, and then use the C# development plug-in to complete the entire process of development, debugging, and deployment under the domestic operating system.
[0059] When applying, first select two ThinkSystem SR658Z rack servers as the domestic main server and domestic backup server; the ThinkSystem SR658Z rack server is equipped with two 8-core 8-thread KH-37800D CPUs, 30G memory, 1TB HDD hard disk, as well as a 4-port Gigabit network card and a dual-10 Gigabit optical network card. The domestic main server and domestic backup server are deployed in the internal private network, isolated from the industry network by a firewall, and only some service IPs and ports are exposed; the domestic main server and domestic backup server are hot-backed up through the Redis cache database, and the cache database is rebuilt through persistent storage to ensure the reliability of message processing; after the domestic main computing server receives the earthquake early warning information in the queue monitoring thread, it queries the required data from the database and shared storage, completes the calculation and drawing, generates special reports and PPTs, and then sends the task completion message to the calling thread through the Redis message queue. At the same time, the domestic main server and the domestic backup server perform dual-machine hot standby and status monitoring in the private network through Keepalived, and provide services to the outside in the form of a virtual IP. Users only need to access the virtual IP to use this method. When accessing the virtual IP, it will first point to the domestic main server. If the domestic main server is abnormal, it will point to the domestic backup server. The domestic main server and the domestic backup server will continue to send heartbeat packets to each other to confirm each other's status and switch to external servers. If a third server is added, one server will be elected as the domestic main server and the other two as domestic backup servers through voting. The text editor Visual Studio Code is selected, and the C# development plug-in is used to complete the entire process of development, debugging, and deployment under the domestic UOS operating system, and the docker container is used to create an independent operating environment image for each software, which can avoid mutual interference between software and ensure the consistency of software development and operating environment.
[0060] Embodiment 6: The basic content is the same as that of Example 1, except that: See also Figure 1 — Fig.13 In the sixth step, the reading of the openGauss domestic database is to read the openGauss domestic database through the Ngpsql driver.
[0061] When used, the openGauss domestic database is read through the Ngpsql driver to obtain the precursor anomaly table.
[0062] The above description is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiment. Any equivalent modifications or changes made by ordinary technicians in this field based on the contents disclosed by the present invention should be included in the protection scope recorded in the claims.
Claims
1. A method for constructing a system for quickly determining the post-earthquake trend of an earthquake adapted to the domestic environment, characterized in that: The method comprises the following steps: Step 1: First analyze the post-earthquake trend rapid determination system, and then determine the software and hardware that need to be selected and the functions that need to be built. The software and hardware that need to be selected include servers, operating systems, databases, middleware and text editors. The functions that need to be built include earthquake tectonic background analysis, intensity range impact analysis, historical earthquake data statistics, precursor anomaly tracking and judgment, and post-earthquake opinion analysis; Step 2: First select a domestic server as the server, then select a domestic operating system as the operating system, then select a domestic database as the database, then select open source middleware, and then create an earthquake message monitoring thread in the open source middleware. The earthquake message includes the time of the earthquake, the longitude and latitude of the epicenter, and the magnitude, and then select an open source cross-platform text editor; Step 3: First select GDAL / OGR library and SpatiaLite spatial library to complete earthquake tectonic background analysis, then select SpatiaLite extension library to complete intensity range impact analysis, then select shell command and GMT tool to complete historical earthquake data statistics, then select openGauss domestic database to complete precursor anomaly tracking and judgment, and then select the specified method to complete post-earthquake opinion analysis, that is, complete the preliminary construction of the earthquake post-earthquake trend rapid judgment system; Step 4: First, perform designated tests on the initially constructed earthquake post-seismic trend rapid determination system. After the initially constructed earthquake post-seismic trend rapid determination system passes the designated tests, the construction of the earthquake post-seismic trend rapid determination system is completed.
2. According to claim 1, a method for constructing a system for quickly determining the post-earthquake trend of an earthquake adapted to a domestic environment is characterized by: In the third step, the selection of GDAL / OGR library and SpatiaLite spatial library to complete the earthquake tectonic background analysis is to first select the binary executable command ogr2ogr provided by the GDAL / OGR library to retrieve the faults near the epicenter and the properties of the faults according to the longitude and latitude of the epicenter to obtain the name and properties of the fault closest to the epicenter, and then use the Distance module of the SpatiaLite spatial library to calculate the spherical distance from the fault to the epicenter to obtain the spherical distance from the fault to the epicenter to complete the earthquake tectonic background analysis.
3. The method for constructing a system for quickly determining the post-earthquake trend of an earthquake adapted to a domestic environment according to claim 2 is characterized in that: In the fourth step, the selection of the SpatiaLite extension library to complete the intensity range impact analysis is to first select the corresponding theoretical intensity attenuation model, then use the theoretical intensity attenuation model to calculate the maximum intensity of the epicenter and the intensity circle range above III degrees, and then use the WithIn module in the SpatiaLite extension library to calculate the intensity circle range above III degrees to obtain the number of administrative points and the affected population in the intensity impact area to complete the intensity range impact analysis.
4. The method for constructing a system for quickly determining the post-earthquake trend of an earthquake adapted to a domestic environment according to claim 1 is characterized in that: In the fourth step, the shell command and the GMT tool are selected to complete the statistics of historical earthquake data. First, the shell command is used to perform a preliminary screening of the historical earthquake-related data according to the longitude and latitude of the epicenter to obtain the historical earthquake-related data that meets the longitude and latitude requirements. Then, the GMT tool is used to draw all the historical earthquake data within a specified kilometer radius of the earthquake as a circular historical earthquake distribution map. Then, the GMT tool is used to screen the historical earthquake-related data that meets the longitude and latitude requirements to obtain all the historical earthquake-related data within a specified kilometer radius of the earthquake. Then, all the historical earthquake data in the earthquake zone are drawn as a regional historical earthquake distribution map to complete the statistics of historical earthquake data.
5. The method for constructing a system for quickly determining the post-earthquake trend of an earthquake adapted to a domestic environment according to claim 4 is characterized in that: In the fifth step, the use of shell commands to perform preliminary screening of historical earthquake related data according to the longitude and latitude of the epicenter is to first convert all heterogeneous data containing Chinese in the historical earthquake data into data with specified encoding, and then use shell commands to perform preliminary screening of historical earthquake related data according to the longitude and latitude of the epicenter.
6. The method for constructing a system for quickly determining the post-earthquake trend of an earthquake adapted to a domestic environment according to claim 1 is characterized in that: In the fourth step, the preliminary construction of the earthquake post-earthquake trend rapid determination system is completed by first selecting the open source OpenXml standard library to output reports on earthquake tectonic background analysis, intensity range impact analysis, historical earthquake data statistics, precursor anomaly tracking and judgment, and post-earthquake opinion analysis, and then completing the preliminary construction of the earthquake post-earthquake trend rapid determination system.
7. The method for constructing a system for quickly determining the post-earthquake trend of an earthquake adapted to a domestic environment according to claim 1 is characterized in that: In the second step, the selection of the domestic server as the server is to first select the domestic main server as the main server, then select the domestic backup server as the backup server, and then use Keepalived to connect the domestic main server and the domestic backup server.
8. The method for constructing a system for quickly determining the post-earthquake trend of an earthquake adapted to a domestic environment according to claim 7 is characterized by: In the second step, selecting a domestic main server as the main server is selecting a ThinkSystemSR658Z rack-mounted server as the main server, and selecting a domestic backup server as the backup server is selecting a ThinkSystem SR658Z rack-mounted server as the backup server.
9. The method for constructing a system for quickly determining the post-earthquake trend of an earthquake adapted to a domestic environment according to claim 8 is characterized in that: In the second step, selecting a domestic operating system as the operating system is selecting Tongxin server operating system V20 A version as the operating system.
10. The method for constructing a system for quickly determining the post-earthquake trend of an earthquake adapted to a domestic environment according to claim 9 is characterized in that: In the second step, the open source middleware is selected as the Redis cache database as the cache database and the earthquake information receiving middleware; In the second step, the open source cross-platform text editor is selected by selecting Visual Studio Code as the text editor, and then paired with a C# development plug-in to complete the entire process of development, debugging, and deployment under a domestic operating system.
Citation Information
Patent Citations
Post-earthquake trend analysis method and device, electronic equipment and readable storage medium
CN116644386A