Meteorological data storage method and system

By adjusting the interval between meteorological data in a classified storage and collection, and using the storage structure tree for data comparison, the problem of large footprint and slow comparison of meteorological data storage space is solved, and efficient data storage and comparison is achieved.

CN115809242BActive Publication Date: 2024-12-20JIANGSU PROVINCIAL METEOROLOGICAL INFORMATION CENT
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211448362.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-18
Publication Date
2024-12-20
Estimated Expiration
2042-11-18

AI Technical Summary

Technical Problem

Due to the large number of data types and large amount of data, the storage space occupies too much and the data comparison speed is slow, making it difficult for the existing technology to process efficiently.

Method used

By classifying and storing meteorological data, storing data using a storage structure tree, and adjusting the collection interval at the acquisition end according to the weather information value, merging the same data, and building a storage structure tree for easy data comparison.

Benefits of technology

It effectively reduces the storage amount of meteorological data, improves data comparison speed, reduces the storage burden of the system, and extends the service life of the acquisition end without affecting the accuracy of the data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115809242B_ABST
    Figure CN115809242B_ABST
Patent Text Reader

Abstract

The present invention provides a meteorological data storage method and system, which determine meteorological data with the same location information, determine the information type of meteorological information in the meteorological data, and the meteorological information includes meteorological sub-information of multiple information types; sort all meteorological data according to time information to obtain a total time sequence, extract each meteorological sub-information in the total time sequence in turn, and obtain multiple meteorological sub-sequences of different information types; if it is determined that the first meteorological information values ​​of multiple adjacent meteorological sub-information are the same, extract the time information corresponding to the multiple first meteorological information respectively to generate a meteorological time period; count the meteorological time periods with the same first meteorological information value to generate a first time period set, store the first meteorological information value and the first time period set in correspondence, and adjust the collection frequency of the collection end according to the first meteorological information values ​​corresponding to all the first time period sets, thereby reducing the data storage volume.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to data processing technology, and in particular to a meteorological data storage method and system. Background Art

[0002] Meteorological data is a set of data that reflects the weather. Meteorological data can be divided into climate data and weather data. Climate data usually refers to the collection of various original data observed by conventional meteorological instruments and professional meteorological equipment, as well as various data formed by processing, sorting and compiling; Weather data: Weather data is a kind of real-time meteorological data serving weather analysis and forecasting. The difference between the two is that the content of climate data is much broader than that of weather data; climate data is long-term series data, while weather data is short-term data.

[0003] Meteorological data itself has the characteristics of many data types and large data volume. Due to the real-time collection and storage of meteorological data, too much storage space is occupied. When extracting and analyzing data, it is necessary to traverse the storage space one by one for comparison, resulting in a slow data comparison speed. Summary of the invention

[0004] The embodiment of the present invention provides a meteorological data storage method and system, which deletes duplicate data so that meteorological values ​​correspond to a time period set, and adjusts the collection time interval of the collection end according to the weather conditions, thereby reducing the amount of data accordingly, and uses a storage structure tree to store data for convenience of subsequent data comparison, so that comparison results can be obtained more quickly, which saves time relatively.

[0005] In a first aspect of an embodiment of the present invention, a meteorological data storage method is provided, wherein multiple collection terminals collect meteorological data and send the meteorological data to a server, wherein the meteorological data includes meteorological information, time information, and location information, and the server classifies and stores the meteorological data through the following steps, specifically including:

[0006] Determine a plurality of meteorological data having the same location information, and determine the information type of meteorological information in the meteorological data, wherein the meteorological information includes meteorological sub-information of a plurality of information types, and the meteorological sub-information is any one or more of a temperature type, a humidity type, and a wind speed type;

[0007] Sorting all meteorological data according to the time information to obtain a total time sequence, extracting each meteorological sub-information in the total time sequence in turn to obtain a plurality of meteorological sub-sequences of different information types;

[0008] Obtaining first meteorological information values ​​of adjacent meteorological sub-information in the meteorological sub-sequence, and if it is determined that the first meteorological information values ​​of a plurality of adjacent meteorological sub-information are the same, extracting time information corresponding to the plurality of first meteorological information respectively to generate a meteorological time period;

[0009] Meteorological time periods with the same first meteorological information value are counted to generate a first time period set, the first meteorological information value and the first time period set are stored correspondingly, and the collection interval of the collection end is adjusted according to the first meteorological information value.

[0010] Optionally, in a possible implementation manner of the first aspect, obtaining first meteorological information values ​​of adjacent meteorological sub-information in a meteorological subsequence, if it is determined that the first meteorological information values ​​of multiple adjacent meteorological sub-information are the same, extracting time information corresponding to the multiple first meteorological information respectively to generate a meteorological time period, includes:

[0011] Acquire first meteorological information values ​​of adjacent meteorological sub-information in the meteorological sub-sequence, and determine a numerical dimension of the first meteorological information value;

[0012] If the numerical dimension reaches the preset dimension, the first meteorological information value is used as the second meteorological information value; if the numerical dimension does not reach the preset dimension, the numerical dimension of the first meteorological information value is processed according to a preset strategy to obtain the second meteorological information value;

[0013] If it is determined that the second meteorological information values ​​of the adjacent plurality of meteorological sub-information are the same, the maximum time value and the minimum time value among the plurality of second meteorological information values ​​are extracted, and the meteorological time period is generated according to the maximum time value and the minimum time value.

[0014] Optionally, in a possible implementation manner of the first aspect, if the numerical dimension reaches a preset dimension, taking the first meteorological information value as the second meteorological information value, and if the numerical dimension does not reach the preset dimension, processing the numerical dimension of the first meteorological information value according to a preset strategy to obtain the second meteorological information value, including:

[0015] If it is determined that the second meteorological information value is different from the second meteorological information values ​​adjacent to the previous moment and the next moment, and the second meteorological information values ​​adjacent to the previous moment and the next moment are the same;

[0016] The previous moment is taken as the first moment, and a first acquisition time period is generated according to the preset time length and the first moment; the next moment is taken as the second moment, and a second acquisition time period is generated according to the preset time length and the second moment;

[0017] If it is determined that the second meteorological information values ​​corresponding to all moments in the first acquisition time period and the second acquisition time period are the same, the corresponding second meteorological information value is corrected to a second meteorological information value having the same value as the previous moment and the next moment.

[0018] Optionally, in a possible implementation manner of the first aspect, the counting of meteorological time periods having the same first meteorological information value to generate a first time period set, and storing the first meteorological information value and the first time period set in correspondence, includes:

[0019] Constructing a corresponding first storage structure tree according to each first meteorological information value and the location information corresponding to the first time period set, and counting the first corresponding time corresponding to the first storage structure tree;

[0020] Retrieve a second storage structure tree having a second corresponding time and the same location information as the first corresponding time in the same period of the previous year;

[0021] An analysis is performed according to the first storage structure tree, the second storage structure tree and the expected analysis target to obtain corresponding analysis results.

[0022] Optionally, in a possible implementation of the first aspect, constructing a corresponding first storage structure tree according to each first meteorological information value and the location information corresponding to the first time period set, and counting the first corresponding time corresponding to the first storage structure tree includes:

[0023] Constructing a first parent node of a first storage structure tree according to the location information, constructing first child nodes of the first storage structure tree according to the information type of the meteorological information, and connecting each first child node to the first parent node respectively;

[0024] According to the number of second meteorological information values ​​corresponding to the meteorological sub-information, construct a corresponding number of second sub-nodes, configure a corresponding second meteorological information value for each second sub-node, and connect each second sub-node to the first sub-node;

[0025] According to the number of meteorological time periods in the first time period set corresponding to each second meteorological information value, a corresponding number of third sub-nodes are constructed, a corresponding meteorological time period is configured for each third sub-node, and each third sub-node is connected to the second sub-node.

[0026] Optionally, in a possible implementation of the first aspect, performing analysis according to the first storage structure tree, the second storage structure tree, and the expected analysis target to obtain corresponding analysis results includes:

[0027] Determine an optimal meteorological range interval corresponding to an expected analysis target, each expected analysis target has an optimal meteorological range interval pre-set corresponding to it, and the optimal meteorological range interval includes an optimal temperature range and an optimal humidity range;

[0028] Obtain the second meteorological information value of each temperature in the first storage structure tree to obtain the temperature meteorological value and the corresponding first time period set, obtain the second meteorological information value of each humidity in the first storage structure tree to obtain the humidity meteorological value and the corresponding first time period set;

[0029] Obtain the second meteorological information value of each temperature in the second storage structure tree to obtain the temperature meteorological value and the corresponding second time period set, and obtain the second meteorological information value of each humidity in the second storage structure tree to obtain the humidity meteorological value and the corresponding second time period set;

[0030] Determine the first temperature ratio of the first time period set in the optimal temperature range and the first humidity ratio of the first time period set in the optimal humidity range in the first storage structure tree;

[0031] Determine the second temperature ratio of the second time period set in the optimal temperature range and the second humidity ratio of the second time period set in the optimal humidity range in the second storage structure tree;

[0032] The predicted production of the first storage structure tree is obtained by calculating according to the first temperature proportion, the first humidity proportion, the second temperature proportion, the second humidity proportion and the historical production corresponding to the second storage structure tree.

[0033] Optionally, in a possible implementation manner of the first aspect, the calculating according to the first temperature proportion, the first humidity proportion, the second temperature proportion, the second humidity proportion, and the historical production corresponding to the second storage structure tree to obtain the predicted production of the first storage structure tree includes:

[0034] Compare the first temperature proportion with the second temperature proportion to obtain a temperature influence trend value, and compare the first humidity proportion with the second humidity proportion to obtain a humidity influence trend value;

[0035] Calculate according to the temperature impact trend value, the humidity impact trend value and the historical output to obtain the predicted output of the first storage structure tree;

[0036] The predicted output is obtained by the following formula:

[0037]

[0038] Among them, y1 is the predicted output, y2 is the historical output, w1 is the proportion of the first temperature, w2 is the proportion of the second temperature, g w Normalized value of temperature ratio, l1 is the first humidity ratio, l2 is the second humidity ratio, g lis the normalized value of humidity percentage, m1 is the total time in the optimal temperature range in the first storage structure tree, m3 is the preset time in the optimal temperature range, m2 is the total time in the optimal temperature range in the second storage structure tree, r1 is the total time in the optimal humidity range in the first storage structure tree, r3 is the preset time in the optimal humidity range, and r2 is the total time in the optimal humidity range in the second storage structure tree.

[0039] Optionally, in a possible implementation manner of the first aspect, adjusting the collection interval of the collection end according to the first meteorological information value includes:

[0040] If the second meteorological information value is greater than the maximum value of the preset range, obtaining a first difference value according to the difference between the second meteorological information value and the maximum value within the preset range;

[0041] If the second meteorological information value is less than the minimum value of the preset range, obtaining a second difference value according to the difference between the minimum value in the preset range and the second meteorological information value;

[0042] Adjusting the preset collection interval of the collection end according to the first difference or the second difference to obtain a first collection interval;

[0043] The first acquisition interval is obtained by the following formula:

[0044]

[0045] Among them, A1 is the second meteorological information value, a min is the minimum value of the preset range, I2 is the first collection interval, ε1 is the influence factor of the first collection interval, β1 is the first constant value, I1 is the preset collection interval, a max is the maximum value of the preset range, and β2 is the second constant value.

[0046] Optionally, in a possible implementation of the first aspect, the method further includes:

[0047] Monitor user behavior to obtain user behavior data, obtain a second collection interval and an adjustment number actively input by the user according to the user behavior data, and modify the first collection interval to the second collection interval;

[0048] If the second collection interval is greater than the first collection interval, generating a first interval difference according to a difference between the second collection interval and the first collection interval;

[0049] Correcting the influence factor of the first collection interval according to the first interval difference and the number of adjustments to obtain a corrected influence factor of the first collection interval;

[0050] If the second collection interval is smaller than the first collection interval, generating a second interval difference according to the difference between the first collection interval and the second collection interval;

[0051] Correcting the influence factor of the first collection interval according to the second interval difference and the number of adjustments to obtain a corrected influence factor of the first collection interval;

[0052] The influence factor of the corrected first acquisition interval is obtained by the following formula:

[0053]

[0054] Where I3 is the second acquisition interval, ε2 is the impact factor of the corrected first acquisition interval, τ1 is the positive correction value, is the upper limit of the adjustment times, and τ2 is the negative correction value.

[0055] A second aspect of an embodiment of the present invention provides a meteorological data storage system, comprising:

[0056] a determination module, configured to determine a plurality of meteorological data having the same location information, and determine the information type of meteorological information in the meteorological data, wherein the meteorological information includes meteorological sub-information of a plurality of information types, and the meteorological sub-information is any one or more of a temperature type, a humidity type, and a wind speed type;

[0057] A sorting module is used to sort all meteorological data according to the time information to obtain a total time sequence, and extract each meteorological sub-information in the total time sequence in turn to obtain a plurality of meteorological sub-sequences of different information types;

[0058] An extraction module is used to obtain first meteorological information values ​​of adjacent meteorological sub-information in a meteorological sub-sequence, and if it is determined that the first meteorological information values ​​of a plurality of adjacent meteorological sub-information are the same, extract the time information corresponding to the plurality of first meteorological information respectively to generate a meteorological time period;

[0059] The storage adjustment module is used to count meteorological time periods with the same first meteorological information value to generate a first time period set, store the first meteorological information value and the first time period set in correspondence, and adjust the collection interval of the collection end according to the first meteorological information value.

[0060] According to a third aspect of an embodiment of the present invention, there is provided an electronic device, comprising: a memory, a processor and a computer program, wherein the computer program is stored in the memory, and the processor runs the computer program to execute the first aspect of the present invention and various methods that may be involved in the first aspect.

[0061] According to a fourth aspect of an embodiment of the present invention, a readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, it is used to implement the first aspect of the present invention and various methods that may be involved in the first aspect.

[0062] The present invention provides a meteorological data storage method and system, which compares the meteorological data collected by the meteorological data collection end, merges the time moments corresponding to the adjacent and identical meteorological data to obtain the meteorological time period, and combines the time periods corresponding to all the identical meteorological data to obtain the first time period set, so that the amount of meteorological data is greatly reduced, the storage burden of the system is reduced, and the accuracy of the data is not affected. The system can change the collection frequency of the collection end according to the actual weather conditions, and relatively reduce the burden and aging degree of the collection end without affecting the acquisition of meteorological data.

[0063] The technical solution provided by the present invention, when the collection end devices are different and the corresponding collection value accuracies are different, the data of different numerical dimensions are unified according to a preset strategy, and a front-to-back check is performed to eliminate the errors in data adjustment, which is convenient for subsequent data comparison and subsequent saving of corresponding storage space.

[0064] The technical solution provided by the present invention stores meteorological data in the form of a storage structure tree, which is convenient for subsequent data analysis and comparison. By comparing the meteorological time period corresponding to the best growth meteorological value in the current storage structure tree with the storage structure tree of the same period in previous years, the predicted value of the analysis can be obtained more quickly, which relatively reduces the memory occupied by the system operation. Compared with the traditional technology that needs to traverse the memory one by one for searching, the comparison processing efficiency is relatively improved.

[0065] According to the technical solution provided by the present invention, the server will relatively control the collection frequency of the collection end according to the different meteorological values ​​collected by the collection end. The worse the climate, the higher the corresponding collection frequency, and it presents an increasing trend. The more suitable the climate, the lower the corresponding collection frequency. The collection time interval is longer, which can reduce the amount of data collected and the working time of the collection end without affecting the data accuracy, and relatively improve the service life of the collection end. In addition, the server has an autonomous learning function, actively records user behavior to adjust the first collection interval, so that the collection interval automatically output by the system under the same meteorological value deviation subsequently meets the requirements and is more in line with the actual situation. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] Figure 1 A flow chart of a meteorological data storage method provided by the present invention;

[0067] Figure 2 A flow chart of a method for processing meteorological information values ​​provided by the present invention;

[0068] Figure 3 A schematic diagram of the structure of a meteorological data storage system provided by the present invention;

[0069] Figure 4 A schematic diagram of the hardware structure of an electronic device provided by the present invention. DETAILED DESCRIPTION

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

[0071] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in sequences other than those illustrated or described herein.

[0072] It should be understood that in various embodiments of the present invention, the size of the sequence number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0073] It should be understood that in the present invention, "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products or apparatuses.

[0074] It should be understood that in the present invention, "plurality" refers to two or more than two. "And / or" is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "Contains A, B and C", "Contains A, B, C" means that A, B, and C are all included, "Contains A, B or C" means that one of A, B, and C is included, and "Contains A, B and / or C" means that any one, any two, or any three of A, B, and C are included.

[0075] It should be understood that in the present invention, "B corresponding to A", "B corresponding to A", "A corresponds to B" or "B corresponds to A" means that B is associated with A and B can be determined based on A. Determining B based on A does not mean determining B based only on A, but B can also be determined based on A and / or other information. A and B match when the similarity between A and B is greater than or equal to a preset threshold.

[0076] Depending on the context, "if" as used herein may be interpreted as "when" or "when" or "in response to determining" or "in response to detecting."

[0077] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0078] The present invention provides a meteorological data storage method, wherein multiple collection terminals collect meteorological data and send the meteorological data to a server, wherein the meteorological data includes meteorological information, time information, and location information. The server classifies and stores the meteorological data through the following steps: Figure 1 As shown, specifically including:

[0079] Step S110, determine multiple meteorological data with the same location information, and determine the information type of the meteorological information in the meteorological data, the meteorological information includes meteorological sub-information of multiple information types, and the meteorological sub-information is any one or more of temperature type, humidity type and wind speed type.

[0080] According to the technical solution provided by the present invention, the system will determine multiple meteorological data at the same location, wherein the meteorological data includes meteorological information, time information and location information, and determine the information type of the meteorological information in the meteorological data, the meteorological information includes meteorological sub-information of multiple information types, wherein the meteorological sub-information is any one or more of the temperature type, humidity type and wind speed type. It can be understood that the meteorological information includes temperature information, humidity information and wind speed information, and the meteorological sub-information is the corresponding information type in the meteorological information, which is convenient for subsequent extraction of meteorological sub-sequences of different information types according to the meteorological sub-information to deduplicate the data and reduce the subsequent storage amount.

[0081] Step S120: sort all meteorological data according to the time information to obtain a total time sequence, extract each meteorological sub-information in the total time sequence in turn, and obtain multiple meteorological sub-sequences of different information types.

[0082] According to the technical solution provided by the present invention, the system will sort all meteorological data according to the time information to obtain the total time sequence. It can be understood that the system can sort according to the time information from small to large, for example: August 1, 2000 16:19:59: temperature is 35°C, humidity is 55% and wind speed is 5m / s, August 1, 2000 16:20:00: temperature is 35°C, humidity is 55% and wind speed is 5m / s, August 1, 2000 16:20:01: temperature is 36°C, humidity is 55% and wind speed is 5m / s, August 1, 2000 16:20:02: temperature is 35°C, humidity is 55% and wind speed is 5m / s. is 55% and the wind speed is 5m / s. On August 1, 2000, at 16:20:03, the temperature is 35°C, the humidity is 55% and the wind speed is 5m / s. This is not limited here. The total time sequence is the meteorological data sorted according to the time. The total time sequence is obtained. Each meteorological sub-information is extracted in the total time sequence in turn to obtain meteorological sub-sequences of different information types. It can be understood that meteorological sub-sequences about temperature, humidity and wind speed are extracted from the total time sequence. For example, from the total time sequence, at 16:20:00 on August 1, 2000, the temperature is 35°C, the humidity is 55% and the wind speed is 5m / s. On August 1, 2000, at 16:20:01, the temperature was 36°C, the humidity was 55%, and the wind speed was 5m / s. On August 1, 2000, at 16:20:02, the temperature was 35°C, the humidity was 55%, and the wind speed was 5m / s. On August 1, 2000, at 16:20:03, the temperature was 35°C, the humidity was 55%, and the wind speed was 5m / s. The meteorological subsequences of temperature, humidity, and wind speed were extracted respectively, and the meteorological subsequences of temperature type were obtained: August 1, 2000, at 16:19:59: the temperature was 35°C, August 1, 2000, at 16:20:00: the temperature was 35°C, August 1, 2000, at 16:20:01 : Temperature is 36℃, August 1, 2000 16:20:02: Temperature is 35℃, August 1, 2000 16:20:03: Temperature is 35℃; Meteorological subsequence of humidity type: August 1, 2000 16:19:59: Humidity is 55%, August 1, 2000 16:20:00: Humidity is 55%, August 1, 2000 16:20:01: Humidity is 55%, August 1, 2000 16:20:02: Humidity is 55%, August 1, 2000 16:20:03: Humidity is 55%, August 1, 2000 16:20:05: Humidity is 55%;Meteorological subsequences of wind speed categories: August 1, 2000 16:19:59: wind speed is 5m / s, August 1, 2000 16:20:00: wind speed is 5m / s, August 1, 2000 16:20:01: wind speed is 5m / s, August 1, 2000 16:20:02: wind speed is 5m / s, August 1, 2000 16:20:03: wind speed is 5m / s, August 1, 2000 16:20:05: wind speed is 5m / s, generate sequences corresponding to each category, facilitate subsequent data comparison, remove duplicates of related data, make data correspond to time periods, and reduce the corresponding data storage volume. ;

[0083] Step S130, obtaining first meteorological information values ​​of adjacent meteorological sub-information in the meteorological sub-sequence, and if it is determined that the first meteorological information values ​​of multiple adjacent meteorological sub-information are the same, extracting the time information corresponding to the multiple first meteorological information respectively to generate a meteorological time period.

[0084] According to the technical solution provided by the present invention, the system obtains the first meteorological information values ​​of adjacent meteorological sub-information in the meteorological sub-sequence. If it is determined that the first meteorological information values ​​of multiple adjacent meteorological sub-information are the same, the time corresponding to the first meteorological information values ​​with the same value is extracted and merged into the meteorological time period. For example, the meteorological sub-sequence of temperature type is obtained: August 1, 2000 16:19:59: the temperature is 35°C, August 1, 2000 16:20:00: the temperature is 35°C, August 1, 2000 16:20:01: the temperature is 36°C, August 1, 2000 16:20:02: The temperature is 35°C, 16:20:03 on August 1, 2000: The temperature is 35°C, then the time information corresponding to 35°C is extracted, and the corresponding meteorological time period is generated. The meteorological time period is: 16:19:59 on August 1, 2000 to 16:20:00 on August 1, 2000, 16:20:02 on August 1, 2000 to 16:20:03 on August 1, 2000. It can be understood that each moment needs to correspond to a first meteorological information value, which is converted into a first meteorological information value corresponding to a time period, which reduces the data storage amount and reduces the storage burden of the system.

[0085] The technical solution provided by the present invention, in a possible implementation manner, is as follows Figure 2 As shown, step S130 specifically includes:

[0086] Step S1301: Obtain first meteorological information values ​​of adjacent meteorological sub-information in a meteorological sub-sequence, and determine a numerical dimension of the first meteorological information value.

[0087] According to the technical solution provided by the present invention, the system will obtain the first meteorological information value of adjacent meteorological sub-information in a meteorological sub-sequence, and determine the numerical dimension of the first meteorological information value, wherein the numerical dimension refers to the numerical dimension of the data. It can be understood that the system will obtain adjacent meteorological numerical values ​​in temperature, humidity and wind speed, and determine whether the meteorological numerical value is an integer dimension or a decimal dimension, for example: obtaining adjacent meteorological numerical values ​​of 35°C and 35.5°C in temperature, so as to facilitate subsequent unified processing according to a preset strategy to unify the data.

[0088] Step S1302: If the numerical dimension reaches the preset dimension, the first meteorological information value is used as the second meteorological information value; if the numerical dimension does not reach the preset dimension, the numerical dimension of the first meteorological information value is processed according to a preset strategy to obtain the second meteorological information value.

[0089] The technical solution provided by the present invention, if the numerical dimension reaches a preset dimension, wherein the preset dimension may be an integer dimension, it can be understood that if the numerical dimension reaches an integer dimension, the first meteorological information value is used as the second meteorological information value, for example: if it is originally 35°C, it is directly used as 35°C, if the numerical dimension does not reach the preset dimension, for example: 35.5°C is not an integer, then the numerical dimension of a meteorological information value is processed according to a preset strategy to obtain a second meteorological information value, wherein the preset strategy may be rounding up, rounding down, or rounding, which is not limited here, for example: rounding 35.5°C to 36°C, and performing unified processing, and performing unified processing on the data received by all acquisition terminals, so as to facilitate subsequent processing.

[0090] Step S1303: If it is determined that the second meteorological information values ​​of the adjacent multiple meteorological sub-information are the same, extract the maximum time value and the minimum time value among the multiple second meteorological information values, and generate a meteorological time period according to the maximum time value and the minimum time value.

[0091] The technical solution provided by the present invention, if it is determined that the second meteorological information values ​​of multiple adjacent meteorological sub-information are the same, it can be understood that if multiple temperature values ​​are the same, the maximum time value and the minimum time value corresponding to the multiple temperature values ​​are extracted, and the meteorological time period is generated according to the maximum time value and the minimum time value, for example: August 1, 2000 16:19:59: temperature is 35°C, August 1, 2000 16:20:00: temperature is 35°C, August 1, 2000 16:20:01: temperature is 36°C, August 1, 2000 16:20:02: temperature is 35°C, August 1, 2000 16:20:03: temperature is 35°C. It can be understood that multiple identical temperature values ​​are 35°C, so according to the maximum time value, the meteorological time period is generated. The value is 16:20:00 on August 1, 2000, and the minimum time value is 16:19:59 on August 1, 2000, and the meteorological time period is generated: (16:19:59 on August 1, 2000 to 16:20:00 on August 1, 2000); therefore, according to the maximum time value 16:20:03 on August 1, 2000 and the minimum time value 16:20:02 on August 1, 2000, the meteorological time period is generated: (16:20:02 on August 1, 2000 to 16:20:03 on August 1, 2000), and multiple identical second meteorological information values ​​corresponding to multiple time periods are merged into one second meteorological information value corresponding to one meteorological time period, thereby reducing the storage space occupied by the server while ensuring data accuracy.

[0092] In a possible implementation of the technical solution provided by the present invention, step S1302 specifically includes:

[0093] If it is determined that the second meteorological information value is different from the second meteorological information values ​​adjacent to the previous moment and the next moment, and the second meteorological information values ​​adjacent to the previous moment and the next moment are the same.

[0094] The technical solution provided by the present invention, if it is judged that the second meteorological information value is different from the meteorological sub-information adjacent to the previous moment and the next moment, and the meteorological sub-information of the previous moment and the next moment is the same, for example: August 1, 2000 16:19:59: temperature is 35°C, August 1, 2000 16:20:00: temperature is 35°C, August 1, 2000 16:20:01: temperature is 36°C, August 1, 2000 16:20:02: temperature is 35°C, August 1, 2000 16:20:03: temperature is 35°C, obtain the temperature values ​​corresponding to the previous and next moments, so as to facilitate the subsequent generation of the previous and next time periods and the comparison of the values ​​of the previous and next time periods, and obtain the temperature values ​​corresponding to the moments before and after 16:20:01 on August 1, 2000: temperature is 36°C, so as to facilitate the subsequent comparison.

[0095] The previous moment is taken as the first moment, and a first acquisition time period is generated according to the preset time length and the first moment; the next moment is taken as the second moment, and a second acquisition time period is generated according to the preset time length and the second moment.

[0096] The technical solution provided by the present invention takes the previous moment as the first moment, and generates a first acquisition time period according to the preset time length and the first moment. It can be understood that the first acquisition time period is located at the front end of the error meteorological value, and the next moment is the second moment, and generates a second acquisition time period according to the preset time length and the second moment. It can be understood that the second acquisition time period is located at the back end of the error meteorological value, for example: August 1, 2000 16:19:59: the temperature is 35°C, August 1, 2000 16:20:00: the temperature is 35°C, August 1, 2000 16:20:01: the temperature is 3 6℃, August 1, 2000 16:20:02: temperature is 35℃, August 1, 2000 16:20:03: temperature is 35℃, wherein the preset time length can be manually set, for example: it can be 1 second or 10 seconds, which is not limited here, then the first acquisition time period is August 1, 2000 16:19:59 ~ August 1, 2000 16:20:00, the second acquisition time period is August 1, 2000 16:20:02 ~ August 1, 2000 16:20:03, which is convenient for subsequent comparison and modification of abnormal data to eliminate abnormalities.

[0097] If it is determined that the second meteorological information values ​​corresponding to all moments in the first acquisition time period and the second acquisition time period are the same, the corresponding second meteorological information value is corrected to a second meteorological information value having the same value as the previous moment and the next moment.

[0098] The technical solution provided by the present invention, if it is determined that the meteorological information values ​​corresponding to all moments in the first acquisition time period and the second acquisition time period are the same, then the second meteorological information value that is different from the values ​​of the previous and next acquisition time periods is corrected to a second meteorological information value with the same value as the previous and next moments. It can be understood that on August 1, 2000, 16:19:59: the temperature is 35°C, on August 1, 2000, 16:20:00: the temperature is 35°C, on August 1, 2000, 16:20:01: the temperature is 36°C, on August 1, 2000, 16:20:02: the temperature is 35°C, on August 1, 2000, 16:20:03: the temperature is 35°C. The meteorological temperature values ​​at all moments before and after are 35°C, and only one moment in the middle is displayed as 36°C. Data error occurs at this moment, which may be a numerical deviation caused by a temporary equipment failure, or an error after processing by a preset strategy. The error can be eliminated by comparing the numerical values.

[0099] Step S140: Count meteorological time periods with the same first meteorological information value to generate a first time period set, store the first meteorological information value and the first time period set in correspondence, and adjust the collection interval of the collection end according to the first meteorological information value.

[0100] According to the technical solution provided by the present invention, the system will count the meteorological time periods with the same first meteorological information value to generate a first time period set. For example, the meteorological time period is: the time period corresponding to the temperature of 35°C is 16:19:59 on August 1, 2000 to 16:20:00 on August 1, 2000 and 16:20:02 on August 1, 2000 to 16:20:03 on August 1, 2000, and the corresponding first time period set is (16:19:59 on August 1, 2000 to 16:20:00 on August 1, 2000, 16:20:02 on August 1, 2000 to 16:20:03 on August 1, 2000). It can be understood that the meteorological value is corresponding to Compared with the traditional method of storing each meteorological data at a corresponding moment, storing a time period set reduces the storage volume. The first meteorological information value is stored corresponding to the first time period set, and the collection interval of the collection end is adjusted according to the first meteorological information value. It can be understood that if the first meteorological information value is an abnormal value, the collection frequency of the collection end will be increased accordingly, and the smaller the deviation from the normal range, the higher the corresponding collection frequency but the smaller the amplitude, and the larger the deviation from the normal range, the higher the corresponding collection frequency but the larger the amplitude. By collecting data according to actual weather conditions at the collection end, the data accuracy is ensured while the data collection volume is reduced, and the use time of the collection end is correspondingly reduced, thereby extending the service life of the collection end.

[0101] The technical solution provided by the present invention, in a possible implementation manner, the counting of meteorological time periods having the same first meteorological information value to generate a first time period set, and the corresponding storage of the first meteorological information value and the first time period set, includes:

[0102] A corresponding first storage structure tree is constructed according to each first meteorological information value and the location information corresponding to the first time period set, and the first corresponding time corresponding to the first storage structure tree is counted.

[0103] According to the technical solution provided by the present invention, the system will construct a corresponding first storage structure tree according to the location information corresponding to each first meteorological information value and the first time period set. It can be understood that the system will establish a corresponding first storage structure tree according to the collection end of each location information, each collection end corresponds to a storage structure tree, and the first corresponding time corresponding to the first storage structure tree is counted. It can be understood that the first corresponding time that the system wants to compare can be counted, wherein the first corresponding time can be July to September or January to December, and is not limited here, so as to facilitate the subsequent comparison of the structure tree with the same period in previous years at the same time, and to facilitate the subsequent comparative analysis to obtain the corresponding analysis results.

[0104] In a possible implementation of the technical solution provided by the present invention, the step of constructing a corresponding first storage structure tree according to each first meteorological information value and the location information corresponding to the first time period set, and counting the first corresponding time corresponding to the first storage structure tree includes:

[0105] A first parent node of a first storage structure tree is constructed according to the location information, and a first child node of the first storage structure tree is constructed according to the information type of the meteorological information, and each first child node is connected to the first parent node respectively.

[0106] According to the technical solution provided by the present invention, the system constructs the first parent node of the corresponding first storage structure tree according to the location information of the collection end, and constructs the first child node of the first storage structure tree according to the information type of the meteorological information. It can be understood that the first child node of the first storage structure tree is constructed according to the temperature type, humidity type and wind speed type, and each first child node is respectively connected to the first parent node. It can be understood that the parent node corresponds to the location information of each collection end, wherein the location information can be the longitude and latitude information of the collection end, and the corresponding parent node is constructed according to the longitude and latitude information. The first child node of the temperature, the first child node of the humidity, and the first child node of the wind speed are respectively constructed according to the information type of the meteorological information, and the three child nodes are respectively connected to the parent node.

[0107] According to the number of second meteorological information values ​​corresponding to the meteorological sub-information, a corresponding number of second sub-nodes are constructed, a corresponding second meteorological information value is configured for each second sub-node, and each second sub-node is connected to the first sub-node.

[0108] According to the technical solution provided by the present invention, the system will construct a corresponding number of second sub-nodes according to the number of second meteorological information values ​​corresponding to the meteorological sub-information (temperature, humidity and wind speed). It can be understood that the system will generate a corresponding number of second sub-nodes according to the number of collected temperature, humidity and wind speed values. For example, if the temperature is 35°C and 36°C, two second sub-nodes will be generated, namely, the second sub-node of 35°C and the second sub-node of 36°C. Each second sub-node is connected to the first sub-node. It can be understood that the second sub-node of 35°C and the second sub-node of 36°C are connected to the first sub-node corresponding to the temperature.

[0109] According to the number of meteorological time periods in the first time period set corresponding to each second meteorological information value, a corresponding number of third sub-nodes are constructed, a corresponding meteorological time period is configured for each third sub-node, and each third sub-node is connected to the second sub-node.

[0110] According to the technical solution provided by the present invention, the system will construct a third child node of corresponding data according to the number of meteorological time periods in the first time period set corresponding to each second meteorological information value. It can be understood that the system will generate a corresponding number of third child nodes according to the number of time periods in the time period set corresponding to the collected temperature, humidity and wind speed values. For example, the time period set corresponding to 35°C is (August 1, 2000 16:19:59 to August 1, 2000 16:20:00, August 1, 2000 16:20:02 to August 1, 2000 16:20:00). 6:20:03) has two time periods, then the corresponding 35°C has two third child nodes, namely the third child node corresponding to August 1, 2000 16:19:59 to August 1, 2000 16:20:00 and the third child node corresponding to August 1, 2000 16:20:02 to August 1, 2000 16:20:03. Each third child node is connected to the second child node, and a storage structure tree is generated accordingly for storing data, which is convenient for subsequent comparison through the storage structure tree, convenient for comparison and data retrieval, and saves time.

[0111] A second storage structure tree having a second corresponding time and the same position information as the first corresponding time in the same period of the previous year is retrieved.

[0112] According to the technical solution provided by the present invention, the system will retrieve a second structure tree corresponding to the second corresponding time of the same period in previous years and having the same position information as the first depositor structure tree. It can be understood that the system will automatically retrieve the storage structure tree of previous years with the same position and the same time period as the first corresponding time period, that is, the second structure tree, to facilitate subsequent comparison between the two to obtain corresponding analysis results.

[0113] An analysis is performed according to the first storage structure tree, the second storage structure tree and the expected analysis target to obtain corresponding analysis results.

[0114] The technical solution provided by the present invention obtains the best according to the expected analysis target, and compares the first storage structure tree and the second storage structure tree, wherein the expected analysis target is the object to be analyzed and compared, for example, it can be: crop yield, project progress, etc., which is not limited here. Crops can be Chinese cabbage, peppers, etc., which are not limited here. It can be understood that according to different types of crops and different properties of projects, the structure storage tree can be compared with crops of the same variety or projects of the same properties in previous years to obtain corresponding crop yields or project progress, etc., and storage in the form of a structure tree facilitates data retrieval and comparison, and corresponding analysis results can be obtained relatively quickly, saving time.

[0115] In a possible implementation of the technical solution provided by the present invention, the analysis is performed according to the first storage structure tree, the second storage structure tree and the expected analysis target to obtain the corresponding analysis result, including:

[0116] An optimal meteorological range interval corresponding to an expected analysis target is determined, each expected analysis target has an optimal meteorological range interval pre-set corresponding thereto, and the optimal meteorological range interval includes an optimal temperature range and an optimal humidity range.

[0117] According to the technical solution provided by the present invention, the system can determine the optimal meteorological range interval corresponding to the expected analysis target. For example, if the expected analysis target is Chinese cabbage, the optimal growth temperature range of Chinese cabbage is determined to be 18°C ​​to 20°C, and the optimal growth humidity range of Chinese cabbage is determined to be 60% to 65%. The optimal temperature range and the optimal humidity range are obtained, which is convenient for subsequent comparison with Chinese cabbage in the same period of previous years, so as to obtain corresponding yield data.

[0118] The second meteorological information value of each temperature in the first storage structure tree is obtained to obtain the temperature meteorological value and the corresponding first time period set, and the second meteorological information value of each humidity in the first storage structure tree is obtained to obtain the humidity meteorological value and the corresponding first time period set.

[0119] According to the technical solution provided by the present invention, the system will obtain the second meteorological information value of each temperature in the first storage structure tree to obtain the temperature meteorological value and the corresponding first time period set, and obtain the second meteorological information value of each humidity in the first storage structure tree to obtain the humidity meteorological value and the corresponding first time period set, so as to facilitate the subsequent viewing of the time period corresponding to the optimal temperature or humidity range according to the optimal temperature and humidity range, and facilitate the subsequent production estimation.

[0120] The second meteorological information value of each temperature in the second storage structure tree is obtained to obtain the temperature meteorological value and the corresponding second time period set, and the second meteorological information value of each humidity in the second storage structure tree is obtained to obtain the humidity meteorological value and the corresponding second time period set.

[0121] According to the technical solution provided by the present invention, the system will obtain the second meteorological information value of each temperature in the second storage structure tree to obtain the temperature meteorological value and the corresponding second time period set, and will obtain the second meteorological information value of each humidity in the second storage structure tree to obtain the humidity meteorological value and the corresponding second time period set, wherein the second time period set and the first time period set are both selected within the same time period, for example: both are selected within May. It can be understood that the meteorological values ​​and time periods corresponding to the first storage structure tree and the second storage structure tree are respectively obtained to facilitate subsequent comparative analysis of the corresponding output.

[0122] The first temperature ratio of the first time period set in the optimal temperature range and the first humidity ratio of the first time period set in the optimal humidity range in the first storage structure tree are determined.

[0123] According to the technical solution provided by the present invention, the system determines the first temperature proportion of the first time period set in the optimal temperature range in the first storage structure tree, and the first humidity proportion of the first time period set in the optimal humidity range. It can be understood that the system can extract the time period set corresponding to the Chinese cabbage in the optimal temperature range of 18°C ​​to 20°C in the first storage structure, and obtain the first temperature proportion according to the ratio of the time period set to the preset time period. The time period set corresponding to the Chinese cabbage in the optimal humidity range of 60% to 65% in the first storage structure can be extracted, and the ratio of the time period set to the preset time period is compared to obtain the first humidity proportion; wherein the preset time period can be determined according to the optimal growth cycle of the Chinese cabbage, and the optimal growth cycle can be 30 days, or it can be manually preset, so as to facilitate the subsequent comparison of the first temperature proportion and the first humidity proportion with the temperature and humidity proportion of the second storage structure tree to obtain the corresponding analysis results.

[0124] The second temperature ratio of the second time period set in the optimal temperature range and the second humidity ratio of the second time period set in the optimal humidity range in the second storage structure tree are determined.

[0125] According to the technical solution provided by the present invention, the system determines the second temperature proportion of the second time period set in the optimal temperature range in the second storage structure tree, and the second humidity proportion of the second time period set in the optimal humidity range. It can be understood that the system can extract the time periods of the Chinese cabbage in the same period of previous years. If the first storage structure tree is May, then the second storage structure tree can be May of last year. The corresponding time period set in the second storage structure is in the optimal temperature range of 18°C ​​to 20°C. According to the ratio of the time period set to the preset time period, the second temperature proportion is obtained. The corresponding time period set in the second storage structure of the Chinese cabbage in the optimal humidity range of 60% to 65% can be extracted, and the ratio of the time period set to the preset time period is compared to obtain the second humidity proportion. The preset time period can be determined according to the optimal growth cycle of the Chinese cabbage. The optimal growth cycle can be 30 days, or it can be manually preset, so as to facilitate the subsequent comparison of the first temperature proportion and the first humidity proportion with the temperature and humidity proportion of the second storage structure tree to obtain the corresponding analysis results.

[0126] The predicted production of the first storage structure tree is obtained by calculating according to the first temperature proportion, the first humidity proportion, the second temperature proportion, the second humidity proportion and the historical production corresponding to the second storage structure tree.

[0127] In the technical solution provided by the present invention, the system will calculate according to the first temperature ratio, the first humidity ratio, the second temperature ratio, the second humidity ratio and the historical output corresponding to the second storage structure tree, and obtain the predicted output of the first storage structure tree. It can be understood that the system will compare the corresponding temperature and humidity ratios of this year with the temperature and humidity ratios of previous years, and combine the output of previous years to obtain the estimated output value of this year, and utilize the comparative characteristics of the storage structure tree to facilitate data comparison.

[0128] In a possible implementation of the technical solution provided by the present invention, the calculation is performed according to the first temperature proportion, the first humidity proportion, the second temperature proportion, the second humidity proportion and the historical production corresponding to the second storage structure tree to obtain the predicted production of the first storage structure tree, including:

[0129] The first temperature proportion is compared with the second temperature proportion to obtain a temperature influence trend value, and the first humidity proportion is compared with the second humidity proportion to obtain a humidity influence trend value.

[0130] The technical solution provided by the present invention compares the first temperature ratio with the second temperature ratio to obtain the temperature influence trend value, and compares the first humidity ratio with the second humidity ratio to obtain the humidity influence trend value. It can be understood that the temperature ratio of this year can be compared with that of the same period last year to obtain whether the time period at the most suitable temperature is less or more than last year. Similarly, the humidity ratio of this year can be compared with that of the same period last year to obtain whether the time period at the most suitable humidity is less or more than last year, which is convenient for the subsequent offset processing of the total output of the same period last year to obtain the expected output this year.

[0131] The predicted production of the first storage structure tree is obtained by performing calculations based on the temperature impact trend value, the humidity impact trend value and the historical production.

[0132] The technical solution provided by the present invention performs offset processing on historical production according to the temperature influence trend value and the humidity influence trend value, and can obtain the predicted production corresponding to the first storage structure tree. The storage in the form of a structure tree facilitates the retrieval and comparison of the stored data, and relatively reduces the calculation time.

[0133] The predicted output is obtained by the following formula:

[0134]

[0135] Among them, y1 is the predicted output, y2 is the historical output, w1 is the proportion of the first temperature, w2 is the proportion of the second temperature, g w Normalized value of temperature ratio, l1 is the first humidity ratio, l2 is the second humidity ratio, g l is the normalized value of humidity ratio, m1 is the total time in the optimal temperature range in the first storage structure tree, m3 is the preset time in the optimal temperature range, m2 is the total time in the optimal temperature range in the second storage structure tree, r1 is the total time in the optimal humidity range in the first storage structure tree, r3 is the preset time in the optimal humidity range, r2 is the total time in the optimal humidity range in the second storage structure tree. It can be understood that the predicted yield Proportional to predicted output Proportional to the normalized value of temperature g w and humidity percentage normalized value g l The temperature and humidity are normalized to a value less than 1, wherein the preset time r3 in the optimal humidity range can be pre-set according to the growth cycle corresponding to the crop type, and the preset time m3 in the optimal temperature range can be pre-set according to the growth cycle corresponding to the crop type.

[0136] The technical solution provided by the present invention facilitates data comparison by performing comparison in the form of a tree of storage structures, can obtain comparison results more quickly, and relatively saves the time for storing and retrieving data. There is no need to traverse the entire database, and only the corresponding storage structure tree needs to be retrieved for comparison.

[0137] In a possible implementation of the technical solution provided by the present invention, the adjusting the collection interval of the collection terminal according to the first meteorological information value includes:

[0138] If the second meteorological information value is greater than the maximum value of the preset range, a first difference is obtained according to the difference between the second meteorological information value and the maximum value of the preset range.

[0139] The technical solution provided by the present invention is that if the second meteorological information value is greater than the maximum value of a preset range, for example: the current temperature is 22°C and the optimal temperature range is 18°C ​​to 20°C, then the corresponding first difference is obtained based on the difference between 22°C and 20°C, which facilitates the subsequent adjustment of the collection frequency based on the first difference.

[0140] If the second meteorological information value is smaller than the minimum value of the preset range, a second difference value is obtained according to the difference between the minimum value of the preset range and the second meteorological information value.

[0141] The technical solution provided by the present invention is that if the second meteorological information value is less than the minimum value of the preset range, for example: the current temperature is 16°C and the optimal temperature range is 18°C ​​to 20°C, then the corresponding second difference is obtained based on the difference between 18°C ​​and 16°C, which is convenient for subsequent adjustment of the collection frequency based on the second difference.

[0142] The preset collection interval of the collection end is adjusted according to the first difference or the second difference to obtain a first collection interval.

[0143] The technical solution provided by the present invention adjusts the preset collection interval of the collection end according to the first difference or the second difference to obtain the first collection interval. It can be understood that when the temperature is not in the optimal suitable range, the collection frequency of the collection end will be adjusted. The more stable the climate, the lower the collection frequency, and the worse the climate, the higher the collection frequency. Under the premise of ensuring data accuracy, the corresponding collection data of the collection end can be relatively reduced, the burden on the server can be reduced, and the working time of the collection end can be relatively reduced, thereby extending the service life of the collection end.

[0144] The first acquisition interval is obtained by the following formula:

[0145]

[0146] Among them, A1 is the second meteorological information value, a minis the minimum value of the preset range, I2 is the first acquisition interval, ε l is the influencing factor of the first collection interval, β1 is the first constant value, I1 is the preset collection interval, a max is the maximum value of the preset range, β2 is the second constant value, (a min -A1) is the second difference, (A1-a max ) is the first difference. It can be understood that the first acquisition interval I2 and the second difference (a min -A1), the first acquisition interval I2 is proportional to the first difference (A1-a max ), and the larger the deviation, the shorter the corresponding collection time interval, wherein the first constant value β1 and the second constant value β2 can be preset artificially.

[0147] According to the technical solution provided by the present invention, the collection end can adjust the collection frequency according to different meteorological values, and the larger the deviation of the meteorological data value, the higher the corresponding collection frequency and the gradually increasing frequency. It can be understood that when the temperature, humidity and wind speed deviate from the optimal value, the collection frequency will be increased accordingly. The larger the deviation, the higher the corresponding collection frequency. Data can be collected according to actual weather conditions.

[0148] The technical solution provided by the present invention, in a possible implementation manner, further includes:

[0149] The user behavior is monitored to obtain user behavior data, a second collection interval and an adjustment number actively input by the user are obtained according to the user behavior data, and the first collection interval is modified to the second collection interval.

[0150] According to the technical solution provided by the present invention, the system monitors the user's behavior and obtains corresponding user behavior data. The second collection interval and the adjustment number input by the user can be obtained according to the user behavior data, and the first collection interval can be modified to the second collection interval. It can be understood that the user will adjust the current collection interval time according to the actual situation to make it more suitable for the actual situation.

[0151] If the second collection interval is greater than the first collection interval, a first interval difference is generated according to a difference between the second collection interval and the first collection interval.

[0152] According to the technical solution provided by the present invention, if the second collection interval is greater than the first collection interval, a first interval difference is generated according to the difference between the second collection interval and the first collection interval, so as to facilitate the subsequent correction of the influencing factor of the first collection interval.

[0153] The influence factor of the first collection interval is corrected according to the first interval difference and the number of adjustments to obtain a corrected influence factor of the first collection interval.

[0154] The technical solution provided by the present invention will correct the influencing factor of the first acquisition interval based on the first interval difference and the number of adjustments. It is understandable that the user wants to make adjustments based on the actual situation, and the input value sometimes cannot be entered correctly at one time and needs multiple adjustments. The more adjustments are made, the closer it is to the value that meets the actual situation. Therefore, the influencing factor of the first acquisition interval will be corrected based on the size of the first interval difference and the number of adjustments.

[0155] If the second collection interval is smaller than the first collection interval, a second interval difference is generated according to a difference between the first collection interval and the second collection interval.

[0156] The technical solution provided by the present invention generates a second interval difference according to the difference between the first collection interval and the second collection interval if the second collection interval is smaller than the first collection interval, so as to facilitate the subsequent correction of the influencing factor of the first collection interval.

[0157] The influence factor of the first collection interval is corrected according to the second interval difference and the number of adjustments to obtain a corrected influence factor of the first collection interval.

[0158] The technical solution provided by the present invention will correct the influence factor of the first acquisition interval according to the second interval difference and the number of adjustments. It can be understood that the user wants to make adjustments based on the actual situation, and the input value sometimes cannot be entered correctly at one time and needs to be adjusted multiple times. The more adjustments are made, the closer it is to the value that meets the actual situation. Therefore, the influence factor of the first acquisition interval will be corrected according to the size of the second interval difference and the number of adjustments. The larger the second interval difference, the greater the corresponding correction amplitude of the influence factor of the first acquisition interval, and the more adjustments are made, the smaller the corresponding correction amplitude will be.

[0159] The influence factor of the corrected first acquisition interval is obtained by the following formula:

[0160]

[0161] Where I3 is the second acquisition interval, ε2 is the impact factor of the corrected first acquisition interval, τ1 is the positive correction value, is the upper limit of the adjustment times, τ2 is the negative correction value, I3-I2 is the first interval difference, I2-I3 is the second interval difference, is the total number of adjustments.

[0162] The technical solution provided by the present invention has an autonomous learning and updating function that can actively record and learn the user's behavior, and actively update the influencing factor of the first collection interval, so that the collection interval output under the same meteorological conditions next time is more in line with the actual situation.

[0163] In order to better implement the meteorological data storage method provided by the present invention, the present invention also provides a meteorological data storage system, such as Figure 3 As shown, including:

[0164] a determination module, configured to determine a plurality of meteorological data having the same location information, and determine the information type of meteorological information in the meteorological data, wherein the meteorological information includes meteorological sub-information of a plurality of information types, and the meteorological sub-information is any one or more of a temperature type, a humidity type, and a wind speed type;

[0165] A sorting module is used to sort all meteorological data according to the time information to obtain a total time sequence, and extract each meteorological sub-information in the total time sequence in turn to obtain a plurality of meteorological sub-sequences of different information types;

[0166] An extraction module is used to obtain first meteorological information values ​​of adjacent meteorological sub-information in a meteorological sub-sequence, and if it is determined that the first meteorological information values ​​of a plurality of adjacent meteorological sub-information are the same, extract the time information corresponding to the plurality of first meteorological information respectively to generate a meteorological time period;

[0167] The storage adjustment module is used to count meteorological time periods with the same first meteorological information value to generate a first time period set, store the first meteorological information value and the first time period set in correspondence, and adjust the collection interval of the collection end according to the first meteorological information value.

[0168] like Figure 4 FIG. 1 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention. The electronic device 50 includes: a processor 51, a memory 52 and a computer program; wherein

[0169] The memory 52 is used to store the computer program, and the memory may also be a flash memory. The computer program is, for example, an application program, a functional module, etc. for implementing the above method.

[0170] The processor 51 is used to execute the computer program stored in the memory to implement each step performed by the device in the above method. For details, please refer to the relevant description in the above method embodiment.

[0171] Optionally, the memory 52 may be independent or integrated with the processor 51 .

[0172] When the memory 52 is a device independent of the processor 51, the device may further include:

[0173] The bus 53 is used to connect the memory 52 and the processor 51 .

[0174] The present invention also provides a readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, it is used to implement the methods provided by the various embodiments described above.

[0175] Among them, the readable storage medium can be a computer storage medium or a communication medium. The communication medium includes any medium that facilitates the transmission of a computer program from one place to another. The computer storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer. For example, a readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application-specific integrated circuit (Application Specific Integrated Circuits, abbreviated as: ASIC). In addition, the ASIC can be located in a user device. Of course, the processor and the readable storage medium can also exist in a communication device as discrete components. The readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.

[0176] The present invention also provides a program product, which includes an execution instruction, which is stored in a readable storage medium. At least one processor of a device can read the execution instruction from the readable storage medium, and at least one processor executes the execution instruction so that the device implements the methods provided in the above various embodiments.

[0177] In the embodiments of the above-mentioned devices, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the present invention may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.

[0178] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention 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 replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for storing meteorological data, It is characterized in that Multiple collection terminals collect meteorological data and send them to the server. The meteorological data includes meteorological information, time information and location information. The server classifies and stores the meteorological data through the following steps, specifically including: Determine a plurality of meteorological data having the same location information, and determine the information type of meteorological information in the meteorological data, wherein the meteorological information includes meteorological sub-information of a plurality of information types, and the meteorological sub-information is any one or more of a temperature type, a humidity type, and a wind speed type; Sorting all meteorological data according to the time information to obtain a total time sequence, extracting each meteorological sub-information in the total time sequence in turn to obtain a plurality of meteorological sub-sequences of different information types; Obtaining first meteorological information values ​​of adjacent meteorological sub-information in the meteorological sub-sequence, and if it is determined that the first meteorological information values ​​of a plurality of adjacent meteorological sub-information are the same, extracting time information corresponding to the plurality of first meteorological information respectively to generate a meteorological time period; Counting meteorological time periods having the same first meteorological information value to generate a first time period set, storing the first meteorological information value and the first time period set in correspondence, and adjusting the collection interval of the collection end according to the first meteorological information value; The step of obtaining first meteorological information values ​​of adjacent meteorological sub-information in the meteorological sub-sequence, and if it is determined that the first meteorological information values ​​of a plurality of adjacent meteorological sub-information are the same, extracting time information respectively corresponding to the plurality of first meteorological information to generate a meteorological time period, comprises: Acquire first meteorological information values ​​of adjacent meteorological sub-information in the meteorological sub-sequence, and determine a numerical dimension of the first meteorological information value; If the numerical dimension reaches the preset dimension, the first meteorological information value is used as the second meteorological information value; if the numerical dimension does not reach the preset dimension, the numerical dimension of the first meteorological information value is processed according to a preset strategy to obtain the second meteorological information value; If it is determined that the second meteorological information values ​​of the adjacent plurality of meteorological sub-information are the same, extracting the maximum time value and the minimum time value among the plurality of second meteorological information values, and generating a meteorological time period according to the maximum time value and the minimum time value; The adjusting the collection interval of the collection end according to the first meteorological information value includes: If the second meteorological information value is greater than the maximum value of the preset range, obtaining a first difference value according to the difference between the second meteorological information value and the maximum value within the preset range; If the second meteorological information value is less than the minimum value of the preset range, obtaining a second difference value according to the difference between the minimum value in the preset range and the second meteorological information value; Adjusting the preset collection interval of the collection end according to the first difference or the second difference to obtain a first collection interval; The first acquisition interval is obtained by the following formula: Among them, A 1 is the second meteorological information value, a min is the minimum value of the preset range, I 2 is the first acquisition interval, ε 1 is the impact factor of the first acquisition interval, β 1 is the first constant value, I 1 is the preset collection interval, a max is the maximum value of the preset range, β 2 is the second constant value; Monitor user behavior to obtain user behavior data, obtain a second collection interval and an adjustment number actively input by the user according to the user behavior data, and modify the first collection interval to the second collection interval; If the second collection interval is greater than the first collection interval, generating a first interval difference according to a difference between the second collection interval and the first collection interval; Correcting the influence factor of the first collection interval according to the first interval difference and the number of adjustments to obtain a corrected influence factor of the first collection interval; If the second collection interval is smaller than the first collection interval, generating a second interval difference according to the difference between the first collection interval and the second collection interval; Correcting the influence factor of the first collection interval according to the second interval difference and the number of adjustments to obtain a corrected influence factor of the first collection interval; The influence factor of the corrected first acquisition interval is obtained by the following formula: Among them, I 3 is the second acquisition interval, ε 2 is the influence factor of the first acquisition interval after correction, τ 1 is the positive correction value, is the upper limit of the number of adjustments, τ 2 Negative correction value.

2. The method according to claim 1, It is characterized in that If the numerical dimension reaches the preset dimension, the first meteorological information value is used as the second meteorological information value; if the numerical dimension does not reach the preset dimension, the numerical dimension of the first meteorological information value is processed according to a preset strategy to obtain the second meteorological information value, including: If it is determined that the second meteorological information value is different from the second meteorological information values ​​adjacent to the previous moment and the next moment, and the second meteorological information values ​​adjacent to the previous moment and the next moment are the same; The previous moment is taken as the first moment, and a first acquisition time period is generated according to the preset time length and the first moment; the next moment is taken as the second moment, and a second acquisition time period is generated according to the preset time length and the second moment; If it is determined that the second meteorological information values ​​corresponding to all moments in the first acquisition time period and the second acquisition time period are the same, the corresponding second meteorological information value is corrected to a second meteorological information value having the same value as the previous moment and the next moment.

3. The method according to claim 2, It is characterized in that The counting of meteorological time periods having the same first meteorological information value to generate a first time period set, and storing the first meteorological information value and the first time period set in correspondence, includes: Constructing a corresponding first storage structure tree according to each first meteorological information value and the location information corresponding to the first time period set, and counting the first corresponding time corresponding to the first storage structure tree; Retrieve a second storage structure tree having a second corresponding time and the same location information as the first corresponding time in the same period of the previous year; Analysis is performed according to the first storage structure tree, the second storage structure tree and the expected analysis target to obtain corresponding analysis results.

4. The method according to claim 3, It is characterized in that The step of constructing a corresponding first storage structure tree according to each first meteorological information value and the location information corresponding to the first time period set, and counting the first corresponding time corresponding to the first storage structure tree includes: Constructing a first parent node of a first storage structure tree according to the location information, constructing first child nodes of the first storage structure tree according to the information type of the meteorological information, and connecting each first child node to the first parent node respectively; According to the number of second meteorological information values ​​corresponding to the meteorological sub-information, construct a corresponding number of second sub-nodes, configure a corresponding second meteorological information value for each second sub-node, and connect each second sub-node to the first sub-node; According to the number of meteorological time periods in the first time period set corresponding to each second meteorological information value, a corresponding number of third sub-nodes are constructed, a corresponding meteorological time period is configured for each third sub-node, and each third sub-node is connected to the second sub-node.

5. The method according to claim 4, It is characterized in that The analysis is performed according to the first storage structure tree, the second storage structure tree and the expected analysis target to obtain corresponding analysis results, including: Determine an optimal meteorological range interval corresponding to an expected analysis target, each expected analysis target has an optimal meteorological range interval pre-set corresponding to it, and the optimal meteorological range interval includes an optimal temperature range and an optimal humidity range; Obtain the second meteorological information value of each temperature in the first storage structure tree to obtain the temperature meteorological value and the corresponding first time period set, obtain the second meteorological information value of each humidity in the first storage structure tree to obtain the humidity meteorological value and the corresponding first time period set; Obtain the second meteorological information value of each temperature in the second storage structure tree to obtain the temperature meteorological value and the corresponding second time period set, and obtain the second meteorological information value of each humidity in the second storage structure tree to obtain the humidity meteorological value and the corresponding second time period set; Determine the first temperature ratio of the first time period set in the optimal temperature range and the first humidity ratio of the first time period set in the optimal humidity range in the first storage structure tree; Determine the second temperature ratio of the second time period set in the optimal temperature range and the second humidity ratio of the second time period set in the optimal humidity range in the second storage structure tree; The predicted production of the first storage structure tree is obtained by calculating according to the first temperature proportion, the first humidity proportion, the second temperature proportion, the second humidity proportion and the historical production corresponding to the second storage structure tree.

6. The method according to claim 5, It is characterized in that The calculation is performed according to the first temperature proportion, the first humidity proportion, the second temperature proportion, the second humidity proportion and the historical production corresponding to the second storage structure tree to obtain the predicted production of the first storage structure tree, including: Compare the first temperature proportion with the second temperature proportion to obtain a temperature influence trend value, and compare the first humidity proportion with the second humidity proportion to obtain a humidity influence trend value; Calculate according to the temperature impact trend value, the humidity impact trend value and the historical output to obtain the predicted output of the first storage structure tree; The predicted output is obtained by the following formula: Among them, y 1 To predict the output, y 2 is the historical output, w 1 is the first temperature proportion, w 2 is the second temperature proportion, g w Normalized value of temperature ratio, l 1 is the first humidity ratio, l 2 is the second humidity percentage, g l is the normalized value of humidity ratio, m 1 is the total time in the optimal temperature range in the first storage structure tree, m 3 is the preset time in the optimal temperature range, m 2 is the total time in the optimal temperature range in the second storage structure tree, r 1 is the total time in the optimal humidity range in the first storage structure tree, r 3 is the preset time in the optimal humidity range, r 2 It is the total time in the optimal humidity range in the second storage structure tree.

7. A meteorological data storage system, It is characterized in that include: a determination module, configured to determine a plurality of meteorological data having the same location information, wherein the meteorological data includes meteorological information, time information, and location information, and to determine the information type of the meteorological information in the meteorological data, wherein the meteorological information includes meteorological sub-information of a plurality of information types, wherein the meteorological sub-information is any one or more of a temperature type, a humidity type, and a wind speed type; A sorting module is used to sort all meteorological data according to the time information to obtain a total time sequence, and extract each meteorological sub-information in the total time sequence in turn to obtain a plurality of meteorological sub-sequences of different information types; An extraction module is used to obtain first meteorological information values ​​of adjacent meteorological sub-information in a meteorological sub-sequence, and if it is determined that the first meteorological information values ​​of a plurality of adjacent meteorological sub-information are the same, extract the time information corresponding to the plurality of first meteorological information respectively to generate a meteorological time period; A storage adjustment module, configured to count meteorological time periods having the same first meteorological information value to generate a first time period set, store the first meteorological information value and the first time period set in correspondence, and adjust the collection interval of the collection end according to the first meteorological information value; The step of obtaining first meteorological information values ​​of adjacent meteorological sub-information in the meteorological sub-sequence, and if it is determined that the first meteorological information values ​​of a plurality of adjacent meteorological sub-information are the same, extracting time information respectively corresponding to the plurality of first meteorological information to generate a meteorological time period, comprises: Acquire first meteorological information values ​​of adjacent meteorological sub-information in the meteorological sub-sequence, and determine a numerical dimension of the first meteorological information value; If the numerical dimension reaches the preset dimension, the first meteorological information value is used as the second meteorological information value; if the numerical dimension does not reach the preset dimension, the numerical dimension of the first meteorological information value is processed according to a preset strategy to obtain the second meteorological information value; If it is determined that the second meteorological information values ​​of the adjacent plurality of meteorological sub-information are the same, extracting the maximum time value and the minimum time value among the plurality of second meteorological information values, and generating a meteorological time period according to the maximum time value and the minimum time value; The adjusting the collection interval of the collection end according to the first meteorological information value includes: If the second meteorological information value is greater than the maximum value of the preset range, obtaining a first difference value according to the difference between the second meteorological information value and the maximum value within the preset range; If the second meteorological information value is less than the minimum value of the preset range, obtaining a second difference value according to the difference between the minimum value in the preset range and the second meteorological information value; Adjusting the preset collection interval of the collection end according to the first difference or the second difference to obtain a first collection interval; The first acquisition interval is obtained by the following formula: Among them, A 1 is the second meteorological information value, a min is the minimum value of the preset range, I 2 is the first acquisition interval, ε 1 is the impact factor of the first acquisition interval, β 1 is the first constant value, I 1 is the preset collection interval, a max is the maximum value of the preset range, β 2 is the second constant value; Monitor user behavior to obtain user behavior data, obtain a second collection interval and an adjustment number actively input by the user according to the user behavior data, and modify the first collection interval to the second collection interval; If the second collection interval is greater than the first collection interval, generating a first interval difference according to a difference between the second collection interval and the first collection interval; Correcting the influence factor of the first collection interval according to the first interval difference and the number of adjustments to obtain a corrected influence factor of the first collection interval; If the second collection interval is smaller than the first collection interval, generating a second interval difference according to the difference between the first collection interval and the second collection interval; Correcting the influence factor of the first collection interval according to the second interval difference and the number of adjustments to obtain a corrected influence factor of the first collection interval; The influence factor of the corrected first acquisition interval is obtained by the following formula: Among them, I 3 is the second acquisition interval, ε 2 is the influence factor of the first acquisition interval after correction, τ 1 is the positive correction value, is the upper limit of the number of adjustments, τ 2 Negative correction value.