CN116168115A - Automatic plotting method and system for bedrock reaction spectrum and override probability curve - Google Patents

Automatic plotting method and system for bedrock reaction spectrum and override probability curve Download PDF

Info

Publication number
CN116168115A
CN116168115A CN202310424893.1A CN202310424893A CN116168115A CN 116168115 A CN116168115 A CN 116168115A CN 202310424893 A CN202310424893 A CN 202310424893A CN 116168115 A CN116168115 A CN 116168115A
Authority
CN
China
Prior art keywords
bedrock
reaction spectrum
labeling
probability curve
reaction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310424893.1A
Other languages
Chinese (zh)
Other versions
CN116168115B (en
Inventor
蒋其峰
许洪泰
魏玮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Earthquake Risk Prevention And Control Center Shandong Engineering Earthquake Research Center
Shandong Institute Of Earthquake Engineering Co ltd
Original Assignee
Shandong Earthquake Risk Prevention And Control Center Shandong Engineering Earthquake Research Center
Shandong Institute Of Earthquake Engineering Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Earthquake Risk Prevention And Control Center Shandong Engineering Earthquake Research Center, Shandong Institute Of Earthquake Engineering Co ltd filed Critical Shandong Earthquake Risk Prevention And Control Center Shandong Engineering Earthquake Research Center
Priority to CN202310424893.1A priority Critical patent/CN116168115B/en
Publication of CN116168115A publication Critical patent/CN116168115A/en
Application granted granted Critical
Publication of CN116168115B publication Critical patent/CN116168115B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/203Drawing of straight lines or curves
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A90/00Technologies having an indirect contribution to adaptation to climate change
    • Y02A90/30Assessment of water resources

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Measurement Of Mechanical Vibrations Or Ultrasonic Waves (AREA)

Abstract

The invention belongs to the technical field of image data processing of engineering earthquakes, and particularly relates to an automatic drawing method and system for a bedrock reaction spectrum and an overrun probability curve, which automatically reads and inputs the bedrock reaction spectrum and the overrun probability curve data file through an automatic drawing system; the parameters such as the number of field points, the number of reaction spectrum periods and the like in the data input file are automatically changed, so that a user is helped to reduce the operation of inputting the parameters, the working efficiency is improved, and meanwhile, a bedrock reaction spectrogram and an overrun probability graph can be automatically drawn; acquiring marking content and judging marking positions; the method is used for drawing the bedrock reaction spectrum and the overrun probability curve map in the engineering earthquake field, can automatically draw the pictures in batches and store the pictures according to the set path, helps a user to improve the efficiency of drawing the bedrock reaction spectrum and the overrun probability curve map, and ensures the picture quality.

Description

Automatic plotting method and system for bedrock reaction spectrum and override probability curve
Technical Field
The invention belongs to the technical field of image data processing of engineering earthquakes, and particularly relates to an automatic drawing method and system for bedrock reaction spectrum and overrun probability curve.
Background
In the engineering earthquake field, important construction projects need to develop earthquake safety evaluation, and the earthquake safety evaluation projects generally need to draw bedrock reaction spectra and overrun probability curves. The bedrock reaction spectrum data and the override probability curve data are typically obtained by probabilistic seismic risk analysis software. While the existing earthquake risk analysis software can draw a bedrock reaction spectrum and an overrun probability curve according to a risk calculation result, the drawing is mostly higher than the software display requirement, and cannot well meet project report writing requirements, such as lack of labels, incapability of storing pictures in batches, poor picture quality, and the need of secondary treatment of technicians. For projects with a large number of sites, the labor cost and the time cost are high, and the working efficiency and the quality are affected.
Disclosure of Invention
The invention aims to: an automated plotting method and system for bedrock reaction spectra and override probability curves is provided to solve the above-mentioned problems.
The technical scheme is as follows:
in a first aspect, a method for automatically mapping a bedrock reaction spectrum and an overrun probability curve, the method comprising the steps of:
step 1, reading an input bedrock reaction spectrum and an overrun probability curve data file;
the second row of the bedrock reaction spectrum stores the number of field points, the number of reaction spectrum periods and the number of override probabilities, and the other rows sequentially store reaction spectrum data;
the second row of the overrun probability curve data file stores the field number, the amplitude number, the curve line number of each field point and the overrun probability curve data;
the step 1 comprises the following steps:
step 1-1, finding a bedrock reaction spectrum data file according to an input path;
step 1-2, three parameters of the second row of the bedrock reaction spectrum are read: the number of field points, the number of reaction spectrum periods and the number of overrun probabilities;
step 1-3, automatically changing parameter values in an input frame of the number of field points, the number of reaction spectrum periods and the number of override probabilities;
step 1-4, judging whether the end of the file is reached;
if yes, entering the step 1-5; if not, reading bedrock reaction spectrum data according to the row and continuously judging whether the end of the file is reached or not until the judgment result is yes;
step 1-5, finding an overrun probability curve data file according to an input path;
step 1-6, three parameters of the second row of the override probability curve data file are read: the number of field points, the number of amplitude values and the number of curved lines of each field point;
step 1-7, changing the number of acceleration amplitude values and inputting parameter values in a frame to be drawn exceeding probability curve line number;
step 1-8, judging whether the end of the article is reached; if yes, entering a step 1-9, otherwise, reading bedrock reaction spectrum data according to rows and continuing to judge until judging yes;
step 1-9, finishing reading the file or performing the next reading;
step 2, drawing a bedrock reaction spectrogram and an overrun probability graph; comprising the following steps:
step 2-1, drawing a bedrock reaction spectrogram;
step 2-2, drawing an overrun probability curve graph;
step 3, obtaining labeling content;
and 4, determining the labeling position and labeling.
Further, in the step 2, a bedrock reaction spectrogram of each field point is drawn through a circulating structure in the process of drawing the bedrock reaction spectrogram, and the pictures are stored to a set position;
and drawing an overrun probability curve graph, drawing the overrun probability curve graph of each field point through a circulating structure, and storing the pictures to the set positions.
Further, the step 2-1 is completed through an adaptive loop algorithm, and specifically includes:
step 2-1-1, judging whether a picture window exists or not, if not, directly entering step 2-1-2; if yes, closing the picture window, and entering the step 2-1-2;
step 2-1-2, acquiring the number of field points, the number of reaction spectrum periods and labeling content through transfer parameters;
step 2-1-3, judging a labeling position according to the period, setting an initial labeling serial number i=1, and starting circulation;
step 2-1-4, judging whether the marking sequence number i is smaller than or equal to the number of the field points, if not, entering a jump step 2-1-11, and ending the cycle; if yes, enter step 2-1-5;
step 2-1-5, acquiring the field point reaction spectrum data through the transmission parameters;
step 2-1-6, drawing a double logarithmic coordinate reaction spectrum;
step 2-1-7, labeling characters at labeling positions;
step 2-1-8, adjusting the coordinate axis range and setting coordinate axis labeling;
step 2-1-9, setting a picture name and storing the picture according to a path;
step 2-1-10, executing i+1 and returning to step 2-1-4;
and 2-1-11, and ending.
Further, the step 2-2 is completed through an adaptive loop algorithm, and specifically includes:
step 2-2-1, judging whether a picture window exists, if not, directly entering the step 2-2-2, if so, closing the picture window, and entering the step 2-2-2;
step 2-2-2, acquiring the number of field points, the number of amplitude values and the number of probability curve lines drawn by each field point through transfer parameters; judging the labeling position according to the amplitude value;
step 2-2-3, setting an initial labeling sequence number i=1;
step 2-2-4, judging whether the marking sequence number i is smaller than or equal to the number of the field points, if not, entering a jump step 2-2-11, and ending the cycle; if yes, enter step 2-2-5;
step 2-2-5, obtaining the field point override curve through the transfer parameters;
step 2-2-6, drawing a double logarithmic coordinate overrunning probability curve graph;
2-2-7, marking characters at the marking positions;
step 2-2-8, adjusting the coordinate axis range and setting coordinate axis labeling;
step 2-2-9, setting a graph name and storing the graph according to a path;
step 2-2-10, executing i+1 and returning to step 2-2-4;
and 2-2-11, and ending.
Further, the labeling content input in the step 3 is character strings described by the exceeding probability separated by English commas, the content is obtained and then divided according to separators, the obtained content is stored in a character string array, and then the character strings are called by a circulating structure according to serial numbers for labeling.
Further, in the step 4, the self-adaptive circulation algorithm is used to determine the labeling position, calculate and identify the condition of the labeling gland, and make adjustment calculation on the labeling position, including:
step 4-1, calculating the labeling height and width through labeling content, font size and screen resolution;
step 4-2, calculating the allowable height of the labeling space of each curve according to the size of the drawing window, the position of the 1s periodic reaction spectrum value and the screen resolution;
step 4-3, setting an initial reaction spectrum sequence number i=1, and starting circulation;
step 4-4, judging whether the labeling sequence number i is smaller than or equal to the number of the reaction spectrum, if not, jumping to the step 4-7, and ending; if yes, enter step 4-5;
step 4-5, judging whether the allowable height of the ith reaction spectrum labeling space is smaller than the font height, if so, entering step 4-6, if not, executing i+1 and returning to step 4-4;
step 4-6, the marking position is adjusted to the current position, the marking width and the corresponding periodic position after 0.1s, i+2 is executed, and the step 4-4 is returned;
and step 4-7, ending.
In a second aspect, a system for automatically plotting a bedrock reaction spectrum and an override probability curve includes plotting software for implementing the above-described method for automatically plotting a bedrock reaction spectrum and an override probability curve.
The beneficial effects are that: the invention provides an automatic drawing method and system for bedrock reaction spectrum and overrun probability curve. The method is used for drawing the bedrock reaction spectrum and the overrun probability curve map in the engineering earthquake field, can automatically draw the pictures in batches and store the pictures according to the set path, helps a user to improve the efficiency of drawing the bedrock reaction spectrum and the overrun probability curve map, and ensures the picture quality; has the following advantages:
1. and reading the bedrock reaction spectrum and the transcendental probability curve data by one key. And the input file can be read by clicking a corresponding button of the software system, and the input file supports a bedrock reaction spectrum and an overrun probability curve data file format output by the mainstream earthquake risk analysis software. Parameters such as the number of field points, the number of reaction spectrum periods, the number of overrun probabilities, the number of acceleration amplitude values, the number of overrun probability curves and the like in an input file are automatically obtained.
2. The man-machine interaction is strong, and the use is more convenient. The default parameters are directly displayed in the input box of the software system operation interface, and the user is clear at a glance. After reading the input file, default parameters are automatically changed according to the content of the file. Errors caused by manual input are reduced to the greatest possible extent. In addition, if the user does not want to draw all the data of the control points or all the data corresponding to the override probabilities, the drawing parameters in the software system interface can be adjusted by the user.
3. The automation degree is high, and the working efficiency can be obviously improved. The invention can draw bedrock reaction spectrum and overrun probability curve pictures in batches and automatically store pictures, wherein the stored pictures comprise emf, jpg and the like. The manual processing time can be greatly reduced, and the working efficiency is greatly improved. And the more control points, the more obvious the efficiency improvement.
4. One key turns off the function of all the drawings. After the bedrock reaction spectrum is drawn by using the software, the graphs are displayed in a computer window in a stacked manner. If the control points are many, the manual closing of the control points one by one reduces the working efficiency, so the function of the one-touch closing drawing is designed. Considering the actual logic used, the one-key closure figures are all "stealth" designs, with no separate keys. Clicking to draw a bedrock reaction spectrogram, drawing an overrun probability graph or closing software, and automatically closing the existing graphs.
5. File path setting function. The invention provides the function of setting the file path, and a user can set the software working path according to the path of the folder. After setting the path, reading the input file and storing the picture are performed according to the path.
6. Marking the customizing function. The picture marking content and the word size can be customized according to actual conditions. The labeling content can be identified only by separating the labeling content by English commas. The word size defaults to 12, and if the user wants to change, a new word size value is input.
7. And (5) real-time error reminding. The parameter input error reminding function is set in consideration of the possibility that the drawing failure is caused by incorrect manual parameter input. If there is an error, there is a popup alert.
8. The size of the drawn drawing is set according to the actual report paper typesetting, so that typesetting is convenient, paper is saved, and printing is clear.
Drawings
FIG. 1 is a schematic diagram of an operation interface of an automatic drawing system according to the present invention.
FIG. 2 is a flow chart of the read input file process of the present invention.
FIG. 3 is a flow chart of a file read error indication according to the present invention.
FIG. 4 is a flow chart of the invention for plotting bedrock reaction profile.
FIG. 5 is a flow chart of the error indication of the bedrock reaction spectrum plot of the present invention.
FIG. 6 is a flow chart of the adaptive loop algorithm of the present invention for determining the location of a callout.
Fig. 7 is a flow chart of the invention for plotting the override probability.
FIG. 8 is a flow chart of the override probability curve mapping error prompt of the present invention.
FIG. 9 is a flowchart of a shutdown software system of the present invention.
FIG. 10 is a schematic diagram of an operation interface of the software system after reading input file parameters according to the present invention.
FIG. 11 is a plot of the bedrock reaction profile of the present invention.
Fig. 12 is a graph of plotted overrun probabilities of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made apparent and fully in view of the accompanying drawings, in which some, but not all embodiments of the invention are shown. All other embodiments, which can be made by those skilled in the art without the benefit of the teachings of the present invention, will now be described more fully hereinafter with reference to the accompanying drawings, in which it is evident that the embodiments so described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
An automatic plotting method for bedrock reaction spectrum and overrun probability curve comprises the following steps:
step 1, reading an input bedrock reaction spectrum and an overrun probability curve data file;
step 2, drawing a bedrock reaction spectrogram and an overrun probability graph; comprising the following steps:
step 2-1, drawing a bedrock reaction spectrogram;
step 2-2, drawing an overrun probability curve graph;
step 3, obtaining labeling content;
step 4, determining the labeling position and labeling;
the following is a method step explanation with reference to the examples and figures 1 to 12;
example 1:
reading an input file;
the data input file format of the bedrock reaction spectrum and the overrun probability curve adopts a mainstream earthquake risk analysis software file format. The second row of the bedrock reaction spectrum stores the number of field points, the number of reaction spectrum periods and the number of override probabilities, and the other rows sequentially store the reaction spectrum data as shown in the following table 1.
TABLE 1 bedrock reaction profile
Figure SMS_1
The second row of the overrun probability curve data file stores the field number, the amplitude number and the curve number of each field point, and the other rows sequentially store overrun probability curve data as shown in the following table 2.
Table 2 override probability curve data file
Figure SMS_2
The process flow of reading an input file inside the system is shown in fig. 2.
Specifically, the specific steps for reading the input bedrock reaction spectrum and the override probability curve data file are as follows:
step 1-1, finding a bedrock reaction spectrum data file according to an input path;
step 1-2, three parameters of the second row of the bedrock reaction spectrum are read: the number of field points, the number of reaction spectrum periods and the number of overrun probabilities;
step 1-3, automatically changing parameter values in an input frame of the number of field points, the number of reaction spectrum periods and the number of override probabilities;
step 1-4, judging whether the end of the file is reached;
if yes, entering the step 1-5; if not, reading bedrock reaction spectrum data according to the row and continuously judging whether the end of the file is reached or not until the judgment result is yes;
step 1-5, finding an overrun probability curve data file according to an input path;
step 1-6, three parameters of the second row of the override probability curve data file are read: the number of field points, the number of amplitude values and the number of curved lines of each field point;
step 1-7, changing the number of acceleration amplitude values and inputting parameter values in a frame to be drawn exceeding probability curve line number;
step 1-8, judging whether the end of the article is reached; if yes, entering a step 1-9, otherwise, reading bedrock reaction spectrum data according to rows and continuing to judge until judging yes;
and step 1-9, ending the file reading or performing the next reading.
More specifically, as shown in fig. 3, the system prompts the user to read errors when the file reads the error prompt.
Example 2: drawing a bedrock reaction spectrogram;
the main idea of drawing the bedrock reaction spectrogram is to draw the bedrock reaction spectrogram of each field point through a circulating structure and store pictures to set positions, and the flow is shown in fig. 4. To avoid drawing errors caused by user input parameter errors, a try..catch statement is configured to prompt the user to check and modify the input parameters in time, see fig. 5. The text labeling in the drawing is an important part, in actual work, the response spectrum curves corresponding to different override probabilities are relatively close, the problem that labels are mutually covered can be caused by improper labeling, but because the realization difficulty is high but the degree of embodiment is not high, almost all similar systems do not process too much or do not label, and the drawing drawn by other similar systems cannot be directly used for reporting and needs to be manually processed. The system uses a self-adaptive circulation algorithm, pre-calculates and identifies the condition of the labeling gland before drawing, and automatically adjusts and calculates the labeling position, and the flow is shown in fig. 6.
Specifically, the specific steps for drawing the bedrock reaction spectrogram are as follows:
step 2-1-1, judging whether a picture window exists or not, if not, directly entering step 2-1-2; if yes, closing the picture window, and entering the step 2-1-2;
step 2-1-2, acquiring the number of field points, the number of reaction spectrum periods and labeling content through transfer parameters;
step 2-1-3, judging a labeling position according to the period, setting an initial labeling serial number i=1, and starting circulation;
step 2-1-4, judging whether the marking sequence number i is smaller than or equal to the number of the field points, if not, entering a jump step 2-1-11, and ending the cycle; if yes, enter step 2-1-5;
step 2-1-5, acquiring the field point reaction spectrum data through the transmission parameters;
step 2-1-6, drawing a double logarithmic coordinate reaction spectrum;
step 2-1-7, labeling characters at labeling positions;
step 2-1-8, adjusting the coordinate axis range and setting coordinate axis labeling;
step 2-1-9, setting a picture name and storing the picture according to a path;
step 2-1-10, executing i+1 and returning to step 2-1-4;
and 2-1-11, and ending.
Example 3: drawing an overrun probability curve graph;
the main idea of drawing the overrun probability curve graph is to draw the overrun probability curve graph of each field point through a circulating structure and store pictures to set positions, and the flow is shown in fig. 9. To avoid drawing errors caused by user input parameter errors, a try..catch statement is configured to prompt the user to check and modify the input parameters in time, see fig. 8.
Specifically, the specific steps for drawing the override probability graph are as follows:
step 2-2-1, judging whether a picture window exists, if not, directly entering the step 2-2-2, if so, closing the picture window, and entering the step 2-2-2;
step 2-2-2, acquiring the number of field points, the number of amplitude values and the number of probability curve lines drawn by each field point through transfer parameters; judging the labeling position according to the amplitude value;
step 2-2-3, setting an initial labeling sequence number i=1;
step 2-2-4, judging whether the marking sequence number i is smaller than or equal to the number of the field points, if not, entering a jump step 2-2-11, and ending the cycle; if yes, enter step 2-2-5;
step 2-2-5, obtaining the field point override curve through the transfer parameters;
step 2-2-6, drawing a double logarithmic coordinate overrunning probability curve graph;
2-2-7, marking characters at the marking positions;
step 2-2-8, adjusting the coordinate axis range and setting coordinate axis labeling;
step 2-2-9, setting a graph name and storing the graph according to a path;
step 2-2-10, executing i+1 and returning to step 2-2-4;
and 2-2-11, and ending.
Example 4: acquiring labeling content;
the labeling content input by the software system control interface is character strings described by the exceeding probability separated by English commas, the program acquires the content and then divides the content according to separators, the content is stored in a character string array, and then the character strings are called by a circulating structure according to serial numbers for labeling.
Determining a labeling position and labeling;
and the software system selects the positions with abundant space to mark according to the response spectrum data and the override probability curve data of the input file, so as to avoid the disorder of marked texts.
Closing the software system;
clicking the closing software, the system automatically judges whether the picture window is not closed, if so, the picture window is closed, and the occupation of computer resources and screens is avoided. And then the data of the software system is cleared, and the software is closed.
Hereinafter, with reference to fig. 10 to 12, the present invention provides a software system drawing example;
clicking on the software system operation interface reads the bedrock reaction spectrum and override probability curve data file, and automatically changing default parameters in the interface according to parameters in the input file (fig. 10). After filling in the content of the override probability, a user can click on the drawing of the bedrock reaction spectrogram and the drawing of the override probability graph. The base rock reaction spectrogram is shown in fig. 11, and the overrun probability graph is shown in fig. 12.
As shown in FIG. 1, the invention provides an automatic plotting system for bedrock reaction spectrum and overrun probability curve;
drawing software system operation interface deployment
The drawing software system operation interface is used as a window for a user to use the system, and all operations of the user are performed on the operation interface. The interface displays all parameters and buttons required by drawing, including parameters such as field point number, reaction spectrum period number, override probability, labeling word number, reaction spectrum and override probability data file path, acceleration amplitude number, and number of override probability curves to be drawn, and the buttons include buttons such as reading bedrock reaction spectrum and override probability curve data file, drawing bedrock reaction spectrogram, drawing override probability curve graph, and closing software. The common parameters are displayed in a parameter input box in a default manner. The number of field points, the number of reaction spectrum periods, the number of override probabilities, the marking word size, the number of acceleration amplitude values and the number of curves to be drawn of the override probabilities adopt numerical input boxes, and the data file paths of the override probabilities, the reaction spectrum and the override probabilities adopt text input boxes. The position arrangement of the button and the input box follows the logic used, the parameters for drawing the bedrock reaction spectrogram and the parameters for drawing the overrun probability graph are arranged in rows, the button for reading the input file is arranged at the top end, and the end button is arranged at the bottom. The buttons or the input boxes are all provided with different callback functions, and clicking the buttons or filling the input boxes triggers the callback functions. If the input box is not filled in, executing the callback function according to the default parameters in the input box. After clicking the data file of the reaction spectrum and the override probability curve of the bedrock, the default parameters of the interface are automatically changed according to the number of the field points in the data input file, the number of the reaction spectrum periods and other parameters, so that a user is helped to reduce the operation of inputting the parameters, and the working efficiency is improved.
It is apparent that the above examples are given by way of illustration only and are not limiting of the embodiments. Other variations or modifications of the above teachings will be apparent to those of ordinary skill in the art. It is not necessary here nor is it exhaustive of all embodiments. While still being apparent from variations or modifications that may be made by those skilled in the art are within the scope of the invention.

Claims (7)

1. An automatic plotting method for bedrock reaction spectrum and override probability curve, which is characterized by comprising the following steps:
step 1, reading an input bedrock reaction spectrum and an overrun probability curve data file;
the second row of the bedrock reaction spectrum stores the number of field points, the number of reaction spectrum periods and the number of override probabilities, and the other rows sequentially store reaction spectrum data;
the second row of the overrun probability curve data file stores the field number, the amplitude number, the curve line number of each field point and the overrun probability curve data;
the step 1 comprises the following steps:
step 1-1, finding a bedrock reaction spectrum data file according to an input path;
step 1-2, three parameters of the second row of the bedrock reaction spectrum are read: the number of field points, the number of reaction spectrum periods and the number of overrun probabilities;
step 1-3, automatically changing parameter values in an input frame of the number of field points, the number of reaction spectrum periods and the number of override probabilities;
step 1-4, judging whether the end of the file is reached;
if yes, entering the step 1-5; if not, reading bedrock reaction spectrum data according to the row and continuously judging whether the end of the file is reached or not until the judgment result is yes;
step 1-5, finding an overrun probability curve data file according to an input path;
step 1-6, three parameters of the second row of the override probability curve data file are read: the number of field points, the number of amplitude values and the number of curved lines of each field point;
step 1-7, changing the number of acceleration amplitude values and inputting parameter values in a frame to be drawn exceeding probability curve line number;
step 1-8, judging whether the end of the article is reached; if yes, entering a step 1-9, otherwise, reading bedrock reaction spectrum data according to rows and continuing to judge until judging yes;
step 1-9, finishing reading the file or performing the next reading;
step 2, drawing a bedrock reaction spectrogram and an overrun probability graph; comprising the following steps:
step 2-1, drawing a bedrock reaction spectrogram;
step 2-2, drawing an overrun probability curve graph;
step 3, obtaining labeling content;
and 4, determining the labeling position and labeling.
2. The automatic drawing method of bedrock reaction spectrum and override probability curve according to claim 1, wherein in step 2, the bedrock reaction spectrum of each field point is drawn through a circulation structure in the process of drawing the bedrock reaction spectrum, and the pictures are stored to the set positions;
and drawing an overrun probability curve graph, drawing the overrun probability curve graph of each field point through a circulating structure, and storing the pictures to the set positions.
3. The automatic plotting method of bedrock reaction spectrum and transcendental probability curve according to claim 1 or 2, wherein the step 2-1 is performed by an adaptive loop algorithm, and specifically comprises:
step 2-1-1, judging whether a picture window exists or not, if not, directly entering step 2-1-2; if yes, closing the picture window, and entering the step 2-1-2;
step 2-1-2, acquiring the number of field points, the number of reaction spectrum periods and labeling content through transfer parameters;
step 2-1-3, judging a labeling position according to the period, setting an initial labeling serial number i=1, and starting circulation;
step 2-1-4, judging whether the marking sequence number i is smaller than or equal to the number of the field points, if not, entering a jump step 2-1-11, and ending the cycle; if yes, enter step 2-1-5;
step 2-1-5, acquiring the field point reaction spectrum data through the transmission parameters;
step 2-1-6, drawing a double logarithmic coordinate reaction spectrum;
step 2-1-7, labeling characters at labeling positions;
step 2-1-8, adjusting the coordinate axis range and setting coordinate axis labeling;
step 2-1-9, setting a picture name and storing the picture according to a path;
step 2-1-10, executing i+1 and returning to step 2-1-4;
and 2-1-11, and ending.
4. A method for automatically plotting a bedrock reaction spectrum and an overrun probability curve according to claim 3, wherein the step 2-2 is performed by an adaptive loop algorithm, and specifically comprises:
step 2-2-1, judging whether a picture window exists, if not, directly entering the step 2-2-2, if so, closing the picture window, and entering the step 2-2-2;
step 2-2-2, acquiring the number of field points, the number of amplitude values and the number of probability curve lines drawn by each field point through transfer parameters; judging the labeling position according to the amplitude value;
step 2-2-3, setting an initial labeling sequence number i=1;
step 2-2-4, judging whether the marking sequence number i is smaller than or equal to the number of the field points, if not, entering a jump step 2-2-11, and ending the cycle; if yes, enter step 2-2-5;
step 2-2-5, obtaining the field point override curve through the transfer parameters;
step 2-2-6, drawing a double logarithmic coordinate overrunning probability curve graph;
2-2-7, marking characters at the marking positions;
step 2-2-8, adjusting the coordinate axis range and setting coordinate axis labeling;
step 2-2-9, setting a graph name and storing the graph according to a path;
step 2-2-10, executing i+1 and returning to step 2-2-4;
and 2-2-11, and ending.
5. The automatic drawing method of bedrock reaction spectrum and overrun probability curve according to claim 4, wherein the labeling content input in the step 3 is character strings described by overrun probability separated by English commas, the content is obtained and then divided according to separators, the obtained content is stored in a character string array, and then the cyclic structure calls the character strings according to serial numbers to label.
6. The automated bedrock reaction spectrum and overrun probability curve mapping method of claim 5, wherein in step 4, the self-adaptive loop algorithm is used to determine the labeling position, calculate and identify the labeling gland condition, and automatically make adjustment calculation for the labeling position, comprising:
step 4-1, calculating the labeling height and width through labeling content, font size and screen resolution;
step 4-2, calculating the allowable height of the labeling space of each curve according to the size of the drawing window, the position of the 1s periodic reaction spectrum value and the screen resolution;
step 4-3, setting an initial reaction spectrum sequence number i=1, and starting circulation;
step 4-4, judging whether the labeling sequence number i is smaller than or equal to the number of the reaction spectrum, if not, jumping to the step 4-7, and ending; if yes, enter step 4-5;
step 4-5, judging whether the allowable height of the ith reaction spectrum labeling space is smaller than the font height, if so, entering step 4-6, if not, executing i+1 and returning to step 4-4;
step 4-6, the marking position is adjusted to the current position, the marking width and the corresponding periodic position after 0.1s, i+2 is executed, and the step 4-4 is returned;
and step 4-7, ending.
7. A bedrock reaction spectrum and override probability curve automated mapping system comprising mapping software for implementing the bedrock reaction spectrum and override probability curve automated mapping method of any one of claims 1-6.
CN202310424893.1A 2023-04-20 2023-04-20 Automatic plotting method and system for bedrock reaction spectrum and override probability curve Active CN116168115B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310424893.1A CN116168115B (en) 2023-04-20 2023-04-20 Automatic plotting method and system for bedrock reaction spectrum and override probability curve

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310424893.1A CN116168115B (en) 2023-04-20 2023-04-20 Automatic plotting method and system for bedrock reaction spectrum and override probability curve

Publications (2)

Publication Number Publication Date
CN116168115A true CN116168115A (en) 2023-05-26
CN116168115B CN116168115B (en) 2023-07-07

Family

ID=86414847

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310424893.1A Active CN116168115B (en) 2023-04-20 2023-04-20 Automatic plotting method and system for bedrock reaction spectrum and override probability curve

Country Status (1)

Country Link
CN (1) CN116168115B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060041406A1 (en) * 2004-06-04 2006-02-23 Porter Keith A Method, computer program product, and system for risk management
CN101826118A (en) * 2009-03-04 2010-09-08 中国核电工程有限公司 Interactive manufacturing method of floor response spectrum for aseismatic calculation
CN104317600A (en) * 2014-10-31 2015-01-28 北京思特奇信息技术股份有限公司 Configurable graph generation method and system
CN109613611A (en) * 2019-01-24 2019-04-12 河北工业大学 The determination method and system of input-to-state stabilization for earthquake-resistant structure time-history analysis
CN109918786A (en) * 2019-03-07 2019-06-21 龙源(北京)风电工程设计咨询有限公司 A kind of offshore wind turbine foundation structure automatic analysis system and method
CN111208559A (en) * 2020-01-09 2020-05-29 中国地震灾害防御中心 Earthquake safety evaluation computing device and method
CN112199397A (en) * 2020-10-21 2021-01-08 中国商用飞机有限责任公司 Test flight data analysis software and test flight data analysis method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060041406A1 (en) * 2004-06-04 2006-02-23 Porter Keith A Method, computer program product, and system for risk management
CN101826118A (en) * 2009-03-04 2010-09-08 中国核电工程有限公司 Interactive manufacturing method of floor response spectrum for aseismatic calculation
CN104317600A (en) * 2014-10-31 2015-01-28 北京思特奇信息技术股份有限公司 Configurable graph generation method and system
CN109613611A (en) * 2019-01-24 2019-04-12 河北工业大学 The determination method and system of input-to-state stabilization for earthquake-resistant structure time-history analysis
CN109918786A (en) * 2019-03-07 2019-06-21 龙源(北京)风电工程设计咨询有限公司 A kind of offshore wind turbine foundation structure automatic analysis system and method
CN111208559A (en) * 2020-01-09 2020-05-29 中国地震灾害防御中心 Earthquake safety evaluation computing device and method
CN112199397A (en) * 2020-10-21 2021-01-08 中国商用飞机有限责任公司 Test flight data analysis software and test flight data analysis method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
KHALDOON A. BANI-HANI ET AL: "A Multi-step approach to generate response-spectrum-compatible artificial earthquake accelerograms", 《SOIL DYNAMICS AND EARTHQUAKE ENGINEERING》, vol. 97 *
冀昆: "我国不同抗震设防需求下的强震动记录选取研究", 《中国博士学位论文全文数据库电子期刊 工程科技II辑》, vol. 2019, no. 4 *
钟菊芳: "重大工程场地地震动输入参数研究", 钟菊芳, vol. 2007, no. 3 *

Also Published As

Publication number Publication date
CN116168115B (en) 2023-07-07

Similar Documents

Publication Publication Date Title
US9846536B2 (en) Composition of handwritten messages on mobile computing devices
US5717794A (en) Document recognition method and system
US6466694B2 (en) Document image processing device and method thereof
USRE36581E (en) Character reader and recognizer with a specialized editing function
CN108846379A (en) Face list recognition methods, system, terminal device and storage medium
JP2007042126A (en) Method and apparatus for producing hybrid data structure for displaying raster image
KR20140009297A (en) Formatting data by example
CN111062196A (en) Batch process flow card generation method based on CAD and Excel
US10417516B2 (en) System and method for preprocessing images to improve OCR efficacy
CN110703977A (en) H5 webpage input keyboard implementation method, device, equipment and storage medium
EP2472393A1 (en) Enablement of culture-based gestures
CN109697414A (en) A kind of text positioning method and device
CN107765966A (en) Event triggering method, device, intelligent terminal and storage medium based on picture
CN116168115B (en) Automatic plotting method and system for bedrock reaction spectrum and override probability curve
JP3795238B2 (en) Document image processing apparatus and document image processing method
CN111144081B (en) Form generation method and device, storage medium and electronic equipment
CN110333861B (en) PLC-based general UI design method for upper computer
EP3185094A1 (en) Process control system and development system for human machine interface
CN109658485B (en) Webpage animation drawing method, device, computer equipment and storage medium
CN116664722B (en) Intelligent environment-friendly big data visualization processing method and system
CN105631412A (en) Data recording method and terminal
US5233672A (en) Character reader and recognizer with a specialized editing function
US11042695B2 (en) Information processing apparatus and non-transitory computer readable medium for generating input screen information
CN105867645A (en) Code input method for digital control system and code format arrangement method
CN110908570B (en) Image processing method, device, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant