CN115809242A - Meteorological data storage method and system - Google Patents

Meteorological data storage method and system Download PDF

Info

Publication number
CN115809242A
CN115809242A CN202211448362.8A CN202211448362A CN115809242A CN 115809242 A CN115809242 A CN 115809242A CN 202211448362 A CN202211448362 A CN 202211448362A CN 115809242 A CN115809242 A CN 115809242A
Authority
CN
China
Prior art keywords
information
meteorological
value
weather
interval
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211448362.8A
Other languages
Chinese (zh)
Inventor
翟伶俐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangsu Meteorological Information Center
Original Assignee
Jiangsu Meteorological Information Center
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangsu Meteorological Information Center filed Critical Jiangsu Meteorological Information Center
Priority to CN202211448362.8A priority Critical patent/CN115809242A/en
Publication of CN115809242A publication Critical patent/CN115809242A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A90/00Technologies having an indirect contribution to adaptation to climate change
    • Y02A90/10Information and communication technologies [ICT] supporting adaptation to climate change, e.g. for weather forecasting or climate simulation

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a meteorological data storage method and a system, which are used for determining meteorological data with the same position information and determining the information types of the meteorological information in the meteorological data, wherein the meteorological information comprises meteorological sub-information of a plurality of information types; sequencing all meteorological data according to the time information to obtain a time total sequence, and sequentially extracting each meteorological sub-information from the time total sequence to obtain a plurality of meteorological sub-sequences of different information types; if the first weather information values of the plurality of adjacent weather sub-information are judged to be the same, extracting the time information corresponding to the plurality of first weather information respectively to generate a weather time period; the method comprises the steps of counting weather time periods with the same first weather information values to generate a first time period set, correspondingly storing the first weather information values and the first time period set, and adjusting the acquisition frequency of an acquisition end according to the first weather information values corresponding to all the first time period sets, so that the data storage capacity is reduced.

Description

Meteorological data storage method and system
Technical Field
The invention relates to a data processing technology, in particular to a meteorological data storage method and a meteorological data storage system.
Background
The weather data is a group of data reflecting weather, and can be divided into weather data and weather data, wherein the weather data refers to various data formed by collecting various original data observed by a conventional weather instrument and professional weather equipment, processing, sorting and editing; weather data is weather data which is highly real-time weather data for weather analysis and forecast service, and the difference between the weather data and the weather data is as follows: the content of the weather data is much wider than that of the weather data; the weather data is data of a long time series, and the weather data is data of a short time series.
The meteorological data have the characteristics of multiple data types and large data quantity, the meteorological data are collected and stored in real time, so that the occupied storage space is too large, and in the process of extracting and analyzing the data, the storage spaces need to be traversed for comparison one by one, so that the data comparison speed is low.
Disclosure of Invention
The embodiment of the invention provides a meteorological data storage method and a meteorological data storage system, which are used for deleting repeated data, enabling meteorological values to correspond to a time period set, adjusting the acquisition time interval of an acquisition end through weather conditions, correspondingly reducing data quantity, and utilizing a storage structure tree mode to store data so as to facilitate subsequent data comparison, enable comparison results to be obtained quickly, and relatively save time.
In a first aspect of the embodiments of the present invention, a method for storing meteorological data is provided, in which a plurality of collection terminals collect meteorological data and send the meteorological data to a server, the meteorological data includes meteorological information, time information, and position information, and the server stores the meteorological data in a classified manner by the following steps, including:
determining a plurality of meteorological data with the same position information, and determining the information type of the meteorological information in the meteorological data, wherein the meteorological information comprises 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;
sequencing all meteorological data according to the time information to obtain a time total sequence, and sequentially extracting each meteorological sub-information from the time total sequence to obtain a plurality of meteorological sub-sequences of different information types;
acquiring first weather information values of adjacent weather sub-information in a weather sub-sequence, and if the first weather information values of a plurality of adjacent weather sub-information are judged to be the same, extracting time information corresponding to the plurality of first weather information respectively to generate a weather time period;
counting the meteorological time periods with the same first meteorological information value to generate a first time period set, correspondingly storing the first meteorological information value and the first time period set, and adjusting the acquisition interval of an acquisition end according to the first meteorological information value.
Optionally, in a possible implementation manner of the first aspect, the acquiring first weather information values of adjacent weather sub-information in the weather sub-sequence, and if it is determined that the first weather information values of the adjacent weather sub-information are the same, extracting time information corresponding to each of the plurality of first weather information to generate a weather time period includes:
acquiring a first meteorological information value of adjacent meteorological sub-information in a meteorological subsequence, and determining the numerical dimension of the first meteorological information value;
if the numerical dimension reaches a preset dimension, the first weather information value is used as a second weather information value, and if the numerical dimension does not reach the preset dimension, the numerical dimension of the first weather information value is processed according to a preset strategy to obtain a second weather information value;
and if the second weather information values of the plurality of adjacent weather sub-information are judged to be the same, extracting the maximum time value and the minimum time value in the plurality of second weather information values, and generating a weather time period according to the maximum time value and the minimum time value.
Optionally, in a possible implementation manner of the first aspect, if the numerical dimension reaches a preset dimension, using the first weather information value as a second weather information value, and if the numerical dimension does not reach the preset dimension, processing the numerical dimension of the first weather information value according to a preset policy to obtain the second weather information value includes:
if the second weather information value is judged to be different from the second weather information values adjacent to the previous moment and the next moment, and the second weather information values adjacent to the previous moment and the next moment are the same;
generating a first acquisition time period according to the preset time length and the first moment when the previous moment is the first moment, and generating a second acquisition time period according to the preset time length and the second moment when the next moment is the second moment;
and if the second weather information values corresponding to all the moments in the first acquisition time period and the second acquisition time period are judged to be the same, correcting the corresponding second weather information values into second weather information values with the same values as the previous moments and the next moments.
Optionally, in a possible implementation manner of the first aspect, the counting weather time periods having the same first weather information value to generate a first time period set, and storing the first weather information value in correspondence with the first time period set includes:
constructing a corresponding first storage structure tree according to each first weather information value and the position information corresponding to the first time period set, and counting first corresponding time corresponding to the first storage structure tree;
calling a second storage structure tree corresponding to the first corresponding time and having the same position information at a second corresponding time in the same year;
and analyzing according to the first storage structure tree, the second storage structure tree and the expected analysis target to obtain corresponding analysis results.
Optionally, in a possible implementation manner of the first aspect, the constructing a corresponding first storage structure tree according to each first weather information value and the location information corresponding to the first time period set, and counting a 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 position information, constructing first child nodes of the first storage structure tree according to the information type of the weather information, and connecting each first child node with the first parent node;
according to the number of second weather information values corresponding to the weather sub-information, constructing second sub-nodes with corresponding number, configuring corresponding second weather information values for each second sub-node, and connecting each second sub-node with the first sub-node;
and constructing a corresponding number of third child nodes according to the number of the weather time periods in the first time period set corresponding to each second weather information value, configuring a corresponding weather time period for each third child node, and connecting each third child node with the second child node.
Optionally, in a possible implementation manner of the first aspect, the analyzing according to the first storage structure tree, the second storage structure tree, and an expected analysis target to obtain a corresponding analysis result includes:
determining an optimal meteorological range interval corresponding to the expected analysis targets, wherein each expected analysis target is provided with an optimal meteorological range interval which is preset correspondingly, and the optimal meteorological range interval comprises an optimal temperature interval and an optimal humidity interval;
acquiring a temperature weather value and a corresponding first time period set of a second weather information value of each temperature in the first storage structure tree, and acquiring a second weather information value of each humidity in the first storage structure tree to obtain a humidity weather value and a corresponding first time period set;
acquiring a temperature weather value and a corresponding second time period set of a second weather information value of each temperature in the second storage structure tree, and acquiring a humidity weather value and a corresponding second time period set of the second weather information value of each humidity in the second storage structure tree;
determining a first temperature ratio of a first time period set in the first storage structure tree within the optimal temperature interval and a first humidity ratio of the first time period set in the optimal humidity interval;
determining a second temperature ratio of a second time period set in the optimal temperature interval and a second humidity ratio of a second time period set in the optimal humidity interval in a second storage structure tree;
and calculating according to the first temperature ratio, the first humidity ratio, the second temperature ratio, the second humidity ratio and the historical yield corresponding to the second storage structure tree to obtain the predicted yield of the first storage structure tree.
Optionally, in a possible implementation manner of the first aspect, the calculating according to the first temperature ratio, the first humidity ratio, the second temperature ratio, the second humidity ratio, and the historical yield corresponding to the second storage structure tree to obtain the predicted yield of the first storage structure tree includes:
comparing the first temperature ratio with the second temperature ratio to obtain a temperature influence trend value, and comparing the first humidity ratio with the second humidity ratio to obtain a humidity influence trend value;
calculating according to the temperature influence trend value, the humidity influence trend value and the historical yield to obtain the predicted yield of the first storage structure tree;
the predicted yield is obtained by the following formula,
Figure BDA0003950338310000041
wherein, y 1 To predict yield, y 2 For historical yield, w 1 Is a first temperature ratio, w 2 Is the second temperature ratio, g w Temperature ratio normalized value,/ 1 Is the first humidity ratio, l 2 Is the second humidity ratio, g l Is normalized value of humidity ratio, m 1 For the total duration, m, in the first storage structure tree within the optimum temperature interval 3 For a predetermined time period within the optimum temperature range, m 2 For the total duration in the second storage structure tree within the optimum temperature interval, r 1 Is the total time length in the first storage structure tree within the optimum humidity interval, r 3 For a predetermined duration in the optimum humidity range, r 2 The total time length in the second storage structure tree within the optimal humidity interval.
Optionally, in a possible implementation manner of the first aspect, the adjusting the acquisition interval of the acquisition end according to the first meteorological information value includes:
if the second meteorological information value is larger than the maximum value of the preset range, obtaining a first difference value according to the difference value between the second meteorological information value and the maximum value in the preset range;
if the second meteorological information value is smaller than the minimum value of the preset range, obtaining a second difference value according to the difference value between the minimum value in the preset range and the second meteorological information value;
adjusting the preset acquisition interval of the acquisition end according to the first difference or the second difference to obtain a first acquisition interval;
the first acquisition interval is obtained by the following formula,
Figure BDA0003950338310000051
wherein A is 1 Is a second weather information value, a min Is the minimum value of a predetermined range, I 2 For the first acquisition interval, epsilon 1 An influence factor, β, of the first acquisition interval 1 Is a first constant value, I 1 For a predetermined acquisition interval, a max At the maximum of a predetermined range, β 2 Is a second constant value.
Optionally, in a possible implementation manner of the first aspect, the method further includes:
monitoring user behaviors to obtain user behavior data, obtaining a second acquisition interval and adjustment times actively input by a user according to the user behavior data, and modifying the first acquisition interval into the second acquisition interval;
if the second acquisition interval is larger than the first acquisition interval, generating a first interval difference value according to the difference value of the second acquisition interval and the first acquisition interval;
correcting the influence factor of the first acquisition interval according to the first interval difference value and the adjustment times to obtain the corrected influence factor of the first acquisition interval;
if the second acquisition interval is smaller than the first acquisition interval, generating a second interval difference value according to the difference value between the first acquisition interval and the second acquisition interval;
correcting the influence factor of the first acquisition interval according to the second interval difference and the adjustment times to obtain the corrected influence factor of the first acquisition interval;
the impact factor of the modified first acquisition interval is obtained by the following formula,
Figure BDA0003950338310000061
wherein, I 3 For the second acquisition interval, epsilon 2 For the influence factor of the corrected first acquisition interval, τ 1 In order to correct the value in the forward direction,
Figure BDA0003950338310000062
for the upper limit of the number of adjustments, τ 2 Is a negative correction value.
In a second aspect of the embodiments of the present invention, there is provided a meteorological data storage system, including:
the determining module is used for determining a plurality of meteorological data with the same position information and determining the information types of the meteorological information in the meteorological data, wherein the meteorological information comprises 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;
the sequencing module is used for sequencing all the meteorological data according to the time information to obtain a time total sequence, and extracting each meteorological sub-information in the time total sequence in sequence to obtain a plurality of meteorological sub-sequences of different information types;
the extraction module is used for acquiring first weather information values of adjacent weather sub-information in the weather sub-sequence, and extracting time information corresponding to the first weather information to generate a weather time period if the first weather information values of the adjacent weather sub-information are judged to be the same;
the storage adjusting module is used for counting meteorological time periods with the same first meteorological information values to generate a first time period set, correspondingly storing the first meteorological information values and the first time period set, and adjusting the acquisition interval of the acquisition end according to the first meteorological information values.
In a third aspect of the embodiments of the present invention, there is provided an electronic device, including: memory, a processor and a computer program, the computer program being stored in the memory, the processor running the computer program to perform the method of the first aspect of the invention and the various possible references to the first aspect.
A fourth aspect of the embodiments of the present invention provides a readable storage medium, in which a computer program is stored, the computer program being, when executed by a processor, configured to implement the method according to the first aspect of the present invention and various possible aspects of the first aspect.
According to the meteorological data storage method and system provided by the invention, through comparing the meteorological data acquired by the meteorological data acquisition end, the moments corresponding to adjacent and same meteorological data are combined to obtain the meteorological time period, all the time periods corresponding to the same meteorological data are combined to obtain the first time period set, so that the data volume of the meteorological data is greatly reduced, the storage burden of the system is reduced, the accuracy of the data cannot be influenced, the acquisition frequency of the acquisition end can be changed by the system according to the actual weather condition, and the burden and the aging degree of the acquisition end are relatively reduced on the premise of not influencing the acquisition of the meteorological data.
According to the technical scheme provided by the invention, when the acquisition end equipment is different and the corresponding acquisition numerical values have different accuracies, the dimensionality of the data with different numerical dimensionalities is unified according to a preset strategy, and the data is checked before and after, so that the error of data adjustment is eliminated, the subsequent data comparison is convenient, and the corresponding storage space is saved conveniently.
According to the technical scheme provided by the invention, the meteorological data are stored in the form of the storage structure tree, the subsequent analysis and comparison of the data are facilitated, the meteorological time periods corresponding to the optimal growth meteorological values in the current storage structure tree and the storage structure tree in the same period in the previous year are compared, the analyzed predicted value can be obtained quickly, the memory occupied by the system operation is reduced relatively, and compared with the traditional technology that the memory needs to be traversed and searched one by one, the comparison processing efficiency is improved relatively.
According to the technical scheme provided by the invention, the server can relatively control the acquisition frequency of the acquisition end according to different meteorological values acquired by the acquisition end, the more severe the weather is, the higher the corresponding acquisition frequency is, and the trend is increased, the more suitable the weather is, the corresponding acquisition frequency is relatively lower, the acquisition time interval is longer, the acquisition amount of data and the working time of the acquisition end can be reduced under the condition of not influencing the data accuracy, the service life of the acquisition end is relatively prolonged, the server has an autonomous learning function, and the user behavior is actively recorded to adjust the first acquisition interval, so that the subsequent acquisition interval automatically output by the system under the same meteorological value deviation meets the requirements, and the acquisition interval is more suitable for the actual situation.
Drawings
FIG. 1 is a flow chart of a meteorological data storage method provided by the present invention;
FIG. 2 is a flow chart of a weather information value processing method according to the present invention;
FIG. 3 is a schematic diagram of a meteorological data storage system according to the present invention;
fig. 4 is a schematic diagram of a hardware structure of an electronic device according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in other sequences than those illustrated or described herein.
It should be understood that, in various embodiments of the present invention, the sequence numbers of the processes do not mean the execution sequence, and the execution sequence of the processes should be determined by the functions and the internal logic of the processes, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
It should be understood that in the present application, "comprising" and "having" and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that, in the present invention, "a plurality" means two or more. "and/or" is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "comprises A, B and C" and "comprises A, B, C" means that all three of A, B, C comprise, "comprises A, B or C" means that one of three of A, B, C is comprised, "comprises A, B and/or C" means that any 1 or any 2 or 3 of the three of A, B, C is comprised.
It should be understood that in the present invention, "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 from a. Determining B from a does not mean determining B from a alone, but may be determined from a and/or other information. And the matching of A and B means that the similarity of A and B is greater than or equal to a preset threshold value.
As used herein, "if" can be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on context.
The technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
The invention provides a meteorological data storage method, wherein a plurality of acquisition ends acquire meteorological data and send the meteorological data to a server, the meteorological data comprises meteorological information, time information and position information, and the server stores the meteorological data in a classified manner through the following steps, as shown in figure 1, the method specifically comprises the following steps:
step S110, determining a plurality of meteorological data with the same position information, and determining the information type of the meteorological information in the meteorological data, wherein the meteorological information comprises meteorological sub-information of a plurality of information types, and the meteorological sub-information is any one or more of temperature type, humidity type and wind speed type.
According to the technical scheme provided by the invention, the system can determine a plurality of meteorological data at the same position, wherein the meteorological data comprise meteorological information, time information and position information, the information type of the meteorological information in the meteorological data is determined, the meteorological information comprises meteorological sub-information of a plurality of information types, the meteorological sub-information is any one or more of a temperature type, a humidity type and a wind speed type, it can be understood that the meteorological information comprises the temperature information, the humidity information and the wind speed information, and the meteorological sub-information is the corresponding information type in the meteorological information, so that the data deduplication is conveniently carried out by subsequently extracting meteorological sub-sequences of different information types according to the meteorological sub-information, and the subsequent storage capacity is reduced.
And S120, sequencing all the meteorological data according to the time information to obtain a time total sequence, and sequentially extracting each meteorological sub-information from the time total sequence to obtain a plurality of meteorological sub-sequences of different information types.
According to the technical scheme provided by the invention, the system can sequence all meteorological data according to the time information to obtain a total time sequence, and the system can sequence according to the time information from small to large, for example: 8/2000, 1/16: 19:59: temperature 35 deg.C, humidity 55%, wind speed 5m/s, 8/s/2000, 1/16: 20, temperature 35 ℃, humidity 55% and wind speed 5m/s, 16 at 8 months and 1 day in 2000: 20, temperature of 36 ℃, humidity of 55% and wind speed of 5m/s, 8/month/1/16/2000: 20, temperature of 35 ℃, humidity of 55% and wind speed of 5m/s, 16:20, the temperature is 35 ℃, the humidity is 55% and the wind speed is 5m/s, which is not limited herein, 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 from the total time sequence in turn, meteorological sub-sequences of different information types are obtained, and it can be understood that the meteorological sub-sequences of the temperature, the humidity and the wind speed types are extracted from the total time sequence, for example: 8/month/1/16 from the time series: 20, temperature 35 ℃, humidity 55% and wind speed 5m/s, 16 at 8 months and 1 day in 2000: 20, temperature of 36 ℃, humidity of 55% and wind speed of 5m/s, 16:20, temperature of 35 ℃, humidity of 55% and wind speed of 5m/s, 16:20, extracting meteorological subsequences related to temperature, humidity and wind speed respectively at 35 ℃, 55% humidity and 5m/s to obtain meteorological subsequences of temperature types: 8/2000, 1/16: 19:59: temperature 35 ℃, 8 months and 1 day in 2000 16:20:00: temperature 35 ℃, 8 months and 1 day in 2000 16:20:01: temperature 36 ℃, 8 months and 1 day in 2000 16:20:02: temperature 35 ℃, 8 months and 1 day in 2000 16:20:03: the temperature is 35 ℃; weather subsequence of humidity category: 8/2000, 1/16: 19:59: humidity 55%, 8/2000/1/16: 20:00: humidity 55%, 8/2000/1/16: 20:01: humidity 55%, 8/2000/1/16: 20:02: humidity of 55%, 8 month, 1 day, 2000, 16:20:03: humidity 55%, 8 month, 1 day, 16 in 2000: 20, the humidity is 55 percent; meteorological subsequence of wind speed category: 8/2000, 1/16: 19:59: wind speed is 5m/s, 8 months and 1 day in 2000 is 16:20:00: wind speed is 5m/s, 8 months and 1 day in 2000 is 16:20:01: wind speed is 5m/s, 8 months and 1 day in 2000 is 16:20:02: wind speed is 5m/s, 8 months and 1 day in 2000 is 16:20:03: wind speed is 5m/s, 8 months and 1 day in 2000 is 16:20:05: the wind speed is 5m/s, sequences corresponding to various types are generated, data comparison is convenient to perform subsequently, duplicate removal is performed on related data, time periods corresponding to the data are made, and corresponding data storage capacity is reduced.
Step S130, obtaining first weather information values of adjacent weather sub-information in the weather sub-sequence, and if it is determined that the first weather information values of the adjacent weather sub-information are the same, extracting time information corresponding to each of the plurality of first weather information to generate a weather time period.
According to the technical scheme provided by the invention, the system can acquire the first weather information values of the adjacent weather sub-information in the weather sub-sequence, and if the first weather information values of the adjacent weather sub-information are judged to be the same, the time corresponding to the first weather information values with the same value is extracted and combined into a weather time period, for example: acquiring a meteorological subsequence of temperature categories: 8/2000, 1/16: 19:59: temperature 35 ℃, 8 months and 1 day in 2000 16:20:00: temperature 35 ℃, 8 months and 1 day in 2000 16:20:01: temperature 36 ℃, 8 months, 1 days, 2000, 16:20:02: temperature 35 ℃, 8 months and 1 day in 2000 16:20:03: if the temperature is 35 ℃, extracting time information corresponding to 35 ℃ to generate a corresponding meteorological time period, wherein the meteorological time period is as follows: 8/2000, 1/16: 19, 59-2000, 8 month, 1 day, 16:20, 00, 8/2000, 1/16: 20, 8 months and 1 day in year 02-2000: 20, it can be understood that, converting each time required to correspond to a first weather information value into a first weather information value corresponding to a time period reduces the storage amount of data and reduces the storage burden of the system.
In a possible implementation manner of the technical solution provided by the present invention, as shown in fig. 2, step S130 specifically includes:
step S1301, obtaining a first weather information value of adjacent weather sub-information in the weather sub-sequence, and determining a numerical dimension of the first weather information value.
According to the technical scheme provided by the invention, the system can acquire the first meteorological information value of the adjacent meteorological sub-information in the meteorological sub-sequence and determine the numerical dimension of the first meteorological information value, wherein the numerical dimension refers to the numerical dimension of data, and it can be understood that the system can acquire the adjacent meteorological values in temperature, humidity and wind speed and determine whether the meteorological values are integer dimensions or decimal dimensions, for example: the adjacent meteorological values in the temperature are obtained at 35 ℃ and 35.5 ℃, so that the subsequent unified processing is conveniently carried out according to a preset strategy, and the data are unified.
Step S1302, if the numerical dimension reaches a preset dimension, using the first weather information value as a second weather information value, and if the numerical dimension does not reach the preset dimension, processing the numerical dimension of the first weather information value according to a preset strategy to obtain the second weather information value.
According to the technical scheme provided by the invention, if the numerical dimension reaches the preset dimension, wherein the preset dimension can be an integer dimension, it can be understood that if the numerical dimension reaches the integer dimension, the first weather information value is taken as the second weather information value, for example: originally 35 ℃, the value is directly used as 35 ℃, if the numerical dimension does not reach the preset dimension, for example: if the temperature of 35.5 ℃ is not an integer, processing the numerical dimension of a weather information value according to a preset strategy to obtain a second weather information value, where the preset strategy may be rounding up, rounding down, or rounding down, and is not limited herein, for example: rounding the temperature of 35.5 ℃ to 36 ℃, carrying out unification treatment, and carrying out unification treatment on data received by all the acquisition ends, so that subsequent treatment is facilitated.
Step S1303, if it is determined that the second weather information values of the adjacent weather sub-information are the same, extracting a maximum time value and a minimum time value of the second weather information values, and generating a weather time period according to the maximum time value and the minimum time value.
In the technical solution provided by the present invention, if it is determined that the second weather information values of the plurality of adjacent weather sub-information are the same, it can be understood that, if the plurality of temperature values are the same, the maximum time value and the minimum time value corresponding to the plurality of temperature values are extracted, and a weather time period is generated according to the maximum time value and the minimum time value, for example: 8/2000, 1/16: 19:59: temperature 35 ℃, 8 months and 1 day in 2000 16:20:00: temperature 35 ℃, 8 months, 1 days, 2000, 16:20:01: temperature 36 ℃, 8 months and 1 day in 2000 16:20:02: temperature 35 ℃, 8 months and 1 day in 2000 16:20:03: the temperature is 35 ℃, it being understood that a plurality of identical temperature values is 35 ℃, thus according to the maximum time value 2000, 8, 1, 16:20, 00, minimum time value: 8/2000, 1/16: 19, generating a meteorological time period: (16/8/1/2000; therefore, according to the maximum time value of 2000, 8, 1, 16:20, minimum time value: 8/2000, 1/16: 20, generating a meteorological time period: (20, 8/1/16 in 2000.
In a possible implementation manner of the technical solution provided by the present invention, step S1302 specifically includes:
and if the second weather information value is judged to be different from the second weather information values adjacent to the previous moment and the next moment, the second weather information values adjacent to the previous moment and the next moment are the same.
In the technical scheme provided by the invention, if the second weather information value is judged to be different from the adjacent weather sub-information at the previous moment and the next moment, and the weather sub-information at the previous moment and the next moment is the same, for example: 8/2000, 1/16: 19:59: temperature 35 ℃, 8 months and 1 day in 2000 16:20:00: temperature 35 ℃, 8 months and 1 day in 2000 16:20:01: temperature 36 ℃, 8 months and 1 day in 2000 16:20:02: temperature 35 ℃, 8 months and 1 day in 2000 16:20:03: the temperature is 35 ℃, temperature values corresponding to the time before and after the generation are obtained, comparison between values of time periods before and after the subsequent generation and values of time periods before and after the subsequent generation are facilitated, and the temperature value is obtained at 16 days 1/8/2000: 20:01: the temperature is the corresponding temperature value before and after 36 ℃, so that the subsequent comparison is convenient.
And generating a first acquisition time period according to the preset time length and the first moment when the previous moment is the first moment, and generating a second acquisition time period according to the preset time length and the second moment when the next moment is the second moment.
In the technical solution provided by the present invention, the previous time is a first time, and a first obtaining time period is generated according to the preset time length and the first time, it can be understood that the first obtaining time period is located before the error meteorological value, the next time is a second time, and a second obtaining time period is generated according to the preset time length and the second time, and it can be understood that the second obtaining time period is located at the rear end of the error meteorological value, for example: 8/2000, 1/16: 19:59: temperature 35 ℃, 8 months and 1 day in 2000 16:20:00: temperature 35 ℃, 8 months and 1 day in 2000 16:20:01: temperature 36 ℃, 8 months, 1 days, 2000, 16:20:02: temperature 35 ℃, 8 months, 1 days, 2000, 16:20:03: the temperature is 35 ℃, wherein the preset time length can be set manually, for example: may be 1 second, or may be 10 seconds, and is not limited herein, then the first acquisition period is 8 months, 1 day, 16 in 2000: 19, 59-2000, 8 month, 1 day, 16:20, 00, the second acquisition period is 8 months, 1 day, 16 in 2000: 20, 8 months and 1 day in year 02-2000: and 20, facilitating subsequent comparison, and changing abnormal data to eliminate the abnormality.
And if the second weather information values corresponding to all the moments in the first acquisition time period and the second acquisition time period are judged to be the same, correcting the corresponding second weather information values into second weather information values with the same values as the previous moments and the next moments.
According to the technical scheme provided by the invention, if the weather information values corresponding to all the moments in the first acquisition time period and the second acquisition time period are judged to be the same, the second weather information value different from the values of the previous and next acquisition time periods is corrected to be the second weather information value with the same value as the previous and next moments, and it can be understood that the weather information value in 8, 1, 16 in 2000: 19:59: temperature 35 ℃, 8 months and 1 day in 2000 16:20:00: temperature 35 ℃, 8 months and 1 day in 2000 16:20:01: temperature 36 ℃, 8 months and 1 day in 2000 16:20:02: temperature 35 ℃, 8 months and 1 day in 2000 16:20:03: the temperature is 35 ℃, the meteorological values at all the moments are 35 ℃ and 36 ℃ in the middle, data errors occur at the moment, the numerical deviation caused by transient equipment failure is possible, the error after the preset strategy processing is possible, and the errors can be eliminated through the comparison of numerical values.
Step S140, counting the meteorological time periods with the same first meteorological information value to generate a first time period set, correspondingly storing the first meteorological information value and the first time period set, and adjusting the acquisition interval of the acquisition end according to the first meteorological information value.
According to the technical scheme provided by the invention, the system can 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 as follows: a temperature of 35 ℃ corresponds to a time period of 2000, 8, 1, 16:19, 59-2000, 8 month, 1 day, 16:20: 20, 8 months and 1 day in year 02-2000: 20, the corresponding first time period set is (20/8/1/16/2000.
In a possible embodiment, the counting meteorological time periods with the same first meteorological information values to generate a first time period set, and storing the first meteorological information values corresponding to the first time period set includes:
and constructing a corresponding first storage structure tree according to each first weather information value and the position information corresponding to the first time period set, and counting the first corresponding time corresponding to the first storage structure tree.
According to the technical scheme provided by the invention, the system can construct a corresponding first storage structure tree according to each first weather information value and the position information corresponding to the first time period set, and can understand that the system can construct a corresponding first storage structure tree according to the acquisition end of each position information, each acquisition end corresponds to one storage structure tree, and the first corresponding time corresponding to the first storage structure tree is counted, and can understand that the first corresponding time which the system wants to compare can be counted, wherein the first corresponding time can be 7-9 months or 1-12 months, and is not limited, so that the comparison of the same time of the subsequent structure trees in the same period as the previous year can be conveniently carried out, and the subsequent comparative analysis can be conveniently carried out to obtain the corresponding analysis result.
In a possible implementation manner, the constructing a corresponding first storage structure tree according to each first weather information value and the location information corresponding to the first time period set, and counting a first corresponding time corresponding to the first storage structure tree includes:
and constructing a first parent node of a first storage structure tree according to the position 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 with the first parent node respectively.
According to the technical scheme provided by the invention, a system can construct a first mother node of a corresponding first storage structure tree according to position information of an acquisition end, and construct a first child node of the first storage structure tree according to information types of meteorological information, wherein the first child node of the first storage structure tree is constructed according to temperature types, humidity types and wind speed types, each first child node is respectively connected with the first mother node, and the mother node corresponds to the position information of each acquisition end, wherein the position information can be longitude and latitude information of the acquisition end, the corresponding mother 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 types of the meteorological information, and the three child nodes are respectively connected with the mother node.
And constructing second sub-nodes with corresponding quantity according to the quantity of second weather information values corresponding to the weather sub-information, configuring corresponding second weather information values for each second sub-node, and connecting each second sub-node with the first sub-node.
According to the technical scheme provided by the invention, the system can construct the second sub-nodes with corresponding quantity according to the quantity of the second meteorological information values corresponding to the meteorological sub-information (temperature, humidity and wind speed), and it can be understood that the system can correspondingly generate the second sub-nodes with corresponding quantity according to the quantity of the collected temperature, humidity and wind speed values, for example: if the temperature is 35 ℃ or 36 ℃,2 second subnodes are correspondingly generated, namely, the 35 ℃ second subnode and the 36 ℃ second subnode, and each second subnode is connected with the first subnode, it can be understood that the 35 ℃ second subnode and the 36 ℃ second subnode are connected with the first subnode corresponding to the temperature.
And constructing a corresponding number of third child nodes according to the number of the weather time periods in the first time period set corresponding to each second weather information value, configuring a corresponding weather time period for each third child node, and connecting each third child node with the second child node.
According to the technical scheme provided by the invention, the system can construct the third sub-nodes of corresponding data according to the number of the meteorological time periods in the first time period set corresponding to each second meteorological information value, and it can be understood that the system can generate the third sub-nodes with corresponding number according to the number of the corresponding time periods in the time period set under the acquired temperature, humidity and wind speed values, for example: the set of corresponding time periods at 35 ℃ is (19: 59-2000, 8, 1, 16:19: 19, 59-2000, 8 month, 1 day, 16:20, and third child node corresponding to 20: 20, 8 months and 1 day in year 02-2000: 20, each third child node is connected to the second child node, and the storage structure tree is correspondingly generated for storing data, so that comparison through the storage structure tree is facilitated subsequently, comparison and data retrieval are facilitated, and time is saved.
And calling a second storage structure tree corresponding to the first corresponding time and having the same position information and a second corresponding time of the previous year.
According to the technical scheme provided by the invention, the system can call the second structure tree corresponding to the second corresponding time which has the same position information as the first account storage structure tree and is in the same period in the previous year, and the system can automatically call the storage structure tree in the previous year, which has the same position and is in the same period as the first corresponding time, namely the second structure tree, so that the comparison between the first and second structure trees is conveniently carried out subsequently to obtain the corresponding analysis result.
And analyzing according to the first storage structure tree, the second storage structure tree and the expected analysis target to obtain corresponding analysis results.
According to the technical scheme provided by the invention, the optimal analysis target is obtained according to the expected analysis target, and comparison is carried out according to the first storage structure tree and the second storage structure tree, wherein the expected analysis target is an object to be analyzed and compared, and the comparison can be carried out by: the crop yield, the project schedule and the like are not limited, the crops can be pakchoi, pepper and the like, the limitation is not provided, it can be understood that the corresponding crop yield or the project schedule and the like can be obtained by comparing the structural storage tree with the crops of the same variety in the past year or the projects of the same attribute according to different crop types and different project attributes, the storage is performed by using the structural tree, the data calling and comparison are facilitated, the corresponding analysis result can be obtained relatively quickly, and the time is saved.
In a possible implementation manner, the analyzing according to the first storage structure tree, the second storage structure tree, and the expected analysis target to obtain a corresponding analysis result includes:
and determining an optimal meteorological range interval corresponding to the expected analysis targets, wherein each expected analysis target has an optimal meteorological range interval which is preset correspondingly to the expected analysis target, and the optimal meteorological range interval comprises an optimal temperature interval and an optimal humidity interval.
According to the technical scheme provided by the invention, the system can determine the optimal meteorological range interval corresponding to the expected analysis target, such as: the expected analysis target is the pakchoi, and the optimal growth temperature range of the pakchoi is determined as follows: the optimal growth humidity range of the pakchoi is determined to be 18-20 ℃:60% -65%, obtaining the optimal temperature interval and the optimal humidity interval, facilitating the comparison with the pakchoi in the same period in the next year, and conveniently obtaining the corresponding yield data.
And acquiring a temperature weather value and a corresponding first time period set of the second weather information value of each temperature in the first storage structure tree, and acquiring a second weather information value of each humidity in the first storage structure tree to obtain a humidity weather value and a corresponding first time period set.
According to the technical scheme provided by the invention, the system can acquire the temperature weather value and the corresponding first time period set of the second weather information value of each temperature in the first storage structure tree, acquire the second weather information value of each humidity in the first storage structure tree, acquire the humidity weather value and the corresponding first time period set, facilitate subsequent acquisition of the time period corresponding to the optimal temperature or humidity interval according to the optimal interval of the temperature and the humidity, and facilitate subsequent yield estimation.
And acquiring a temperature weather value and a corresponding second time period set of the second weather information value of each temperature in the second storage structure tree, and acquiring a humidity weather value and a corresponding second time period set of the second weather information value of each humidity in the second storage structure tree.
According to the technical scheme provided by the invention, the system can acquire the temperature weather value and the corresponding second time period set of the second weather information value of each temperature in the second storage structure tree, and can acquire the humidity weather value and the corresponding second time period set of the second weather information value of each humidity in the second storage structure tree, wherein the second time period set and the first time period set are selected in the same time period, for example: both the first storage structure tree and the second storage structure tree are selected within 5 months, and it can be understood that the meteorological values and the time periods corresponding to the first storage structure tree and the second storage structure tree are respectively obtained, so that the subsequent comparative analysis on the corresponding yield is facilitated.
A first temperature fraction of a first set of time periods within an optimal temperature interval and a first humidity fraction of the first set of time periods within an optimal humidity interval in the first storage structure tree are determined.
According to the technical scheme provided by the invention, a system can determine a first temperature proportion of a first time period set in an optimal temperature interval and a first humidity proportion of the first time period set in the optimal humidity interval in a first storage structure tree, and can extract a time period set corresponding to the Chinese cabbage in the optimal temperature interval of 18-20 ℃ in the first storage structure, obtain the first temperature proportion according to the ratio of the time period set to a preset time period, extract a time period set corresponding to the Chinese cabbage in the optimal humidity interval of 60-65% in the first storage structure, and compare the ratio of the time period set to the preset time period to obtain the first humidity proportion; the preset time period can be determined according to the optimal growth cycle of the pakchoi, the optimal growth cycle can be 30 days, and the preset time period can also be manually set, so that the comparison with the temperature and humidity ratio of the second storage structure tree can be conveniently carried out subsequently according to the first temperature ratio and the first humidity ratio, and the corresponding analysis result can be obtained.
A second temperature fraction of a second set of time periods within the optimal temperature interval and a second humidity fraction of the second set of time periods within the optimal humidity interval in the second storage structure tree are determined.
According to the technical scheme provided by the invention, the system can determine the second temperature proportion of a second time period set in an optimal temperature interval in a second storage structure tree and the second humidity proportion of the second time period set in the optimal humidity interval, and can be understood that the system can extract the corresponding time period of the pakchoi in the previous year, the first storage structure tree is 5 months, the second storage structure tree can be 5 months in the last year, the corresponding time period set in the optimal temperature interval of 18-20 ℃ in the second storage structure is obtained according to the ratio of the time period set to the preset time period, the corresponding time period set in the optimal humidity interval of 60-65% in the second storage structure 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 pakchoi, the optimal growth cycle can be 30 days, and the preset time period can also be manually set, so that the comparison with the temperature and humidity ratio of the second storage structure tree can be conveniently carried out subsequently according to the first temperature ratio and the first humidity ratio, and the corresponding analysis result can be obtained.
And calculating according to the first temperature ratio, the first humidity ratio, the second temperature ratio, the second humidity ratio and the historical yield corresponding to the second storage structure tree to obtain the predicted yield of the first storage structure tree.
According to the technical scheme provided by the invention, the system can calculate according to the first temperature ratio, the first humidity ratio, the second temperature ratio, the second humidity ratio and the historical yield corresponding to the second storage structure tree to obtain the predicted yield of the first storage structure tree.
In a possible embodiment, the calculating according to the first temperature ratio, the first humidity ratio, the second temperature ratio, the second humidity ratio, and the historical yield corresponding to the second storage structure tree to obtain the predicted yield of the first storage structure tree includes:
and comparing the first temperature ratio with the second temperature ratio to obtain a temperature influence trend value, and comparing the first humidity ratio with the second humidity ratio to obtain a humidity influence trend value.
According to the technical scheme provided by the invention, the first temperature ratio and the second temperature ratio are compared to obtain a temperature influence trend value, and the first humidity ratio and the second humidity ratio are compared to obtain a humidity influence trend value.
And calculating according to the temperature influence trend value, the humidity influence trend value and the historical yield to obtain the predicted yield of the first storage structure tree.
According to the technical scheme provided by the invention, the historical yield is subjected to offset processing according to the temperature influence trend value and the humidity influence trend value, the predicted yield corresponding to the first storage structure tree can be obtained, the first storage structure tree is stored in a structure tree form, the stored data can be conveniently retrieved and compared, and the calculation time is relatively reduced.
The predicted yield is obtained by the following formula,
Figure BDA0003950338310000191
wherein, y 1 To predict yield, y 2 For historical yield, w 1 Is a first temperature ratio, w 2 Is the second temperature ratio, g w Temperature ratio normalized value,/ 1 Is the first humidity ratio, l 2 Is the second humidity ratio, g l Is normalized value of humidity ratio, m 1 For the total duration, m, in the first storage structure tree within the optimum temperature interval 3 For a predetermined time period within the optimum temperature range, m 2 For the total duration in the second storage structure tree within the optimum temperature interval, r 1 Is the total time length in the first storage structure tree within the optimum humidity interval, r 3 For a predetermined duration in the optimum humidity range, r 2 For the total duration of the second storage structure tree within the optimal humidity interval, it can be appreciated that the yield is predicted
Figure BDA0003950338310000192
Proportional, predicted yield
Figure BDA0003950338310000193
Proportional ratio, wherein the temperature is proportional to the normalized value g w And humidity ratio normalized value g l Normalizing the temperature and the humidity into a value less than 1, wherein the preset time length r in the optimal humidity range 3 Can be preset according to the growth period corresponding to the crop species and the preset time m in the optimal temperature interval 3 May be preset according to the growth cycle corresponding to the crop species.
According to the technical scheme provided by the invention, the comparison is carried out in the form of the tree of the storage structure, so that the comparison of data is facilitated, the comparison result can be obtained quickly, the time for calling the storage data is saved relatively, the whole database does not need to be traversed, and only the corresponding storage structure tree needs to be called for comparison.
In a possible implementation manner, the adjusting the acquisition interval of the acquisition end according to the first meteorological information value includes:
and if the second meteorological information value is larger than the maximum value of the preset range, obtaining a first difference value according to the difference value between the second meteorological information value and the maximum value in the preset range.
According to the technical scheme provided by the invention, if the second meteorological information value is larger than the maximum value of the preset range, for example: at present, the air temperature is 22 ℃, the optimal temperature range is 18-20 ℃, a corresponding first difference value is obtained according to the difference value between 22 ℃ and 20 ℃, and the acquisition frequency is conveniently adjusted according to the first difference value in the follow-up process.
And if the second meteorological information value is smaller than the minimum value of the preset range, obtaining a second difference value according to the difference value between the minimum value in the preset range and the second meteorological information value.
According to the technical scheme provided by the invention, if the second meteorological information value is smaller than the minimum value of the preset range, for example: at present, the air temperature is 16 ℃, the optimal temperature range is 18-20 ℃, a corresponding second difference value is obtained according to the difference value of 18 ℃ and 16 ℃, and the acquisition frequency is conveniently adjusted according to the second difference value.
And adjusting the preset acquisition interval of the acquisition end according to the first difference or the second difference to obtain a first acquisition interval.
According to the technical scheme provided by the invention, the preset acquisition interval of the acquisition end is adjusted according to the first difference or the second difference to obtain the first acquisition interval, and it can be understood that when the air temperature is not in the optimal suitable interval, the acquisition frequency of the acquisition end can be adjusted, the more stable the climate is, the lower the acquisition frequency is, and the worse the climate is, the higher the acquisition frequency is, so that on the premise of ensuring the data accuracy, the acquisition data corresponding to the acquisition end can be relatively reduced, the burden of a server is reduced, the working time of the acquisition end is relatively reduced, and the service life of the acquisition end is relatively prolonged.
The first acquisition interval is obtained by the following formula,
Figure BDA0003950338310000211
wherein A is 1 Is a second weather information value, a min Is the minimum value of a predetermined range, I 2 For the first acquisition interval, epsilon l An influence factor, β, of the first acquisition interval 1 Is a first constant value, I 1 For a preset acquisition interval, a max At the maximum of a predetermined range, β 2 Is a second constant value, (a) min -A 1 ) Is the second difference, (A) 1 -a max ) For the first difference, it is understood that the first acquisition interval I 2 And a second difference (a) min -A 1 ) Proportional, first acquisition interval I 2 With the first difference (A) 1 -a max ) Proportional to the difference between the first constant value beta and the second constant value beta, and the larger the deviation is, the shorter the acquisition time interval is 1 And a second constant value beta 2 May be preset manually.
According to the technical scheme provided by the invention, the acquisition frequency can be correspondingly adjusted by the acquisition end according to different meteorological values, and when the deviation of the meteorological data value is larger, the corresponding acquisition frequency is higher and gradually increased, so that the acquisition frequency can be correspondingly improved in a smaller way when the deviation of the temperature, the humidity and the wind speed relative to the optimal value is smaller, the acquisition frequency is correspondingly improved in a larger way, and the data can be acquired according to the actual weather condition.
In a possible embodiment, the technical solution provided by the present invention further includes:
monitoring user behaviors to obtain user behavior data, obtaining a second acquisition interval and adjustment times actively input by a user according to the user behavior data, and modifying the first acquisition interval into the second acquisition interval.
According to the technical scheme provided by the invention, the system can monitor the user behavior to obtain the corresponding user behavior data, can obtain the second acquisition interval and the adjustment times input by the user according to the user behavior data, and can modify the first acquisition interval into the second acquisition interval.
And if the second acquisition interval is larger than the first acquisition interval, generating a first interval difference value according to the difference value of the second acquisition interval and the first acquisition interval.
According to the technical scheme provided by the invention, if the second acquisition interval is larger than the first acquisition interval, the first interval difference value is generated according to the difference value between the second acquisition interval and the first acquisition interval, so that the influence factor of the first acquisition interval can be corrected conveniently in the follow-up process.
And correcting the influence factor of the first acquisition interval according to the first interval difference value and the adjustment times to obtain the corrected influence factor of the first acquisition interval.
According to the technical scheme provided by the invention, the influence factor of the first acquisition interval is corrected according to the first interval difference value and the adjustment times, and it can be understood that a user wants to adjust according to an actual situation, an input numerical value sometimes cannot be input once and needs to be adjusted for multiple times, and the closer the adjustment is to a numerical value meeting the actual situation, the influence factor of the first acquisition interval is corrected according to the first interval difference value and the adjustment times.
And if the second acquisition interval is smaller than the first acquisition interval, generating a second interval difference value according to the difference value between the first acquisition interval and the second acquisition interval.
According to the technical scheme provided by the invention, if the second acquisition interval is smaller than the first acquisition interval, the second interval difference is generated according to the difference between the first acquisition interval and the second acquisition interval, so that the influence factor of the first acquisition interval can be corrected conveniently in the follow-up process.
And correcting the influence factor of the first acquisition interval according to the second interval difference and the adjustment times to obtain the corrected influence factor of the first acquisition interval.
According to the technical scheme provided by the invention, the influence factor of the first acquisition interval is corrected according to the second interval difference and the adjustment times, and it can be understood that a user wants to adjust according to an actual situation, an input numerical value sometimes cannot be input once and needs to be adjusted for multiple times, and the adjustment is closer to a numerical value meeting the actual situation, so that the influence factor of the first acquisition interval is corrected according to the second interval difference and the adjustment times, the larger the second interval difference is, the larger the correction amplitude of the corresponding influence factor of the first acquisition interval is, and the larger the adjustment times is, the smaller the corresponding correction amplitude is.
The impact factor of the modified first acquisition interval is obtained by the following formula,
Figure BDA0003950338310000221
wherein, I 3 For the second acquisition interval, epsilon 2 For the influence factor of the corrected first acquisition interval, τ 1 In order to correct the value in the forward direction,
Figure BDA0003950338310000223
for the upper limit of the number of adjustments, τ 2 To negative correction value, I 3 -I 2 Is a first interval difference, I 2 -I 3 Is the difference in the second interval and is,
Figure BDA0003950338310000222
is the total number of adjustments.
The technical scheme provided by the invention has the autonomous learning updating function, can actively record and learn the behavior of the user, and actively updates the influence factor of the first acquisition interval, so that the acquisition interval output under the same meteorological condition at the next time is more consistent with the actual condition.
In order to better implement the meteorological data storage method provided by the present invention, the present invention further provides a meteorological data storage system, as shown in fig. 3, including:
the determining module is used for determining a plurality of meteorological data with the same position information and determining the information types of the meteorological information in the meteorological data, wherein the meteorological information comprises 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;
the sequencing module is used for sequencing all meteorological data according to the time information to obtain a time total sequence, and extracting each meteorological sub-information in the time total sequence in sequence to obtain a plurality of meteorological sub-sequences of different information types;
the extraction module is used for acquiring first weather information values of adjacent weather sub-information in the weather sub-sequence, and extracting time information corresponding to the first weather information to generate a weather time period if the first weather information values of the adjacent weather sub-information are judged to be the same;
the storage adjusting module is used for counting meteorological time periods with the same first meteorological information values to generate a first time period set, correspondingly storing the first meteorological information values and the first time period set, and adjusting the acquisition interval of the acquisition end according to the first meteorological information values.
As shown in fig. 4, which is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention, the electronic device 50 includes: a processor 51, a memory 52 and computer programs; wherein
A memory 52 for storing the computer program, which may also be a flash memory (flash). The computer program is, for example, an application program, a functional module, or the like that implements the above-described method.
A processor 51 for executing the computer program stored in the memory to implement the steps performed by the apparatus in the above method. Reference may be made in particular to the description relating to the preceding method embodiment.
Alternatively, the memory 52 may be separate or integrated with the processor 51.
When the memory 52 is a device independent of the processor 51, the apparatus may further include:
a bus 53 for connecting the memory 52 and the processor 51.
The present invention also provides a readable storage medium, in which a computer program is stored, which, when being executed by a processor, is adapted to implement the methods provided by the various embodiments described above.
The readable storage medium may be a computer storage medium or a communication medium. Communication media includes any medium that facilitates transfer of a computer program from one place to another. Computer storage media may be any available media that can be accessed by a general purpose or special purpose computer. For example, a readable storage medium is coupled to the processor such that the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Additionally, the ASIC may reside in user equipment. Of course, the processor and the readable storage medium may also reside as discrete components in a communication device. The readable storage medium may be a read-only memory (ROM), a random-access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The present invention also provides a program product comprising execution instructions stored in a readable storage medium. The at least one processor of the device may read the execution instructions from the readable storage medium, and the execution of the execution instructions by the at least one processor causes the device to implement the methods provided by the various embodiments described above.
In the above embodiments of the apparatus, it should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A meteorological data storage method is characterized in that a plurality of acquisition ends acquire meteorological data and send the meteorological data to a server, the meteorological data comprise meteorological information, time information and position information, and the server stores the meteorological data in a classified mode through the following steps, and the method specifically comprises the following steps:
determining a plurality of meteorological data with the same position information, and determining the information type of the meteorological information in the meteorological data, wherein the meteorological information comprises 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;
sequencing all meteorological data according to the time information to obtain a time total sequence, and sequentially extracting each meteorological sub-information from the time total sequence to obtain a plurality of meteorological sub-sequences of different information types;
acquiring first weather information values of adjacent weather sub-information in the weather sub-sequence, and if the first weather information values of the adjacent weather sub-information are judged to be the same, extracting time information corresponding to the first weather information respectively to generate a weather time period;
counting the meteorological time periods with the same first meteorological information value to generate a first time period set, correspondingly storing the first meteorological information value and the first time period set, and adjusting the acquisition interval of an acquisition end according to the first meteorological information value.
2. The method of claim 1,
the acquiring of the first weather information values of the weather sub-information adjacent to each other in the weather sub-sequence, and if it is determined that the first weather information values of the plurality of weather sub-information adjacent to each other are the same, extracting the time information corresponding to each of the plurality of first weather information to generate the weather time period includes:
acquiring a first meteorological information value of adjacent meteorological sub-information in a meteorological subsequence, and determining the numerical dimension of the first meteorological information value;
if the numerical dimension reaches a preset dimension, the first weather information value is used as a second weather information value, and if the numerical dimension does not reach the preset dimension, the numerical dimension of the first weather information value is processed according to a preset strategy to obtain a second weather information value;
and if the second weather information values of the plurality of adjacent weather sub-information are judged to be the same, extracting the maximum time value and the minimum time value in the plurality of second weather information values, and generating a weather time period according to the maximum time value and the minimum time value.
3. The method of claim 2,
if the numerical dimension reaches the preset dimension, the first weather information value is used as a second weather information value, and if the numerical dimension does not reach the preset dimension, the numerical dimension of the first weather information value is processed according to a preset strategy to obtain the second weather information value, wherein the steps of:
if the second weather information value is judged to be different from the second weather information values adjacent to the previous moment and the next moment, and the second weather information values adjacent to the previous moment and the next moment are the same;
generating a first acquisition time period according to the preset time length and the first moment when the previous moment is the first moment, and generating a second acquisition time period according to the preset time length and the second moment when the next moment is the second moment;
and if the second weather information values corresponding to all the moments in the first acquisition time period and the second acquisition time period are judged to be the same, correcting the corresponding second weather information values into second weather information values with the same values as the previous moments and the next moments.
4. The method of claim 3,
the counting the meteorological time periods with the same first meteorological information value to generate a first time period set, and the storing the first meteorological information value corresponding to the first time period set comprises the following steps:
constructing a corresponding first storage structure tree according to each first weather information value and the position information corresponding to the first time period set, and counting first corresponding time corresponding to the first storage structure tree;
calling a second storage structure tree corresponding to the first corresponding time and having the same position information at a second corresponding time in the same year;
and analyzing according to the first storage structure tree, the second storage structure tree and the expected analysis target to obtain corresponding analysis results.
5. The method of claim 4,
constructing a corresponding first storage structure tree according to each first weather information value and the position information corresponding to the first time period set, and counting first corresponding time corresponding to the first storage structure tree, wherein the method comprises the following steps:
constructing a first parent node of a first storage structure tree according to the position information, constructing first child nodes of the first storage structure tree according to the information type of the weather information, and connecting each first child node with the first parent node;
according to the number of second weather information values corresponding to the weather sub-information, constructing second sub-nodes with corresponding number, configuring corresponding second weather information values for each second sub-node, and connecting each second sub-node with the first sub-node;
and constructing a corresponding number of third child nodes according to the number of the weather time periods in the first time period set corresponding to each second weather information value, configuring a corresponding weather time period for each third child node, and connecting each third child node with the second child node.
6. The method of claim 5,
analyzing according to the first storage structure tree, the second storage structure tree and the expected analysis target to obtain corresponding analysis results, including:
determining an optimal meteorological range interval corresponding to the expected analysis targets, wherein each expected analysis target is provided with an optimal meteorological range interval which is preset correspondingly, and the optimal meteorological range interval comprises an optimal temperature interval and an optimal humidity interval;
acquiring a temperature weather value and a corresponding first time period set of a second weather information value of each temperature in the first storage structure tree, and acquiring a second weather information value of each humidity in the first storage structure tree to obtain a humidity weather value and a corresponding first time period set;
acquiring a temperature weather value and a corresponding second time period set of a second weather information value of each temperature in the second storage structure tree, and acquiring a humidity weather value and a corresponding second time period set of the second weather information value of each humidity in the second storage structure tree;
determining a first temperature ratio of a first time period set in the first storage structure tree within the optimal temperature interval and a first humidity ratio of the first time period set in the optimal humidity interval;
determining a second temperature ratio of a second time period set in the optimal temperature interval and a second humidity ratio of a second time period set in the optimal humidity interval in a second storage structure tree;
and calculating according to the first temperature ratio, the first humidity ratio, the second temperature ratio, the second humidity ratio and the historical yield corresponding to the second storage structure tree to obtain the predicted yield of the first storage structure tree.
7. The method of claim 6,
the calculating according to the first temperature ratio, the first humidity ratio, the second temperature ratio, the second humidity ratio and the historical yield corresponding to the second storage structure tree to obtain the predicted yield of the first storage structure tree includes:
comparing the first temperature ratio with the second temperature ratio to obtain a temperature influence trend value, and comparing the first humidity ratio with the second humidity ratio to obtain a humidity influence trend value;
calculating according to the temperature influence trend value, the humidity influence trend value and the historical yield to obtain the predicted yield of the first storage structure tree;
the predicted yield is obtained by the following formula,
Figure FDA0003950338300000041
wherein, y 1 To predict yield, y 2 For historical yield, w 1 Is a first temperature ratio, w 2 Is as followsSecond temperature ratio, g w Temperature ratio normalized value,/ 1 Is the first humidity ratio, l 2 Is the second humidity ratio, g l Is normalized value of humidity ratio, m 1 For the total duration, m, in the first storage structure tree within the optimum temperature interval 3 For a predetermined time period within the optimum temperature range, m 2 For the total duration in the second storage structure tree within the optimum temperature interval, r 1 Is the total time length in the first storage structure tree within the optimum humidity interval, r 3 For a predetermined duration in the optimum humidity range, r 2 The total time length in the second storage structure tree within the optimal humidity interval.
8. The method of claim 3,
the adjustment of the collection interval of the collection end according to the first meteorological information value comprises the following steps:
if the second meteorological information value is larger than the maximum value of the preset range, obtaining a first difference value according to the difference value between the second meteorological information value and the maximum value in the preset range;
if the second meteorological information value is smaller than the minimum value of the preset range, obtaining a second difference value according to the difference value between the minimum value in the preset range and the second meteorological information value;
adjusting the preset acquisition interval of the acquisition end according to the first difference or the second difference to obtain a first acquisition interval;
the first acquisition interval is obtained by the following formula,
Figure FDA0003950338300000051
wherein, A 1 Is a second weather information value, a min Is the minimum value of a predetermined range, I 2 For the first acquisition interval, ε 1 An influence factor, β, of the first acquisition interval 1 Is a first constant value, I 1 For a preset acquisition interval, a max At the maximum of a predetermined range, β 2 Is a second constant value.
9. The method of claim 8, further comprising:
monitoring user behaviors to obtain user behavior data, obtaining a second acquisition interval and adjustment times actively input by a user according to the user behavior data, and modifying the first acquisition interval into the second acquisition interval;
if the second acquisition interval is larger than the first acquisition interval, generating a first interval difference value according to the difference value of the second acquisition interval and the first acquisition interval;
correcting the influence factor of the first acquisition interval according to the first interval difference value and the adjustment times to obtain the corrected influence factor of the first acquisition interval;
if the second acquisition interval is smaller than the first acquisition interval, generating a second interval difference value according to the difference value between the first acquisition interval and the second acquisition interval;
correcting the influence factor of the first acquisition interval according to the second interval difference and the adjustment times to obtain the corrected influence factor of the first acquisition interval;
the impact factor of the modified first acquisition interval is obtained by the following formula,
Figure FDA0003950338300000052
wherein, I 3 For the second acquisition interval, epsilon 2 For the influence factor of the corrected first acquisition interval, τ 1 In order to correct the value in the forward direction,
Figure FDA0003950338300000053
for the upper limit of the number of adjustments, τ 2 Is a negative correction value.
10. A weather data storage system, comprising:
the determining module is used for determining a plurality of meteorological data with the same position information and determining the information types of the meteorological information in the meteorological data, wherein the meteorological information comprises 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;
the sequencing module is used for sequencing all the meteorological data according to the time information to obtain a time total sequence, and extracting each meteorological sub-information in the time total sequence in sequence to obtain a plurality of meteorological sub-sequences of different information types;
the extraction module is used for acquiring first weather information values of adjacent weather sub-information in the weather sub-sequence, and extracting time information corresponding to the first weather information to generate a weather time period if the first weather information values of the adjacent weather sub-information are judged to be the same;
the storage adjusting module is used for counting meteorological time periods with the same first meteorological information values to generate a first time period set, correspondingly storing the first meteorological information values and the first time period set, and adjusting the acquisition interval of the acquisition end according to the first meteorological information values.
CN202211448362.8A 2022-11-18 2022-11-18 Meteorological data storage method and system Pending CN115809242A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211448362.8A CN115809242A (en) 2022-11-18 2022-11-18 Meteorological data storage method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211448362.8A CN115809242A (en) 2022-11-18 2022-11-18 Meteorological data storage method and system

Publications (1)

Publication Number Publication Date
CN115809242A true CN115809242A (en) 2023-03-17

Family

ID=85483499

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211448362.8A Pending CN115809242A (en) 2022-11-18 2022-11-18 Meteorological data storage method and system

Country Status (1)

Country Link
CN (1) CN115809242A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116303747A (en) * 2023-03-30 2023-06-23 太极计算机股份有限公司 Visualization system based on aviation weather four-dimensional dataset

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116303747A (en) * 2023-03-30 2023-06-23 太极计算机股份有限公司 Visualization system based on aviation weather four-dimensional dataset

Similar Documents

Publication Publication Date Title
CN112699605B (en) Charging pile fault element prediction method and system
CN102831440B (en) Method and device for decision tree based wide-area remote sensing image classification
CN112445690B (en) Information acquisition method and device and electronic equipment
CN108960269B (en) Feature acquisition method and device for data set and computing equipment
CN111368887B (en) Training method of thunderstorm weather prediction model and thunderstorm weather prediction method
CN115021679B (en) Photovoltaic equipment fault detection method based on multi-dimensional outlier detection
CN113807568B (en) Power load prediction method and device and terminal equipment
CN112434662B (en) Tea leaf scab automatic identification algorithm based on multi-scale convolutional neural network
CN115809242A (en) Meteorological data storage method and system
CN116029613B (en) Novel power system index data processing method and platform
CN117786543B (en) Digital broiler raising information storage management method and system
CN110232130B (en) Metadata management pedigree generation method, apparatus, computer device and storage medium
CN117576823B (en) Queuing and calling system terminal
CN113127464A (en) Agricultural big data environment feature processing method and device and electronic equipment
CN117786018A (en) Intelligent search method based on user portrait features and deep learning algorithm model
CN115374404B (en) Method for correcting monthly electric energy proportion deviation of industry based on multi-dimensional data
CN115329873A (en) Low-standard-capacity transformer identification method, device, equipment and medium
CN110942196B (en) Predicted irradiation correction method and device
CN115134246B (en) Network performance index monitoring method, device, equipment and storage medium
CN112395261A (en) Service recommendation method and device, computing equipment and computer storage medium
CN114580758B (en) Multi-city automatic energy load prediction method and system
CN117438043B (en) Method and device for processing data of food serving
CN114678069B (en) Immune rejection prediction and signal path determination device for organ transplantation
CN117331501B (en) Data analysis management method, equipment and system for solid state disk
CN116579508B (en) Fish prediction method, device, equipment and storage medium

Legal Events

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