Rainfall detection method and device

By obtaining initial rainfall data and compensating rainfall in the funnel type rainfall meter and fitting rainfall change data, the problem of large rainfall detection error in the prior art is solved, and the accuracy of rainfall detection is improved.

CN118962860APending Publication Date: 2024-11-15CHONGQING HUAYUE ECOLOGICAL ENVIRONMENT ENG RES INST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411308606.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-19
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

In the rainfall detection of existing funnel type rainfall meters, the data error of the rainfall change in each period is large, which affects the detection accuracy.

Method used

During the rainfall process, the initial rainfall data is obtained based on the measurement period and preset range of the funnel-type rainfall gauge, and combined with the cumulative clearance and the average rainfall speed of the reset period, the compensation rainfall volume is calculated, and then the rainfall change data is fitted to reflect the Changes in rainfall at different times.

Benefits of technology

The error between the changes in rainfall during each period and the changes in actual rainfall during the funnel type rainfall measuring instrument is reduced, and the accuracy of rainfall detection is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118962860A_ABST
    Figure CN118962860A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of rainfall detection, and provides a rainfall detection method and device. The method comprises the following steps: in a rainfall process, obtaining initial rainfall data corresponding to a measurement time period according to any measurement time period and a preset range of the funnel-type rain gauge; measuring time period rainfall data corresponding to the measuring time period are obtained according to the initial rainfall data and the compensation rainfall of the measuring time period determined by the accumulated emptying times of the funnel type rain gauge before the measuring time period and the preset measuring range in the rainfall process; according to the time sequence of each measurement time period, fitting the measurement time period rainfall data corresponding to each measurement time period to obtain rainfall change data in the rainfall process; wherein the measurement time period is a time period from resetting completion to rainfall emptying triggering of the funnel-type rain gauge. The rainfall detection method provided by the embodiment of the invention can improve the accuracy of rainfall detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of precipitation detection, and in particular to a rainfall detection method and device. Background Art

[0002] Rainfall detection is widely used in meteorological measurements in various industries, such as detecting rainfall in reservoir areas to adjust the drainage strategy of reservoir areas according to the rainfall detection results.

[0003] In the related art, rainfall detection can be performed by a funnel rain gauge, which is a tipping bucket rain gauge with a certain range. Every time the accumulated water reaches the set range, the bucket will tip over to empty the rainfall, and at the same time, a pulse signal will be sent to the terminal device used to record the rainfall. The terminal device records the rainfall according to the set range, and this cycle repeats to achieve rainfall detection.

[0004] If this detection method is used to determine the change in rainfall, the rainfall change data is usually determined based on the detection time and the amount of accumulated water. However, the rainfall change data obtained in this way is the same in each period, and the error is large compared with the actual rainfall change in each period, which affects the accuracy of rainfall detection. Summary of the invention

[0005] The present application aims to solve at least one of the technical problems existing in the related art. To this end, the present application proposes a rainfall detection method, which can improve the accuracy of rainfall detection.

[0006] The present application also proposes a rainfall detection device.

[0007] The application also provides an electronic device.

[0008] The present application also proposes a computer-readable storage medium.

[0009] According to the first aspect of the present application, the rainfall detection method includes:

[0010] During the rainfall process, according to any measurement period and the preset range of the funnel-type rain gauge, initial rainfall data corresponding to the measurement period is obtained;

[0011] According to the initial rainfall data and, during the rainfall process, the cumulative number of emptying of the funnel-type rain gauge before the measurement period and the compensation rainfall of the measurement period determined by the preset range, obtaining the measurement period rainfall data corresponding to the measurement period;

[0012] According to the time sequence of each measurement period, fitting the measurement period rainfall data corresponding to each measurement period to obtain the rainfall change data of the rainfall process;

[0013] The measurement period is the period from when the funnel-type rain gauge completes resetting to when the rain is triggered to be cleared.

[0014] The invention discloses a method for obtaining initial rainfall data corresponding to a measuring period according to any measuring period and a preset range of a funnel-type rain gauge during a rainfall process, and obtaining measuring period rainfall data corresponding to the measuring period according to the initial rainfall data and the compensated rainfall of the measuring period determined by the cumulative number of emptying times of the funnel-type rain gauge before the measuring period and the preset range during the rainfall process; and fitting the measuring period rainfall data corresponding to each measuring period according to the time sequence of each measuring period to obtain rainfall variation data of the rainfall process, so that the obtained rainfall variation data can reflect the rainfall variation of different periods during the rainfall process, reduce the error between the rainfall variation of each period obtained and the actual rainfall variation of each period when the funnel-type rain gauge is used for rainfall detection, and thus improve the accuracy of rainfall detection.

[0015] According to an embodiment of the present application, according to the initial rainfall data, and during the rainfall process, the compensation rainfall of the measurement period determined by the cumulative number of emptying of the funnel-type rain gauge before the measurement period and the preset range, the rainfall data of the measurement period corresponding to the measurement period is obtained, including:

[0016] According to the cumulative number of emptying of the funnel-type rain gauge before the nth measuring period and the preset measuring range during the rainfall process, obtaining a first compensated rainfall in the nth measuring period;

[0017] Obtaining a second compensated rainfall amount in the nth measurement period according to the average rainfall speed corresponding to each reset period before the nth measurement period and the reset duration of each reset period;

[0018] Obtaining a compensated rainfall amount in an nth measurement period according to the first compensated rainfall amount and the second compensated rainfall amount;

[0019] Obtaining measurement period rainfall data corresponding to the nth measurement period according to the initial rainfall data of the nth measurement period and the compensated rainfall of the nth measurement period;

[0020] The reset period is the period from when the funnel-type rain gauge triggers the clearing of rainfall to when the reset is completed, and the average rainfall speed corresponding to the reset period is determined based on the average rainfall speed of the previous measurement period before the reset period.

[0021] According to one embodiment of the present application, it also includes:

[0022] The average rainfall speed corresponding to the reset period is determined according to the average rainfall speeds of two measuring periods adjacent to the reset period.

[0023] According to one embodiment of the present application, it also includes:

[0024] According to the preset measuring range of the funnel-type rain gauge and the duration of the measuring period, the average rainfall speed corresponding to the measuring period is obtained.

[0025] According to an embodiment of the present application, according to the time sequence of each of the measurement periods, the measurement period rainfall data corresponding to each of the measurement periods is fitted to obtain the rainfall change data of the rainfall process, including:

[0026] Obtain reset period rainfall data corresponding to the reset period according to the average rainfall speed corresponding to the reset period, the cumulative number of emptying of the funnel-type rain gauge before the reset period, and the compensation rainfall of the reset period determined by the preset range;

[0027] According to the time sequence of each measuring period and each resetting period, the rainfall data of each measuring period and the rainfall data of each resetting period are fitted to obtain the rainfall variation data of the rainfall process.

[0028] According to an embodiment of the present application, according to the timing of each of the measurement periods and each of the reset periods, fitting the rainfall data of each of the measurement periods and the rainfall data of each of the reset periods to obtain rainfall variation data of the rainfall process includes:

[0029] According to the time sequence of each measurement period, coordinate conversion is performed on the rainfall data of each measurement period to obtain an initial coordinate point set that changes with time;

[0030] According to the time sequence of each reset period, coordinate conversion is performed on the rainfall data of each reset period, and multiple discrete points are obtained to interpolate the initial coordinate point set to obtain a target coordinate point set;

[0031] Fitting is performed according to the target coordinate point set to obtain a rainfall variation curve of the rainfall process.

[0032] According to one embodiment of the present application, the initial rainfall data includes rainfall data at the start time of the measurement period and rainfall data at the end time of the measurement period.

[0033] According to the second aspect of the present application, the rainfall detection device includes:

[0034] An initial rainfall determination module is used to obtain initial rainfall data corresponding to any measurement period and a preset range of the funnel-type rain gauge during rainfall;

[0035] A rainfall data compensation module, for obtaining the rainfall data corresponding to the measurement period according to the initial rainfall data and, during the rainfall process, the compensated rainfall of the measurement period determined by the cumulative number of emptying of the funnel-type rain gauge before the measurement period and the preset range;

[0036] A rainfall change determination module is configured to fit the rainfall data of the measurement period corresponding to each measurement period according to the time sequence of each measurement period to obtain the rainfall change data of the rainfall process;

[0037] The measurement period is the period from when the funnel-type rain gauge completes resetting to when the rain is triggered to be cleared.

[0038] According to an embodiment of the third aspect of the present application, the electronic device includes a processor and a memory storing a computer program, and when the processor executes the computer program, the rainfall detection method described in any of the above embodiments is implemented.

[0039] According to the computer-readable storage medium of the fourth aspect of the present application, a computer program is stored thereon, and when the computer program is executed by a processor, the rainfall detection method described in any of the above embodiments is implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0041] Figure 1 A flowchart of a rainfall detection method according to some embodiments of the present application;

[0042] Figure 2 A schematic diagram of a measurement period and a reset period in some embodiments of the present application;

[0043] Figure 3 A schematic diagram of a target coordinate point set in some embodiments of the present application;

[0044] Figure 4 A schematic diagram of a rainfall variation curve in some embodiments of the present application;

[0045] Figure 5 A schematic diagram of the structure of a rainfall detection device provided in some embodiments of the present application;

[0046] Figure 6 A schematic diagram of the structure of an electronic device provided for some embodiments of the present application. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0048] In one embodiment, a rainfall detection method is provided, which can be applied to terminal devices, such as mobile terminals, desktop terminals or servers, etc. The server can be an independent server or a server cluster composed of multiple servers, and can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence sampling point devices.

[0049] like Figure 1 As shown, a rainfall detection method provided in this embodiment includes:

[0050] Step 101, during rainfall, according to any measurement period and preset range of the funnel-type rain gauge, obtaining initial rainfall data corresponding to the measurement period;

[0051] Step 102, obtaining the rainfall data of the measuring period corresponding to the measuring period according to the initial rainfall data and the compensation rainfall of the measuring period determined by the cumulative number of emptying of the funnel-type rain gauge before the measuring period and the preset range during the rainfall process;

[0052] Step 103, fitting the rainfall data of the measurement period corresponding to each measurement period according to the time sequence of each measurement period, to obtain the rainfall change data of the rainfall process;

[0053] The measurement period is the period from when the funnel-type rain gauge completes resetting to when the rain is triggered to be cleared.

[0054] In some embodiments, the preset range refers to the range that triggers the funnel-type rain gauge to clear the rain, and the specific value can be set according to the actual situation. For example, if the range is 144 mm as the preset range of the funnel-type rain gauge, when the accumulated rainfall in the funnel-type rain gauge reaches 144 mm, the funnel-type rain gauge loses balance and overturns, triggering the funnel-type rain gauge to clear the rain.

[0055] The reset of the funnel rain gauge refers to the restoration of the funnel rain gauge to a balanced state. The period from when the funnel rain gauge is restored to a balanced state to when it triggers the rain to be cleared, that is, when it loses balance and overturns, is the measurement period. If it is assumed that the funnel rain gauge completes the reset at 8:00 a.m., that is, it returns to a balanced state, until it loses balance and overturns at 8:05 a.m., triggering the rain to be cleared, then the period from 8:00 a.m. to 8:05 a.m. is a measurement period. Among them, when the funnel rain gauge completes the reset, it will send a pulse signal, such as a positive pulse signal, to the terminal device. After receiving the positive pulse signal, the terminal device can determine the time of receiving the pulse signal as the starting time of the reset of the funnel rain gauge; similarly, when the funnel rain gauge loses balance and overturns, it will send a pulse signal, such as a negative pulse signal, to the terminal device. After receiving the negative pulse signal, the terminal device can determine the time of receiving the negative pulse signal as the time when the funnel rain gauge triggers the rain to be cleared. The period between the positive pulse signal and the next negative pulse signal of the positive pulse signal can be determined as the measurement period. Figure 2 shown.

[0056] When the accumulated amount of rain in the funnel-type rain gauge reaches the preset range, the rain will be cleared. Therefore, during the rainfall process, the preset range is the accumulated amount of rain in the funnel-type rain gauge at the end of any measuring period, and the accumulated amount of rain in the funnel-type rain gauge at the start of any measuring period is zero. In this way, the rainfall data at the start and end of a certain measuring period can be obtained according to the preset range of the funnel-type rain gauge, and the initial rainfall data corresponding to the start and end time of the measuring period can be obtained according to the rainfall data at the start and end of the measuring period. For example, if the preset range of the funnel-type rain gauge is 144, and a certain measuring period is 8:00 a.m.-8:05 a.m., the initial rainfall data corresponding to the measuring period is {0 (8:00 a.m.), 144 (8:05 a.m.)}.

[0057] After obtaining the initial rainfall data of a certain measurement period, the cumulative number of emptying of the funnel-type rain gauge before the measurement period can be counted during the rainfall process, and the compensation rainfall of the measurement period can be obtained according to the cumulative number of emptying and the preset range of the funnel-type rain gauge. The compensation rainfall can be used to represent the accumulated rainfall before the measurement period. For example, assuming that the cumulative number of emptying of the funnel-type rain gauge before the measurement period 8:00 a.m.-8:05 a.m. is N, and the preset range of the funnel-type rain gauge is 144, then the compensation rainfall of the measurement period 8:00 a.m.-8:05 a.m. can be obtained as 144×N. After obtaining the compensated rainfall 144×N for the measurement period 8:00a.m-8:05a.m, the compensated rainfall 144×N can be superimposed on the initial rainfall data {0(8:00a.m), 144(8:05a.m)} to obtain the measurement period rainfall data corresponding to the measurement period 8:00a.m-8:05a.m as {144×N(8:00a.m), 144×N+144(8:05a.m)}.

[0058] After obtaining the rainfall data of the measurement period corresponding to each test period, the rainfall data of each measurement period can be converted into coordinate points in a two-dimensional coordinate system constructed by time and rainfall according to the time sequence of each test period, and then each coordinate point can be fitted to obtain the rainfall change data of the rainfall process, such as the rainfall change curve of the rainfall process.

[0059] The above-designed rainfall detection method obtains initial rainfall data corresponding to a measurement period according to any measurement period and a preset range of a funnel-type rain gauge during a rainfall process, and obtains measurement period rainfall data corresponding to the measurement period according to the initial rainfall data and the compensated rainfall of the measurement period determined by the cumulative number of emptying of the funnel-type rain gauge before the measurement period and the preset range during the rainfall process; and fits the measurement period rainfall data corresponding to each measurement period according to the time sequence of each measurement period to obtain rainfall change data of the rainfall process, so that the obtained rainfall change data can reflect the rainfall change in different periods during the rainfall process, reduce the error between the rainfall change in each period obtained and the actual rainfall change in each period when the funnel-type rain gauge is used for rainfall detection, and thus improve the accuracy of rainfall detection.

[0060] To further improve the accuracy of rainfall detection, in some embodiments, according to the initial rainfall data and, during the rainfall process, the cumulative number of emptying of the funnel-type rain gauge before the measurement period and the compensated rainfall of the measurement period determined by the preset range, the rainfall data of the measurement period corresponding to the measurement period is obtained, including:

[0061] According to the cumulative number of emptying of the funnel-type rain gauge before the nth measuring period and the preset measuring range during the rainfall process, obtaining a first compensated rainfall in the nth measuring period;

[0062] Obtaining a second compensated rainfall amount in the nth measurement period according to the average rainfall speed corresponding to each reset period before the nth measurement period and the reset duration of each reset period;

[0063] Obtaining a compensated rainfall amount in an nth measurement period according to the first compensated rainfall amount and the second compensated rainfall amount;

[0064] Obtaining measurement period rainfall data corresponding to the nth measurement period according to the initial rainfall data of the nth measurement period and the compensated rainfall of the nth measurement period;

[0065] The reset period is the period from when the funnel-type rain gauge triggers the clearing of rainfall to when the reset is completed, and the average rainfall speed corresponding to the reset period is determined based on the average rainfall speed of the previous measurement period before the reset period.

[0066] In some embodiments, during rainfall, for the nth measurement period, the cumulative number of emptying of the funnel-type rain gauge before the nth measurement period can be counted, and the cumulative number of emptying times can be multiplied by the preset range of the funnel-type rain gauge to obtain the first compensated rainfall S1 of the nth measurement period.

[0067] Considering that the funnel-type rain gauge is in an unbalanced and overturned state during the rain clearing process, and it is impossible to detect the rain, the period from triggering the rain clearing to completing the reset of the funnel-type rain gauge, that is, the period from triggering the rain clearing to restoring the balance of the funnel-type rain gauge, can be determined as the reset period, and according to the operation law of the funnel-type rain gauge, it can be determined that the reset period is between two adjacent measurement periods. The length of the reset period can be determined through a large number of experimental tests, or can be determined based on the end time of the previous measurement period and the start time of the next measurement period in two adjacent measurement periods. For example, when the funnel-type rain gauge loses balance and falls over, it will send a pulse signal, such as a negative pulse signal, to the terminal device. After receiving the negative pulse signal, the terminal device can determine the time of receiving the negative pulse signal as the time when the funnel-type rain gauge triggers the rain to be cleared; when the funnel-type rain gauge completes the reset, it will send a pulse signal, such as a positive pulse signal, to the terminal device. After receiving the positive pulse signal, the terminal device can determine the time of receiving the pulse signal as the start time of the funnel-type rain gauge completing the reset. The period between the negative pulse signal and the next positive pulse signal of the negative pulse signal can be determined as the reset period, such as Figure 2 shown.

[0068] For a reset period before the nth measurement period, the average rainfall speed of the previous measurement period of the reset period can be obtained to determine the average rainfall speed of the reset period according to the average rainfall speed. For example, if the reset period is 8:05 a.m.-8:06 a.m. and its previous measurement period is 8:00 a.m.-8:05 a.m., the average rainfall speed of the measurement period 8:00 a.m.-8:05 a.m. can be obtained as the average rainfall speed of the reset period 8:05 a.m.-8:06 a.m.

[0069] For the calculation of the average rainfall speed during the measurement period, the average rainfall speed corresponding to the measurement period can be obtained according to the preset range of the funnel rain gauge and the duration of the measurement period. Among them, the average rainfall speed corresponding to the measurement period = preset range / duration of the measurement period. If it is assumed that the measurement period is 8:00 a.m.-8:05 a.m., it can be determined that the duration of the measurement period is 5 minutes. After the duration of the measurement period is 5 minutes, the preset range of the funnel rain gauge can be divided by the duration of 5 minutes to obtain the average rainfall speed corresponding to the measurement period.

[0070] After obtaining the average rainfall speed corresponding to each measurement period, for a certain reset period, the average rainfall speed of the reset period can be determined according to the average rainfall speed of the previous measurement period of the reset period.

[0071] After obtaining the average rainfall speed of each reset period before the nth measurement period, the average rainfall speed of each reset period can be multiplied by the reset time of each reset period and then accumulated to obtain the second compensated rainfall of the nth measurement period. The reset time of any reset period refers to the duration of the reset period.

[0072] If it is assumed that there are k reset periods before the nth measurement period, the second compensation rainfall S2 of the nth measurement period can be obtained as:

[0073]

[0074] Among them, v i represents the average rainfall rate in the i-th reset period, t i Indicates the reset duration of the i-th reset period.

[0075] After obtaining the first compensated rainfall S1 and the first compensated rainfall S2, the first compensated rainfall S1 and the first compensated rainfall S2 can be added to obtain the compensated rainfall of the nth measurement period, so as to compensate the initial rainfall data of the nth measurement period according to the compensated rainfall of the nth measurement period, and obtain the measurement period rainfall data corresponding to the nth measurement period. In this way, it is possible to compensate for the rainfall that was missed in the process of clearing the rainfall before the nth measurement period by the funnel-type rain gauge, thereby improving the accuracy of the obtained measurement period rainfall data, and further improving the accuracy of the rainfall change data obtained by using the measurement period rainfall data in the subsequent measurement period.

[0076] In order to improve the credibility of the compensated rainfall, in some embodiments, the average rainfall speed corresponding to the reset period may be determined based on the average rainfall speeds of the two measurement periods adjacent to the reset period.

[0077] The two adjacent measurement periods of the reset period are the previous measurement period of the reset period and the next measurement period of the reset period.

[0078] For example, assuming that the reset period is 8:05am-8:06am, the previous measurement period is 8:00am-8:05am, and the next measurement period is 8:06am-8:10am, then the average rainfall speed vt1 of the measurement period 8:00am-8:05am and the average rainfall speed vt2 of the measurement period 8:06am-8:10am can be obtained, and the average of vt1 and vt2 is used as the average rainfall speed of the reset period 8:05am-8:06am. In this way, the rainfall speed of the reset period can be comprehensively considered in the rainfall speed of the adjacent measurement periods, so as to improve the accuracy of the average rainfall speed prediction of the reset period, and further improve the credibility of the compensation rainfall determined by the average rainfall speed of the reset period.

[0079] After obtaining the compensated rainfall corresponding to the measurement period, the compensated rainfall corresponding to the measurement period can be used to compensate the initial rainfall data of the measurement period to obtain the measurement period rainfall data corresponding to the measurement period.

[0080] After obtaining the rainfall data corresponding to each measurement period, a two-dimensional coordinate system representing the corresponding relationship between rainfall and time can be constructed according to the time sequence of each measurement period. For example, a two-dimensional coordinate system with the x-axis as time and the y-axis as rainfall can be constructed. The rainfall data corresponding to each measurement period can then be converted into coordinate points in the two-dimensional coordinate system. The coordinate points can then be fitted to obtain the rainfall change data for the rainfall process.

[0081] Alternatively, a function fitting model representing the correspondence between time and rainfall data in each measurement period may be constructed according to the time sequence of each measurement period and the rainfall data in each measurement period, so as to determine a rainfall variation curve that varies with time during the rainfall process based on the function fitting model.

[0082] In order to further improve the accuracy of the acquired rainfall change data, in some embodiments, according to the time sequence of each measurement period, the rainfall data corresponding to each measurement period is fitted to obtain the rainfall change data of the rainfall process, including:

[0083] Obtain reset period rainfall data corresponding to the reset period according to the average rainfall speed corresponding to the reset period, the cumulative number of emptying of the funnel-type rain gauge before the reset period, and the compensation rainfall of the reset period determined by the preset range;

[0084] According to the time sequence of each measuring period and each resetting period, the rainfall data of each measuring period and the rainfall data of each resetting period are fitted to obtain the rainfall variation data of the rainfall process.

[0085] In some embodiments, for any reset period, the compensation rainfall of the reset period can be obtained based on the cumulative number of emptying of the funnel-type rain gauge before the reset period and the preset range of the funnel-type rain gauge, such as multiplying the cumulative number of emptying of the funnel-type rain gauge before the reset period by the preset range of the funnel-type rain gauge to obtain the compensation rainfall of the reset period. After obtaining the compensation rainfall of the reset period, the compensation rainfall can be determined as the rainfall data at the starting moment of the reset period, so as to obtain the rainfall data at any moment of the reset period based on the rainfall data at the starting moment of the reset period and the average rainfall speed of the reset period. If it is assumed that the compensation rainfall of the reset period T1 is X, the average rainfall speed is vT1, and the reset time is t1, then the rainfall data at the starting moment of the reset period T1 is X, and the rainfall data at the middle moment of the reset period T1 is X+vT1×t1 / 2.

[0086] After obtaining the starting time of a certain reset period and the rainfall data at any time, the starting time of the reset period and the rainfall data at at least one time can be used as the reset period rainfall data corresponding to the reset period. If the rainfall data at the starting time of the reset period is X, and the rainfall data at the middle time is X+vT1×t1 / 2, then the reset period is 8:05a.m-8:07a.m, then the corresponding reset period rainfall data is {X(8:05a.m), X+vT1×t1 / 2(8:06a.m)}.

[0087] After obtaining the reset period rainfall data corresponding to each reset period, the rainfall data of each measurement period and the rainfall data of each reset period can be fitted according to the time sequence of each measurement period and each reset period to obtain the rainfall change data of the rainfall process. For example, according to the time sequence of each measurement period, the time sequence of each reset period, the measurement period rainfall data of each measurement period, and the reset period rainfall data of each reset period, a function fitting model representing the corresponding relationship between time and rainfall data can be constructed, so as to determine the rainfall change curve that changes with time in the rainfall process based on the function fitting model.

[0088] According to the timing of each measurement period and each reset period, a two-dimensional coordinate system representing the correspondence between rainfall and time can be constructed. For example, a two-dimensional coordinate system with the x-axis as time and the y-axis as rainfall can be constructed. Then, the rainfall data of each measurement period corresponding to each measurement period and each reset period can be converted into coordinate points in the two-dimensional coordinate system. Then, each coordinate point can be fitted to obtain the rainfall change data of the rainfall process.

[0089] Alternatively, in some embodiments, the rainfall data of each measurement period may be firstly transformed according to the time sequence of each measurement period to obtain an initial coordinate point set that changes with time. For example, according to the time sequence of each measurement period, the rainfall data of each measurement period may be transformed into a two-dimensional coordinate system constructed by time and rainfall to obtain a plurality of coordinate points constituting an initial coordinate point set.

[0090] After obtaining the initial coordinate point set, the rainfall data of each reset period can be converted into coordinates according to the time sequence of each reset period, and multiple discrete points can be obtained to interpolate the initial coordinate point set to obtain the target coordinate point set. For example, according to the time sequence of each reset period, the rainfall data of each reset period can be converted into the same two-dimensional coordinate system as the initial coordinate point set to obtain multiple discrete points to interpolate the initial coordinate point set to obtain the target coordinate point set, such as Figure 3 shown.

[0091] After obtaining the target coordinate point set, the target coordinate point set can be fitted to obtain the rainfall variation curve of the rainfall process, such as Figure 4 shown.

[0092] The reset period rainfall data corresponding to the reset period is obtained according to the average rainfall speed corresponding to the reset period, the cumulative number of emptying of the funnel-type rain gauge before the reset period, and the compensated rainfall of the reset period determined by the preset range, so as to fit the rainfall data of each measuring period and the rainfall data of each reset period according to the timing of each measuring period and each reset period, and obtain the rainfall change data of the rainfall process, so that the obtained rainfall change data takes into account the rainfall change situation of the reset period, so that the obtained rainfall change data is closer to the real rainfall change, thereby further improving the accuracy of rainfall detection.

[0093] The rainfall detection device provided in the present application is described below. The rainfall detection device described below and the rainfall detection method described above can be referenced to each other.

[0094] In one embodiment, if Figure 5 As shown, a rainfall detection device is provided, comprising:

[0095] The initial rainfall determination module 210 is used to obtain the initial rainfall data corresponding to any measurement period and a preset range of the funnel-type rain gauge during the rainfall process;

[0096] A rainfall data compensation module 220, configured to obtain rainfall data corresponding to the measurement period according to the initial rainfall data and, during the rainfall process, the compensated rainfall of the measurement period determined by the cumulative number of emptying of the funnel-type rain gauge before the measurement period and the preset range;

[0097] The rainfall change determination module 230 performs fitting on the rainfall data corresponding to each measurement period according to the time sequence of each measurement period to obtain rainfall change data of the rainfall process;

[0098] The measurement period is the period from when the funnel-type rain gauge completes resetting to when the rain is triggered to be cleared.

[0099] The invention discloses a method for obtaining initial rainfall data corresponding to a measuring period according to any measuring period and a preset range of a funnel-type rain gauge during a rainfall process, and obtaining measuring period rainfall data corresponding to the measuring period according to the initial rainfall data and the compensated rainfall of the measuring period determined by the cumulative number of emptying times of the funnel-type rain gauge before the measuring period and the preset range during the rainfall process; and fitting the measuring period rainfall data corresponding to each measuring period according to the time sequence of each measuring period to obtain rainfall variation data of the rainfall process, so that the obtained rainfall variation data can reflect the rainfall variation of different periods during the rainfall process, reduce the error between the rainfall variation of each period obtained and the actual rainfall variation of each period when the funnel-type rain gauge is used for rainfall detection, and thus improve the accuracy of rainfall detection.

[0100] In one embodiment, the rainfall data compensation module 220 is specifically used for:

[0101] According to the cumulative number of emptying of the funnel-type rain gauge before the nth measuring period and the preset measuring range during the rainfall process, obtaining a first compensated rainfall in the nth measuring period;

[0102] Obtaining a second compensated rainfall amount in the nth measurement period according to the average rainfall speed corresponding to each reset period before the nth measurement period and the reset duration of each reset period;

[0103] Obtaining a compensated rainfall amount in an nth measurement period according to the first compensated rainfall amount and the second compensated rainfall amount;

[0104] Obtaining measurement period rainfall data corresponding to the nth measurement period according to the initial rainfall data of the nth measurement period and the compensated rainfall of the nth measurement period;

[0105] The reset period is the period from when the funnel-type rain gauge triggers the clearing of rainfall to when the reset is completed, and the average rainfall speed corresponding to the reset period is determined based on the average rainfall speed of the previous measurement period before the reset period.

[0106] In one embodiment, the rainfall data compensation module 220 is further used to:

[0107] The average rainfall speed corresponding to the reset period is determined according to the average rainfall speeds of two measuring periods adjacent to the reset period.

[0108] In one embodiment, the rainfall data compensation module 220 is further used to:

[0109] According to the preset measuring range of the funnel-type rain gauge and the duration of the measuring period, the average rainfall speed corresponding to the measuring period is obtained.

[0110] In one embodiment, the rainfall change determination module 230 is specifically used to:

[0111] Obtain reset period rainfall data corresponding to the reset period according to the average rainfall speed corresponding to the reset period, the cumulative number of emptying of the funnel-type rain gauge before the reset period, and the compensation rainfall of the reset period determined by the preset range;

[0112] According to the time sequence of each measuring period and each resetting period, the rainfall data of each measuring period and the rainfall data of each resetting period are fitted to obtain the rainfall variation data of the rainfall process.

[0113] In one embodiment, the rainfall change determination module 230 is specifically used to:

[0114] According to the time sequence of each measurement period, coordinate conversion is performed on the rainfall data of each measurement period to obtain an initial coordinate point set that changes with time;

[0115] According to the time sequence of each reset period, coordinate conversion is performed on the rainfall data of each reset period, and multiple discrete points are obtained to interpolate the initial coordinate point set to obtain a target coordinate point set;

[0116] Fitting is performed according to the target coordinate point set to obtain a rainfall variation curve of the rainfall process.

[0117] In one embodiment, the initial rainfall data includes rainfall data at the start time of the measurement period and rainfall data at the end time of the measurement period.

[0118] Figure 6 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 6 As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication interface 820 and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call a computer program in the memory 830 to execute a rainfall detection method, for example, including:

[0119] During the rainfall process, according to any measurement period and the preset range of the funnel-type rain gauge, initial rainfall data corresponding to the measurement period is obtained;

[0120] According to the initial rainfall data and, during the rainfall process, the cumulative number of emptying of the funnel-type rain gauge before the measurement period and the compensation rainfall of the measurement period determined by the preset range, obtaining the measurement period rainfall data corresponding to the measurement period;

[0121] According to the time sequence of each measurement period, fitting the measurement period rainfall data corresponding to each measurement period to obtain the rainfall change data of the rainfall process;

[0122] The measurement period is the period from when the funnel-type rain gauge completes resetting to when the rain is triggered to be cleared.

[0123] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-On l yMemory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0124] On the other hand, an embodiment of the present application further provides a storage medium, the storage medium includes a computer program, the computer program can be stored in a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the rainfall detection method provided in the above embodiments, for example, including:

[0125] During the rainfall process, according to any measurement period and the preset range of the funnel-type rain gauge, initial rainfall data corresponding to the measurement period is obtained;

[0126] According to the initial rainfall data and, during the rainfall process, the cumulative number of emptying of the funnel-type rain gauge before the measurement period and the compensation rainfall of the measurement period determined by the preset range, obtaining the measurement period rainfall data corresponding to the measurement period;

[0127] According to the time sequence of each measurement period, fitting the measurement period rainfall data corresponding to each measurement period to obtain the rainfall change data of the rainfall process;

[0128] The measurement period is the period from when the funnel-type rain gauge completes resetting to when the rain is triggered to be cleared.

[0129] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, i.e., they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.

[0130] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0131] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A rainfall detection method, characterized in that: include: During the rainfall process, according to any measurement period and the preset range of the funnel-type rain gauge, initial rainfall data corresponding to the measurement period is obtained; According to the initial rainfall data and, during the rainfall process, the cumulative number of emptying of the funnel-type rain gauge before the measurement period and the compensation rainfall of the measurement period determined by the preset range, obtaining the measurement period rainfall data corresponding to the measurement period; According to the time sequence of each measurement period, fitting the measurement period rainfall data corresponding to each measurement period to obtain the rainfall change data of the rainfall process; The measurement period is the period from when the funnel-type rain gauge completes resetting to when the rain is triggered to be cleared.

2. The method according to claim 1, characterized in that According to the initial rainfall data and, during the rainfall process, the compensated rainfall of the measuring period determined by the cumulative number of emptying of the funnel-type rain gauge before the measuring period and the preset range, the rainfall data of the measuring period corresponding to the measuring period is obtained, including: According to the cumulative number of emptying of the funnel-type rain gauge before the nth measuring period and the preset measuring range during the rainfall process, obtaining a first compensated rainfall in the nth measuring period; Obtaining a second compensated rainfall amount in the nth measurement period according to the average rainfall speed corresponding to each reset period before the nth measurement period and the reset duration of each reset period; Obtaining a compensated rainfall amount in an nth measurement period according to the first compensated rainfall amount and the second compensated rainfall amount; Obtaining measurement period rainfall data corresponding to the nth measurement period according to the initial rainfall data of the nth measurement period and the compensated rainfall of the nth measurement period; The reset period is the period from when the funnel-type rain gauge triggers the clearing of rainfall to when the reset is completed, and the average rainfall speed corresponding to the reset period is determined based on the average rainfall speed of the previous measurement period before the reset period.

3. The method according to claim 2, characterized in that Also includes: The average rainfall speed corresponding to the reset period is determined according to the average rainfall speeds of two measuring periods adjacent to the reset period.

4. The method according to claim 2 or 3, characterized in that: Also includes: According to the preset measuring range of the funnel-type rain gauge and the duration of the measuring period, the average rainfall speed corresponding to the measuring period is obtained.

5. The method according to claim 2 or 3, characterized in that: According to the time sequence of each measurement period, the measurement period rainfall data corresponding to each measurement period is fitted to obtain the rainfall change data of the rainfall process, including: Obtain reset period rainfall data corresponding to the reset period according to the average rainfall speed corresponding to the reset period, the cumulative number of emptying of the funnel-type rain gauge before the reset period, and the compensation rainfall of the reset period determined by the preset range; According to the time sequence of each measuring period and each resetting period, the rainfall data of each measuring period and the rainfall data of each resetting period are fitted to obtain the rainfall variation data of the rainfall process.

6. The method according to claim 5, characterized in that According to the time sequence of each of the measuring time periods and each of the resetting time periods, fitting the rainfall data of each of the measuring time periods and the rainfall data of each of the resetting time periods is performed to obtain rainfall variation data of the rainfall process, including: According to the time sequence of each measurement period, coordinate conversion is performed on the rainfall data of each measurement period to obtain an initial coordinate point set that changes with time; According to the time sequence of each reset period, coordinate conversion is performed on the rainfall data of each reset period, and multiple discrete points are obtained to interpolate the initial coordinate point set to obtain a target coordinate point set; Fitting is performed according to the target coordinate point set to obtain a rainfall variation curve of the rainfall process.

7. The method according to claim 1, characterized in that The initial rainfall data includes the rainfall data at the start time of the measurement period and the rainfall data at the end time of the measurement period.

8. A rainfall detection device, characterized in that: include: An initial rainfall determination module is used to obtain initial rainfall data corresponding to any measurement period and a preset range of the funnel-type rain gauge during rainfall; A rainfall data compensation module, for obtaining the rainfall data corresponding to the measurement period according to the initial rainfall data and, during the rainfall process, the compensated rainfall of the measurement period determined by the cumulative number of emptying of the funnel-type rain gauge before the measurement period and the preset range; A rainfall change determination module is configured to fit the rainfall data of the measurement period corresponding to each measurement period according to the time sequence of each measurement period to obtain the rainfall change data of the rainfall process; The measurement period is the period from when the funnel-type rain gauge completes resetting to when the rain is triggered to be cleared.

9. An electronic device comprising a processor and a memory storing a computer program, characterized in that: When the processor executes the computer program, the rainfall detection method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the rainfall detection method according to any one of claims 1 to 7 is implemented.