Meteorological data coding transmission method and system based on Beidou satellite

By analyzing the matching degree of coding dictionaries between current meteorological data and historical data, suitable decoding dictionaries are selected, which solves the problem of transmission pressure and data loss caused by synchronous transmission of coding dictionaries in Beidou satellite meteorological data transmission, and improves the accuracy of decoding and efficiency.

CN118573333BActive Publication Date: 2024-10-18NORTHWEST NORMAL UNIVERSITY
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411052291.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-02
Publication Date
2024-10-18
Estimated Expiration
2044-08-02

AI Technical Summary

Technical Problem

When using Beidou satellites for meteorological data transmission, the versatility of the shared basic coding dictionary is limited, resulting in decoding delays or failures, and the synchronous transmission of coding dictionaries increases transmission pressure and the risk of data loss.

Method used

By obtaining the historical meteorological compressed data and coding dictionary at the receiving end, the matching degree of the coding dictionary between the current meteorological data and the historical data is analyzed, and a suitable decoding dictionary is selected to decode the current compressed meteorological data to avoid synchronous transmission of the current coding dictionary.

Benefits of technology

It improves the accuracy and efficiency of meteorological data decoding, reduces transmission pressure and costs, and reduces the risk of data loss.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118573333B_ABST
    Figure CN118573333B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of radio coding transmission technology, and in particular to a method and system for coding and transmitting meteorological data based on Beidou satellites. The present invention obtains all historical meteorological compression data and corresponding historical coding dictionaries at the receiving end, and obtains the current meteorological compression data to be transmitted at the transmitting end and the corresponding current coding dictionary; according to the importance of each current coding element and the degree of matching between the current coding element and each historical coding dictionary, the dictionary matching degree between the current coding dictionary and each historical coding dictionary is obtained; and then the decoding dictionary of the current meteorological compression data is screened out and decoded. Based on the coding element structure and the construction principle of the coding dictionary, the present invention analyzes the matching degree between the current meteorological compression data and the coding dictionary corresponding to the historical meteorological compression data, avoids synchronous transmission of the current coding dictionary and the current meteorological compression data, and relieves the pressure of encoding and transmitting meteorological data on the premise of being able to decode and analyze the current meteorological compression data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of radio coding transmission, and in particular to a method and system for coding and transmitting meteorological data based on Beidou satellites. Background Art

[0002] Meteorological information is vital to human production and life. It can help people understand the natural environment and weather changes, and provide important reference for development decisions in various fields of society. Beidou satellite is a global satellite navigation system that can provide users with high coverage and high reliability communication services around the world. It also supports real-time data transmission and can quickly and accurately transmit meteorological data from meteorological observation stations.

[0003] When using Beidou satellites for meteorological data transmission, meteorological data is usually packaged and processed, and then the lossless data compression algorithm LZW (Lempel-Ziv-Welch) is used to encode, compress and encrypt the meteorological data for transmission. Then, the basic coding dictionary shared by the sender and the receiver is used to decode and analyze the received compressed meteorological data. However, meteorological data may change in real time, and the shared basic coding dictionary may have limited universality or poor implementability, resulting in decoding delays or failures. Therefore, it is usually chosen to synchronously package the compressed meteorological data and the coding dictionary used for encoding and send them to the receiver for subsequent decoding and analysis. However, this will increase the amount of transmitted data, thereby increasing transmission pressure and cost, and increasing the risk of data loss. Summary of the invention

[0004] In order to solve the technical problems of high transmission pressure and risk when encoding and transmitting meteorological data in the prior art, the object of the present invention is to provide a method and system for encoding and transmitting meteorological data based on Beidou satellite. The technical scheme adopted is as follows:

[0005] The present invention proposes a method for encoding and transmitting meteorological data based on Beidou satellite, the method comprising:

[0006] Obtain all historical meteorological compression data and corresponding historical coding dictionaries at the receiving end, and obtain current meteorological compression data to be transmitted at the transmitting end and corresponding current coding dictionaries;

[0007] According to the matching of each current coding element in the current coding dictionary and the historical coding elements in each historical coding dictionary, the matching degree of each current coding element and each historical coding dictionary is obtained; all terminal coding elements in the current coding dictionary are obtained; according to the character length of each current coding element and the composition contribution of each current coding element to all terminal coding elements, the importance of each current coding element is obtained; according to the importance of each current coding element and the corresponding matching degree, the dictionary matching degree of the current coding dictionary and each historical coding dictionary is obtained;

[0008] The current meteorological compressed data is transmitted to a receiving end based on Beidou satellite, and a decoding dictionary of the current meteorological compressed data is screened out from all the historical coding dictionaries according to the dictionary matching degree and decoded.

[0009] Furthermore, the method for acquiring the historical meteorological compressed data, the historical coding dictionary, the current meteorological compressed data and the current coding dictionary includes:

[0010] Obtain meteorological messages under each meteorological element indicator at a preset frequency, compress all meteorological messages within a preset period of time, obtain meteorological compressed data, and the dictionary automatically constructed during the compression process is the corresponding coding dictionary;

[0011] The meteorological compression data obtained at the current moment is taken as the current meteorological compression data, and the corresponding coding dictionary is the current coding dictionary; all meteorological compression data before the current moment is taken as the historical meteorological compression data, and the corresponding coding dictionary of each historical meteorological compression data is the historical coding dictionary.

[0012] Furthermore, the method for obtaining the matching degree includes:

[0013] Traversing and matching each current coding element with all historical coding elements in each of the historical coding dictionaries, and obtaining the maximum matching length of each current coding element in each of the historical coding dictionaries;

[0014] According to the length difference between the character length of each current coding element and the maximum matching length, the matching degree between each current coding element and each historical coding dictionary is obtained; the length difference is negatively correlated with the matching degree.

[0015] Furthermore, the method for obtaining the maximum matching length includes:

[0016] The current coding element and the historical coding element each contain at least one character;

[0017] When the current coding element contains only one character, determine whether there is a historical coding element with the same character as the current coding element in each of the historical coding dictionaries. If so, the maximum matching length is 1, otherwise it is 0;

[0018] When the current coding element contains at least two characters, determine whether there is a historical coding element with the same character corresponding to the current coding element in each of the historical coding dictionaries. If so, the maximum matching length is 1; otherwise, the maximum matching length is obtained by comprehensively analyzing the matching conditions between each character in the current coding element and each historical coding element in the historical coding dictionary.

[0019] Furthermore, the method for obtaining the terminal coding element includes:

[0020] The current coding element that is not included in any current coding element in the current coding dictionary is regarded as the terminal coding element.

[0021] Furthermore, the method for obtaining the importance includes:

[0022] Acquire all path coding elements composed of each of the terminal coding elements; normalize the frequency of the path coding elements with each current coding element as the terminal coding element to obtain a contribution coefficient;

[0023] The importance of each current coding element is obtained according to the character length and the contribution coefficient, and the character length and the contribution coefficient are both positively correlated with the importance.

[0024] Furthermore, the method for obtaining the dictionary matching degree includes:

[0025] The matching degree between each current coding element and each historical coding dictionary is weighted by using the importance of each current coding element to obtain the dictionary matching degree between the current coding dictionary and each historical coding dictionary.

[0026] Furthermore, the compression algorithm for compressing all meteorological messages within a preset time period is an LZW compression algorithm.

[0027] Furthermore, the method for obtaining the decoding dictionary includes:

[0028] The historical encoding dictionary having the greatest dictionary matching degree with the current encoding dictionary is used as a decoding dictionary.

[0029] The present invention also proposes a meteorological data coding and transmission system based on Beidou satellite, the system comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the meteorological data coding and transmission method based on Beidou satellite when executing the computer program.

[0030] The present invention has the following beneficial effects:

[0031] The present invention first obtains all historical meteorological compressed data and all corresponding historical coding dictionaries, and obtains the current meteorological compressed data to be transmitted and the corresponding current coding dictionary, so as to subsequently analyze the matching degree between the current meteorological compressed data and the coding dictionary corresponding to the historical meteorological compressed data; according to the matching of each current coding element in the current coding dictionary and the historical coding element in each historical coding dictionary, the matching degree of each current coding element and each historical coding dictionary is obtained, and the matching degree is based on the characters and string structure in the meteorological message, and the matching similarity between the current coding dictionary and each historical coding dictionary is preliminarily evaluated and analyzed; all terminal coding elements in the current coding dictionary are obtained, so as to reduce the analysis workload in the subsequent analysis of the importance of each current coding element; according to each current coding element The character length of the current coding element and the composition contribution of each current coding element to all terminal coding elements are obtained, and the importance of each current coding element is obtained. Based on the dynamic construction process of the coding dictionary, the reflection of each coding element on the repetitive structure or data pattern of the meteorological compressed data is analyzed to obtain the importance of each current coding element for subsequent decoding analysis; according to the importance of each current coding element and the corresponding matching degree, the dictionary matching degree between the current coding dictionary and each historical coding dictionary is obtained. The greater the dictionary matching degree, the higher the accuracy and efficiency of decoding the current meteorological compressed data by using the historical coding dictionary in the subsequent decoding; based on the Beidou satellite, the current meteorological compressed data is transmitted to the receiving end, and the decoding dictionary of the current meteorological compressed data is screened out from all historical coding dictionaries according to the dictionary matching degree and decoded. The present invention is based on the coding element structure and the construction principle of the coding dictionary, and by analyzing the dictionary matching degree between the current meteorological data and the corresponding coding dictionary of the historical meteorological data, the decoding dictionary of the current meteorological compressed data is screened, and the current coding dictionary and the current meteorological compressed data are avoided to be synchronously transmitted. Under the premise of being able to decode and analyze the current meteorological compressed data, the transmission pressure when encoding and transmitting the meteorological data is relieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0033] Figure 1 A flowchart of a method for encoding and transmitting meteorological data based on Beidou satellites provided by an embodiment of the present invention;

[0034] Figure 2 A schematic diagram of meteorological data encoding and transmission provided by an embodiment of the present invention;

[0035] Figure 3 A flow chart of a method for obtaining a matching degree provided by an embodiment of the present invention;

[0036] Figure 4 A flow chart of a method for obtaining importance provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0037] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of a method and system for encoding and transmitting meteorological data based on Beidou satellites proposed by the present invention, its specific implementation, structure, features and effects, in conjunction with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0038] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0039] The following is a detailed description of a method and system for encoding and transmitting meteorological data based on Beidou satellites provided by the present invention in conjunction with the accompanying drawings.

[0040] The present invention analyzes the dictionary matching degree between the current meteorological data and the corresponding coding dictionaries of the historical meteorological data, thereby screening out the decoding dictionary of the current meteorological compressed data, avoiding the synchronous transmission of the current coding dictionary and the current meteorological compressed data, and alleviating the transmission pressure when encoding and transmitting the meteorological data on the premise of being able to decode and analyze the current meteorological compressed data.

[0041] See also Figure 1 , which shows a flowchart of a method for encoding and transmitting meteorological data based on Beidou satellites provided by an embodiment of the present invention, specifically comprising:

[0042] Step S1, obtaining all historical meteorological compression data and corresponding all historical coding dictionaries at the receiving end, and obtaining current meteorological compression data to be transmitted at the transmitting end and corresponding current coding dictionaries.

[0043] When using Beidou satellites for meteorological data transmission, the Beidou satellite system, as the transmission end, is responsible for compressing and encrypting the collected meteorological data for transmission, while organizations on the ground, such as meteorological centers, meteorological bureaus, scientific research institutions, etc., are responsible for receiving and parsing the collected meteorological data, and studying and issuing meteorological forecasts. The embodiment of the present invention first obtains all historical meteorological compression data and all corresponding historical coding dictionaries at the receiving end, and obtains the current meteorological compression data to be transmitted at the transmission end and the corresponding current coding dictionary, so as to subsequently analyze the matching degree between the current meteorological compression data and the coding dictionary corresponding to the historical meteorological compression data.

[0044] It should be noted that in the scenario targeted by the embodiment of the present invention, the database of the receiving end needs to store historical meteorological data and historical coding dictionaries used for compression coding, so as to analyze and match all historical coding dictionaries to obtain the decoding dictionary of the current meteorological compression data; the database of the receiving end stores at least the historical meteorological data within one month before the current moment, taking one month as 30 days as an example: please refer to Figure 2 , which shows a schematic diagram of meteorological data encoding and transmission provided by an embodiment of the present invention; Figure 2 The historical meteorological data within one month includes the historical meteorological compressed data and its corresponding historical coding dictionary, and the historical meteorological compressed data 721 and 722 obtained later, etc., and their corresponding historical coding dictionaries are obtained by matching, not the coding dictionaries corresponding to themselves during the compression process.

[0045] Preferably, in one embodiment of the present invention, the method for acquiring historical meteorological compressed data, historical coding dictionary, current meteorological compressed data and current coding dictionary comprises:

[0046] Obtain meteorological messages under each meteorological element indicator at a preset frequency, compress all meteorological messages within a preset period of time, obtain meteorological compressed data, and the dictionary automatically constructed during the compression process is the corresponding coding dictionary;

[0047] The meteorological compression data obtained at the current moment is taken as the current meteorological compression data, and the corresponding coding dictionary is the current coding dictionary; all meteorological compression data before the current moment is taken as the historical meteorological compression data, and the corresponding coding dictionary of each historical meteorological compression data is the historical coding dictionary.

[0048] As an example, the hourly moment of each day is used as the collection moment, that is, each hourly moment is the current moment, the preset frequency is every hour, and the preset time period is the time period between two adjacent hourly moments; since the short message function of the Beidou satellite can realize two-way data transmission, it is necessary to collect and obtain meteorological messages under each meteorological element indicator between two adjacent hourly moments, where the meteorological elements at least include temperature, air pressure, precipitation, humidity, wind direction, wind speed, ground temperature, etc. The short messages in each hourly time period are compressed using the LZW compression algorithm to obtain meteorological compressed data. The LZW coding dictionary automatically constructed during the compression process is the coding dictionary corresponding to each meteorological data. Subsequently, the Beidou satellite system is used to transmit the current meteorological compressed data at the current moment to the receiving end on the ground.

[0049] It should be noted that only the current meteorological compressed data is to be transmitted, and the corresponding current coding dictionary is not transmitted together to ease the transmission pressure and cost; but the historical meteorological compressed data within one month and the corresponding historical coding dictionary are transmitted together through the Beidou satellite system and stored at the receiving end; the historical coding dictionary used for subsequent matching analysis is also uniformly transmitted through the Beidou satellite system within this month, that is, the LZW dictionary automatically constructed by the algorithm during the compression process of the historical meteorological compressed data, and does not include the historical coding dictionary obtained by matching.

[0050] It should be noted that obtaining meteorological messages, using the LZW compression algorithm to obtain meteorological compression data and the corresponding coding dictionary are already existing technologies well known to those skilled in the art and will not be elaborated here; in other embodiments of the present invention, the implementer may also define other collection times, preset frequencies and preset time periods, and may also set the types and quantities of meteorological element indicators by themselves; the meteorological messages for each hour may also be further sub-packetized or framed, which is already an existing technology well known to those skilled in the art and will not be elaborated here.

[0051] Step S2, according to the matching of each current coding element in the current coding dictionary and the historical coding elements in each historical coding dictionary, obtain the matching degree of each current coding element with each historical coding dictionary; obtain all terminal coding elements in the current coding dictionary; according to the character length of each current coding element and the composition contribution of each current coding element to all terminal coding elements, obtain the importance of each current coding element; according to the importance of each current coding element and the corresponding matching degree, obtain the dictionary matching degree of the current coding dictionary with each historical coding dictionary.

[0052] After obtaining the historical coding dictionary and the current coding dictionary, the matching degree between the current coding dictionary and the historical coding dictionary can be further analyzed.

[0053] Considering that the principle of the LZW coding compression algorithm is to replace repeated character fragments with shorter codes to achieve data compression; in the process of building the coding dictionary, all possible single characters are initially put into the coding dictionary, and a unique code is assigned to each character; then, the coding dictionary is dynamically generated by gradually expanding the single characters into strings and updating the coding dictionary.

[0054] Considering that meteorological messages in different time periods may be different, the dynamic construction process of the encoding dictionary corresponding to meteorological compressed data of different meteorological messages is also inconsistent; by analyzing the matching degree between different encoding dictionaries, the similarities between character patterns and structures in different meteorological messages can be revealed.

[0055] It should be noted that the coding elements in the coding dictionary are usually a combination of single characters and single characters, that is, in the form of characters and character strings.

[0056] Therefore, the embodiment of the present invention first obtains the matching degree of each current coding element with each historical coding dictionary based on the matching situation of each current coding element in the current coding dictionary and the historical coding elements in each historical coding dictionary; wherein the coding elements and are all characters or character strings in the coding dictionary; the matching degree is based on the character changes and character string structure in the meteorological message, and a matching analysis is performed on each current coding element with the historical coding elements in each historical coding dictionary, and a preliminary evaluation and analysis of the matching similarity between the current coding dictionary and each historical coding dictionary is performed.

[0057] Preferably, in one embodiment of the present invention, the method for obtaining the matching degree includes:

[0058] See also Figure 3 , which shows a flow chart of a method for obtaining a matching degree provided by an embodiment of the present invention;

[0059] Step S301, traverse and match each current coding element with all historical coding elements in each historical coding dictionary, and obtain the maximum matching length of each current coding element in each historical coding dictionary.

[0060] Considering that if the current coding dictionary and the historical coding dictionary have a high degree of match, the current coding elements and the historical coding elements should be able to match accordingly; but since the coding elements not only contain single characters but also strings, for single-character coding elements, if they can match the historical coding characters in the historical coding dictionary, it means that the matching degree between the two dictionaries is high; but for multi-character, i.e., string-type coding elements, there are differences in character combination methods and sequences, so it is necessary to further traverse and match in combination with the character combination situation. The maximum matching length obtained by comprehensively combining all character matching results can preliminarily reflect the matching degree, and the maximum matching length is the comprehensive matching result of a single character.

[0061] The method for obtaining the maximum matching length includes:

[0062] The current encoding element and the historical encoding element both contain at least one character;

[0063] When the current coding element contains only one character, determine whether there is a historical coding element with the same character as the current coding element in each historical coding dictionary. If so, the maximum matching length is 1, otherwise it is 0;

[0064] When the current coding element contains at least two characters, determine whether there is a historical coding element with the same character corresponding to the current coding element in each historical coding dictionary. If so, the maximum matching length is 1. Otherwise, the maximum matching length is obtained by comprehensively matching each character in the current coding element with the historical coding elements in each historical coding dictionary.

[0065] As an example, the current coding elements in the current coding dictionary include {A, B, C, AB, BC, ABC}, and the historical coding elements in a historical coding dictionary include {A, C, D, AC, CD, ACD}. For the current coding element A of a single character, its corresponding longest matching length is 1; for the current coding element AB of multiple characters, there is no directly matching coding element in the historical coding dictionary, so it is split into A and B. For character A, it can correspond to the match, but for B there is no matching historical coding element, then the maximum matching length of the current coding element AB is 1; similarly, the maximum matching length of the current coding element ABC is 2.

[0066] Step S302, obtaining the matching degree between each current coding element and each historical coding dictionary according to the length difference between the character length of each current coding element and the maximum matching length; the length difference is negatively correlated with the matching degree.

[0067] In one embodiment of the present invention, the method for calculating the matching degree is specifically: taking the ratio of the maximum matching length to the corresponding character length as the matching degree; the corresponding calculation formula is: ;in, The first The sequence number of the current encoding element; For the The serial number of a historical coding dictionary; The first The current encoding element and The degree of matching of historical encoding dictionaries; The first The current encoding element is in Maximum match length in a historical encoding dictionary; The first The character length of the current coding element. The ratio of the maximum matching length to the corresponding character length reflects the length difference between the character length and the maximum matching length. The larger the ratio, the smaller the length difference, indicating that all characters in the current coding element can be matched and traced in the historical coding dictionary. The greater the possibility that the current coding element was originally included or subsequently included in the corresponding historical coding dictionary after expansion and update, the greater the corresponding matching degree.

[0068] It should be noted that the character length is the total number of characters in the multi-character encoding element, such as the character length of the current encoding element ABC is 3.

[0069] In other embodiments of the present invention, since the character length is always greater than or equal to the maximum matching length, the implementer may also negatively correlate the difference between the character length and the maximum matching length. The smaller the length difference, the greater the matching degree. Specifically, the difference is used as Map to In the function, the logic is adjusted and normalized; implementers can also use other negative correlation mapping methods, which will not be described here.

[0070] Considering that different coding elements in the current coding dictionary or historical coding dictionary have different representations of character regularities in meteorological messages, the importance of different coding elements in the coding dictionary is different. The longer the character length of the coding element in the coding dictionary, the more likely it is to reflect some repeated content or special complex data patterns in the meteorological message, and the greater its importance in the coding dictionary.

[0071] Considering that coding elements usually contain single characters and multiple characters, multi-character coding elements are usually coding elements based on single characters and updated by single characters or multiple characters. If a coding element is a component of other coding elements, the composition process of all coding elements is regarded as a process of building a tree structure. If a coding element is a non-cotyledon node and the trunk of the tree structure, its importance is greater.

[0072] Therefore, the embodiment of the present invention obtains the importance of each current coding element according to the character length of each current coding element and the composition contribution of each current coding element to all terminal coding elements. Considering that the amount of calculation required to analyze all current coding elements as components of other current coding elements is too large, all terminal coding elements in the current coding dictionary are first obtained. The terminal coding element usually reflects the node path composition process from the root node to the last sub-leaf node in the tree structure. By analyzing the node path composition of each current coding element as a terminal coding element to evaluate its importance, the analysis workload can be greatly reduced.

[0073] Preferably, in one embodiment of the present invention, the method for obtaining the terminal coding element includes:

[0074] The current coding element that is not included in any current coding element in the current coding dictionary is regarded as the terminal coding element.

[0075] As an example, assume that the current coding elements in the current coding dictionary are A, AB, ABC, ABD, and ABCF. Since A, AB, and ABC are respectively included in one or more current coding elements, they are not terminal coding elements; while ABD and ABCF are terminal coding elements, among which the path coding element of the path composed of ABD is A-AB-ABD, and the path coding element of the path composed of ABCF is A-AB-ABC-ABCF.

[0076] Preferably, in one embodiment of the present invention, the method for obtaining importance includes:

[0077] See also Figure 4 , which shows a flow chart of a method for obtaining importance provided by an embodiment of the present invention;

[0078] Step S401, obtaining all path coding elements composed of each terminal coding element; normalizing the frequency of the path coding element with each current coding element as the terminal coding element to obtain a contribution coefficient.

[0079] The path coding element is the path coding element contained in the multi-character component path in the terminal coding element. It has been illustrated in the above-mentioned method for obtaining the terminal coding element and will not be described in detail here.

[0080] The more often the current coding element is the path of the terminal coding element, the more likely it is to be a non-cotyledon node and to be the backbone of the tree structure, and the greater its importance.

[0081] As an example, the current coding elements in the current coding dictionary are A, AB, ABC, ABD, and ABCF. The path coding element of the path composed of the terminal element ABD is A-AB-ABD, and the path coding element of the path composed of ABCF is A-AB-ABC-ABCF. For the current coding element A, its frequency as a path coding element of all terminal coding elements is 2. The frequency is divided by the total number of terminal coding elements for normalization, and the contribution coefficient of the current coding element A is 1. Similarly, for the current coding element ABC, its frequency as a path coding element of all terminal coding elements is 1, and the corresponding contribution coefficient is 1 / 2.

[0082] In other embodiments of the present invention, implementers may also adopt other normalization means, which will not be described here.

[0083] Step S402, obtaining the importance of each current coding element according to the character length and contribution coefficient, wherein the character length and contribution coefficient are both positively correlated with the importance.

[0084] In one embodiment of the present invention, the character length and contribution coefficient of the current coding element are multiplied and combined and then normalized to obtain their importance. In other embodiments of the present invention, the implementer may also use basic mathematical operations such as addition or weighted summation and positive correlation mapping to combine the two, which will not be repeated here.

[0085] After obtaining the importance of each current coding element and the matching degree of each current coding element with each historical coding dictionary, the dictionary matching degree between the current coding dictionary and each historical coding dictionary can be further obtained.

[0086] Preferably, in one embodiment of the present invention, the method for obtaining the dictionary matching degree includes:

[0087] The degree of matching between each current coding element and each historical coding dictionary is weighted by using the importance of each current coding element to obtain the dictionary matching degree between the current coding dictionary and each historical coding dictionary.

[0088] The dictionary matching degree reflects the similarity matching degree of all coding elements in the two coding dictionaries. The greater the similarity matching degree, the higher the decoding accuracy and efficiency when the historical coding dictionary is subsequently used as the decoding dictionary of the current meteorological compressed data. In one embodiment of the present invention, the importance is used as the weight to weight the matching degree and average it to obtain the dictionary matching degree.

[0089] As an example, the dictionary matching degree is calculated as: ;in, is the serial number of the current encoding dictionary; For the The serial number of a historical coding dictionary; The current encoding dictionary and Dictionary matching degree between historical encoding dictionaries; is the sequence number of the current encoding element in the current encoding dictionary; The total number of current encoding elements in the current encoding dictionary; The first the importance of the current coded element; The first The current encoding element and The degree of match of a historical encoding dictionary.

[0090] In another example, the implementer may also use the importance as the weight to perform weighted summation on the matching degree, and normalize the weighted summation result to the maximum and minimum values ​​to obtain the dictionary matching degree; other normalization methods may also be used, which will not be described in detail here.

[0091] Step S3, based on the Beidou satellite, the current meteorological compressed data is transmitted to the receiving end, and the decoding dictionary of the current meteorological compressed data is selected from all historical coding dictionaries according to the dictionary matching degree and decoded.

[0092] Based on steps S1-S2, the dictionary matching degree between the current coding dictionary and each historical coding dictionary can be obtained. Then, after the current meteorological compressed data is transmitted to the receiving end based on the Beidou satellite, the decoding dictionary of the current meteorological compressed data can be screened out from all historical coding dictionaries according to the dictionary matching degree and decoded.

[0093] Preferably, in one embodiment of the present invention, the historical coding dictionary with the greatest dictionary match with the current coding dictionary is used as the decoding dictionary. After obtaining the decoding dictionary, the current meteorological compressed data received by the receiving end can be decoded using the decoding dictionary without receiving the current coding dictionary, thereby facilitating the analysis of meteorological information and forecasting. It should be noted that decoding and analyzing meteorological compressed data using a coding dictionary is a prior art well known to those skilled in the art and will not be described in detail herein.

[0094] In another embodiment of the present invention, after obtaining the decoding dictionary of the current meteorological compressed data, the implementer may also attach the timestamp or serial number of the historical meteorological data corresponding to the decoding dictionary in the receiving end database to the frame header structure of the current meteorological compressed data, so that after receiving the frame header structure timestamp of the current meteorological compressed data, the receiving end database can automatically match the decoding dictionary for automatic decoding and analysis.

[0095] In another embodiment of the present invention, after obtaining the decoding dictionary of the current meteorological compressed data, the implementer may also use the historical coding dictionary corresponding to the decoding dictionary as the initial coding dictionary of the meteorological data at the current moment corresponding to the current meteorological compressed data, compress the meteorological data using the initial coding dictionary and transmit it based on the Beidou satellite system, and then use the historical coding dictionary corresponding to the timestamp, i.e., the decoding dictionary, for decoding analysis.

[0096] In summary, the embodiment of the present invention first obtains all historical meteorological compressed data and corresponding historical coding dictionaries of the receiving end, and obtains the current meteorological compressed data to be transmitted by the transmitting end and the corresponding current coding dictionary; further, according to the importance of each current coding element and the degree of matching between the current coding element and each historical coding dictionary, the dictionary matching degree between the current coding dictionary and each historical coding dictionary is obtained; and then, according to the dictionary matching degree, the decoding dictionary of the current meteorological compressed data is screened out for transmission and decoding. The present invention screens out the decoding dictionary of the current meteorological data by analyzing the matching similarity between the current meteorological data and the corresponding coding dictionary of the historical meteorological data, avoids synchronous transmission of the current coding dictionary and the current meteorological compressed data, and alleviates the transmission pressure when encoding and transmitting the meteorological data on the premise that the current meteorological compressed data can be decoded and analyzed.

[0097] The present invention also proposes a meteorological data coding and transmission system based on Beidou satellite. The system includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of a meteorological data coding and transmission method based on Beidou satellite as described in steps S1 to S3 are implemented.

[0098] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0099] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

Claims

1. A method for encoding and transmitting meteorological data based on Beidou satellite. It is characterized in that The method comprises: Obtain all historical meteorological compression data and corresponding historical coding dictionaries at the receiving end, and obtain current meteorological compression data to be transmitted at the transmitting end and corresponding current coding dictionaries; According to the matching of each current coding element in the current coding dictionary and the historical coding elements in each historical coding dictionary, the matching degree of each current coding element and each historical coding dictionary is obtained; all terminal coding elements in the current coding dictionary are obtained; according to the character length of each current coding element and the composition contribution of each current coding element to all terminal coding elements, the importance of each current coding element is obtained; according to the importance of each current coding element and the corresponding matching degree, the dictionary matching degree of the current coding dictionary and each historical coding dictionary is obtained; Transmitting the current meteorological compressed data to a receiving end based on the Beidou satellite, and selecting a decoding dictionary for the current meteorological compressed data from all the historical coding dictionaries according to the dictionary matching degree and decoding the data; The method for obtaining the terminal coding element includes: The current coding element that is not included in any current coding element in the current coding dictionary is regarded as the terminal coding element; The method for obtaining the importance includes: Acquire all path coding elements composed of each of the terminal coding elements; normalize the frequency of the path coding elements with each current coding element as the terminal coding element to obtain a contribution coefficient; Obtaining the importance of each current coding element according to the character length and the contribution coefficient, wherein the character length and the contribution coefficient are both positively correlated with the importance; The method for obtaining the dictionary matching degree includes: The matching degree between each current coding element and each historical coding dictionary is weighted by using the importance of each current coding element to obtain the dictionary matching degree between the current coding dictionary and each historical coding dictionary.

2. A method for encoding and transmitting meteorological data based on Beidou satellite according to claim 1, It is characterized in that The method for acquiring the historical meteorological compressed data, the historical coding dictionary, the current meteorological compressed data and the current coding dictionary comprises: Obtain meteorological messages under each meteorological element indicator at a preset frequency, compress all meteorological messages within a preset period of time, obtain meteorological compressed data, and the dictionary automatically constructed during the compression process is the corresponding coding dictionary; The meteorological compression data obtained at the current moment is taken as the current meteorological compression data, and the corresponding coding dictionary is the current coding dictionary; all meteorological compression data before the current moment is taken as the historical meteorological compression data, and the corresponding coding dictionary of each historical meteorological compression data is the historical coding dictionary.

3. The method for encoding and transmitting meteorological data based on Beidou satellite according to claim 1, It is characterized in that The method for obtaining the matching degree includes: Traversing and matching each current coding element with all historical coding elements in each of the historical coding dictionaries, and obtaining the maximum matching length of each current coding element in each of the historical coding dictionaries; According to the length difference between the character length of each current coding element and the maximum matching length, the matching degree between each current coding element and each historical coding dictionary is obtained; the length difference is negatively correlated with the matching degree.

4. The method for encoding and transmitting meteorological data based on Beidou satellite according to claim 3, It is characterized in that The method for obtaining the maximum matching length includes: The current coding element and the historical coding element each contain at least one character; When the current coding element contains only one character, determine whether there is a historical coding element with the same character as the current coding element in each of the historical coding dictionaries. If so, the maximum matching length is 1, otherwise it is 0; When the current coding element contains at least two characters, determine whether there is a historical coding element with the same character corresponding to the current coding element in each of the historical coding dictionaries. If so, the maximum matching length is 1; otherwise, the maximum matching length is obtained by comprehensively analyzing the matching conditions between each character in the current coding element and each historical coding element in the historical coding dictionary.

5. The method for transmitting meteorological data encoded by Beidou satellite according to claim 2, It is characterized in that The compression algorithm used to compress all meteorological messages within a preset time period is the LZW compression algorithm.

6. The method for encoding and transmitting meteorological data based on Beidou satellite according to claim 1, It is characterized in that The method for obtaining the decoding dictionary includes: The historical encoding dictionary having the greatest dictionary matching degree with the current encoding dictionary is used as a decoding dictionary.

7. A meteorological data coding transmission system based on Beidou satellite, It is characterized in that The system includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of a Beidou satellite-based meteorological data coding and transmission method as described in any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Coding and decoding speed optimization method for LZ series compression algorithm

    CN114244373A

  • Maritime safety information efficient lossless compression system and method based on Beidou short message

    CN117459069A

  • Comprehensive energy data management system based on Internet of Things

    CN117896442A

  • Hybrid compression for large history compressors

    US20170192708A1

  • Static dictionary-based compression hardware pipeline for data compression accelerator of a data processing unit

    US20200169268A1