[go: up one dir, main page]

CN109302187A - A data compression method for latent standard temperature, salinity and depth data - Google Patents

A data compression method for latent standard temperature, salinity and depth data Download PDF

Info

Publication number
CN109302187A
CN109302187A CN201811009146.7A CN201811009146A CN109302187A CN 109302187 A CN109302187 A CN 109302187A CN 201811009146 A CN201811009146 A CN 201811009146A CN 109302187 A CN109302187 A CN 109302187A
Authority
CN
China
Prior art keywords
array
data
integer
salinity
temperature
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
CN201811009146.7A
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.)
Ocean University of China
Original Assignee
Ocean University of China
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 Ocean University of China filed Critical Ocean University of China
Priority to CN201811009146.7A priority Critical patent/CN109302187A/en
Publication of CN109302187A publication Critical patent/CN109302187A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M7/00Conversion of a code where information is represented by a given sequence or number of digits to a code where the same, similar or subset of information is represented by a different sequence or number of digits
    • H03M7/30Compression; Expansion; Suppression of unnecessary data, e.g. redundancy reduction
    • H03M7/3059Digital compression and data reduction techniques where the original information is represented by a subset or similar information, e.g. lossy compression
    • H03M7/3064Segmenting
    • 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
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

本发明公开了一种针对潜标温盐深数据的数据压缩方法,该方法包括如下两个步骤:第一、通过类型转换预处理操作,将温盐深数据从浮点型数据表示转换为用正的整型数据表示,并保存相应数据的符号信息;第二、通过位拼接操作,将整型数据中的部分0位删除,同时将数据元素按照既定格式与顺序存储,并保存数据恢复所需的信息。该方法可以嵌入潜标主控程序当中,在不增加过多运算负担的前提下实现了潜标数据的高效压缩,提升了潜标数据回传的通信效率,减少了每次数据通信所需的数据发送次数,降低了潜标系统的功耗。

The invention discloses a data compression method for latent standard temperature, salinity and depth data. The method includes the following two steps: first, through a type conversion preprocessing operation, the temperature, salt and depth data is converted from floating-point data representation to The positive integer data is represented, and the symbol information of the corresponding data is saved; secondly, through the bit splicing operation, some 0 bits in the integer data are deleted, and the data elements are stored in the predetermined format and order, and the data recovery information is saved. required information. The method can be embedded in the main control program of the submerged bait, realizes the efficient compression of the bait data without increasing too much computational burden, improves the communication efficiency of the backhaul of the bait data, and reduces the time required for each data communication. The number of data transmissions reduces the power consumption of the submarine system.

Description

A kind of data compression method for subsurface buoy thermohaline depth data
Technical field
The present invention relates to a kind of data compression methods for subsurface buoy thermohaline depth data.
Background technique
Real time communication subsurface buoy can be obtained a large amount of observation data by sensing system, be in the case where long-term on duty Realize the real-time, interactive of data, these data are generally back to bank station end by way of satellite communication or wireless communication.? In real time communication subsurface buoy data transmission procedure, there is a problem of since data volume data transmission efficiency caused greatly is low.Cause This, the compression method design of subsurface buoy data just becomes extremely necessary.
Common data compression method is divided into lossless and damages two kinds of coding compress modes, in which:
Lossless coding compression refers to that compressed data restores by communication protocol decoding with corresponding data at stay of two nights end Method can be completely reduced as initial data.This compression method is common to be compiled including Huffman coding, LZW coding, the distance of swimming Code etc..Its principle is generally the data element that the frequency of occurrences in initial data is high, with fixed, short character or other classes Type data element substitution, conversely, for the low data element of the frequency of occurrences then with longer data element substitution.
Lossy coding compress mode refers to that compressed data cannot be restored completely by data reconstruction method, is guaranteeing centainly The distortion factor under the premise of, lose certain data volume.The principle of this method can be effectively transmitted in guarantee data information Under the premise of, loss data volume as much as possible, to achieve the purpose that promote data volume.General this compress mode can Obtain higher compression ratio, Digital Image Transmission with it is relatively common in transmission of speech information.
In the data compression applications of oceanographic observation subsurface buoy, in order to guarantee the accuracy of data, lossless data is generally used The general lossless compression-encodings such as compressed encoding, including Huffman coding, LZW coding and Run- Length Coding.General lossless compression is compiled Code method does not carry out specific aim optimization for subsurface buoy data, and contraction principle is for character frequency of occurrence in statistical data and to word Symbol recompiles, and the character high to frequency of occurrence assigns length shorter code word, and character lower for frequency of occurrence is grown Longer code word is spent, transmits information by way of transmitting encoding binary tree and compressed encoding.In subsurface buoy thermohaline depth data, word It is more average to accord with the frequency of occurrences, and character type is more, therefore the encoding binary tree formed is excessive, it is inadequate in thermohaline depth data volume The compression effectiveness obtained in the case where big is not ideal enough.The compression ratio that can reach in practical applications is lower, generally in 10%- Between 35%.
Summary of the invention
It is an object of the invention to propose a kind of data compression method for subsurface buoy thermohaline depth data, guaranteeing data Under the premise of accuracy, so that the compression ratio of subsurface buoy thermohaline depth data is promoted.
The present invention to achieve the goals above, adopts the following technical scheme that
A kind of data compression method for subsurface buoy thermohaline depth data, includes the following steps:
S1. it pre-processes
S1.1. subsurface buoy thermohaline depth data are read and are stored in initial data array, acquire data format according to sensor Temperature, salinity and the depth data that will be extracted respectively in array, independently form temperature array, salinity array and depth array;
S1.2. phase is expanded to temperature array, salinity array and depth array with depth data resolution ratio according to temperature, salinity Answer multiple;
S1.3. forced type conversion operation is carried out to the element in temperature array, salinity array and depth array, from floating-point Type data are converted to integer data, are respectively stored in temperature integer array, salinity integer array and depth integer array;
S1.4. the symbolic information of the element in temperature integer array is read, and is stored in symbol array;
S1.5. it takes absolute value to all elements in temperature integer array;
S1.6. to the data element in temperature integer array, salinity integer array and depth integer array with its resolution ratio Inverse be that divisor carries out rounding operation and complementation, by the fractional part of initial data and integer part respectively with integer According to presentation;
Wherein, the integer part of initial data is obtained by rounding operation, the integer part of three kinds of data is stored in same In a integer part array;Data are respectively stored in temperature number by the fractional part that three kinds of data are obtained by complementation According in fractional part array, Salinity Data fractional part array and depth data fractional part array;
S2. position is spliced
Respectively to integer part array, temperature data fractional part array, Salinity Data fractional part array, depth data Fractional part array and symbol array carry out position splicing, and the position splicing of each integer array is as follows:
S2.1. by traversing the element of each array, the greatest member in array is found, is defined and is spliced according to greatest member Width;
S2.2. by carrying out shifting function to array element, the deletion in vacancy and the splicing of element is realized, splicing number is obtained Group;
Compressed integer part array, compressed temperature data fractional part are respectively obtained by upper rheme splicing Fraction set, compressed Salinity Data fractional part array and compressed depth data fractional part array;
Compressed data frame format is splicing width array, compressed integer part array, compressed temperature number According to fractional part array, compressed Salinity Data fractional part array, compressed depth data fractional part array and symbol Number group;
Wherein, splicing width array memory space shared by each data block in frame for storing data, it is extensive for data It is multiple.
Preferably, the step s2.2 specifically: carry out shift operation since first element, and be assigned to splicing number Then first element of group carries out shifting function to further element and is successively added on previous element.
Preferably, in the step s2.2, following principle is followed when carrying out shifting function to array element:
The remaining space of splicing array element is judged before splicing each time, if it is wide to be large enough to hold a splicing Degree, then move to left n for element to be spliced, be added on corresponding splicing array element;If it is inadequate to splice array element remaining space A splicing width is accommodated, then low n of element to be spliced is intercepted out and then moves to left m-n and be assigned to next splicing Then array element moves to right corresponding digit to element to be spliced, be added on the splicing corresponding element of array;
Wherein, m be splice each element of array occupy-place number, n by splicing width and array remaining space relativeness It determines.
The present invention has the advantage that
1, position joining method is easily achieved and safeguards in subsurface buoy application, can be by way of being embedded in subsurface buoy main control software Realize application of the data compression function in submerged buoy system.
2, in subsurface buoy data compression, position joining method is higher compared to the compression ratio of universal compressed method, for subsurface buoy temperature Salt depth data, may be implemented 40% or more compression ratio.
3, in the application of real time communication subsurface buoy, by using the compression method, system communication efficiency can be greatly promoted, is subtracted The work times of few communication module and then the reduction for realizing overall power consumption.
Detailed description of the invention
Fig. 1 is in the present invention for the schematic diagram of the data compression method of subsurface buoy thermohaline depth data;
Fig. 2 is that type converts pretreating effect schematic diagram in the embodiment of the present invention;
Fig. 3 is position concatenation schematic diagram in the embodiment of the present invention;
Fig. 4 is data frame format and splicing width array schematic diagram in the embodiment of the present invention;
Fig. 5 is data compressing module program flow diagram in the embodiment of the present invention;
Fig. 6 is that type converts pretreatment process figure in the embodiment of the present invention;
Fig. 7 is that flow chart is spliced in position in the embodiment of the present invention.
Specific embodiment
Basic ideas of the invention are as follows:
1, subsurface buoy thermohaline depth data are with single-precision floating point type data format (IEEE754) storage, before compression processing, first It is pre-processed, is intercepted the integer part of data and fractional part according to the resolution ratio of temperature, depth and Salinity Data It is converted with type, converts data to integer data, the integer of formation temperature data symbol array (Boolean type), all data Part array (integer) and temperature, depth, the fractional part array (integer) of Salinity Data.
This step operation can reduce the flops of subsequent operation, reduce the operation pressure of subsurface buoy main control chip.
2, after executing completion data prediction, the compression processing of data is carried out, splicing of ascending the throne, principle is to delete Except redundancy 0 between integer array element.In compression process, record concatenation width information is needed, splicing width refers to Digit shared by greatest member in each array parses to bank station end data and restores.Bank station end data parsing with it is extensive It is multiple, using the splicing width information recorded in data compression process, data recovery operation is carried out to each compressed data.
Wherein, the subsurface buoy thermohaline depth data in the embodiment of the present invention specifically refer to three kinds of temperature, salinity and depth data.
It is proposed that the theoretical foundation of above-mentioned basic ideas is:
Data compression method proposed by the present invention is suitable for subsurface buoy thermohaline depth data, and the storage format of this data is using single Precision float format (IEEE754) storage, the resolution ratio of temperature, salinity and depth is respectively 0.0001 DEG C, 0.00001S/m With the 0.002% of pressure full scale.It is same as the lower data of resolution ratio suitable using the storage of IEEE754 format for others With.
It is that the memory mappings such as positive integer, character type data will not be because being superimposed small variation that position joining method, which is suitable for data type, Measure and generate the data of acute variation.And the data type of thermohaline depth data is floating type, it is therefore desirable to which, by pretreatment, use is whole Type data are indicated initial data, then carry out position concatenation to integer data.
In addition, for negative integer data, due to variable quantity equally can to causing to vary widely on its memory mapping, It needs individually to store the symbolic information of data.Then, the data compression method in the present invention is divided into two steps, such as Fig. 5 institute Show:
The first, pretreatment operation is converted by type, thermohaline depth data is converted to from real-coded GA expression with positive Integer data indicates, and saves the symbolic information of corresponding data;
The second, by position concatenation, by the deletion of part 0 in integer data, while by data element according to set Format and sequential storage, and save the information needed for data are restored.
With reference to the accompanying drawing and specific embodiment invention is further described in detail:
As shown in Figure 1, a kind of data compression method for subsurface buoy thermohaline depth data, includes the following steps:
S1. it pre-processes
Pretreatment refers to that, for the type conversion of initial data and deconsolidation process, position splicing data compression method is needed to original Data carry out type conversion, and it is to convert raw data into positive integer data that type, which converts pretreated purpose, in order to position Concatenation.
As shown in fig. 6, illustrating preprocessing process with certain collection process subsurface buoy thermohaline depth data instance:
S1.1. temperature, salinity and pressure array are constructed
It reads subsurface buoy thermohaline depth data and is stored in initial data array, buoy [220]=21.1807,5.551, 2.63212,……,4.58742}.Temperature, salinity and the depth that will be extracted respectively in array according to sensor acquisition data format Data independently form temperature array mid_t, salinity array mid_c and depth (pressure) array mid_d.
S1.2. according to data resolution, corresponding multiple is expanded to array mid_t, mid_c, mid_d
For example, the resolution ratio of temperature is 0.0001 DEG C, temperature array mid_t element is expanded 10000 times;
The resolution ratio of salinity is 0.00001S/m, and salinity array mid_c element is expanded 100000 times;
The resolution ratio of depth is 0.002%, and depth array mid_d element is expanded 1000 times.
S1.3. type is converted
Forced type conversion is carried out to the element in temperature array mid_t, salinity array mid_c and depth array mid_d Operation, is converted to integer data from real-coded GA, and be respectively stored in temperature integer array mid_i_t, salinity integer array In mid_i_c and depth integer array mid_i_d.
S1.4. temperature data symbol is read
Since temperature data ranges are -5~35 degrees Celsius, it is therefore desirable to by the symbol of temperature integer array mid_i_t element Number information is stored in symbol array temp_sgn.Salinity and pressure data perseverance are positive number, therefore do not need to read symbol letter Breath.
S1.5. it takes absolute value to data
It takes absolute value to all elements in temperature integer array mid_i_t.
S1.6. data are split
To the number in temperature integer array mid_i_t, salinity integer array mid_i_c and depth integer array mid_i_d Rounding operation and complementation are carried out by divisor of the inverse of its resolution ratio according to element.
The fractional part of initial data and integer part are presented respectively with integer data.Wherein, it is obtained by rounding operation The integer part of initial data is taken, the integer part of three kinds of data is stored in the same integer part array buoy_i;It is logical The fractional part that complementation obtains three kinds of data is crossed, since the resolution ratio of three classes data is different, the fractional part taken out Size be different, in order to obtain higher compression ratio in splicing in place, the data of taking-up are respectively stored in temperature Data fractional part array buoy_t, Salinity Data fractional part array buoy_c, depth data fractional part array buoy_d In the middle.
As shown in Fig. 2, initial data is finally obtained symbol array, integer portion by s1.1 to s1.6 step operation Fraction set and three groups of fractional part arrays, wherein symbolic information array tem_sgn is Boolean type, remaining is integer and data element Element is positive number.Such as temperature data element mid_t [0]=21.1807, after s1.2 to s1.6 step operation It will be split as the symbolic variable 0 of two integer datas 21 and 1807 and a Boolean type.
By after pretreatment operation, original real-coded GA is converted into integer data and by the whole of initial data Number part is stored separately with fractional part.On the basis of these arrays, next step concatenation can be carried out.
S2. position is spliced
Respectively to integer part array buoy_i, temperature data fractional part array buoy_t, Salinity Data fractional part Array buoy_c and depth data fractional part array buoy_d and symbol array temp_sgn carry out position splicing.
In splicing in place, if to obtain highest compression ratio, the vacancy of each element can be deleted and then be spelled It connects, but will increase data in this way and restore information, lose more than gain.Therefore it needs to be grouped data according to the order of magnitude, using up can Data volume transmitting data that can be few restore information.In order to obtain higher compression ratio, according to temperature, salt, deep data resolution ratio, will Array is grouped according to the overall quantity grade of array element.In these arrays, integer part array buoy_i element compares Smaller, the order of magnitude is below 102;In fractional part array, data are judged according to the resolution ratio of temperature, salinity and pressure data Descending element entirety numerical value is respectively buoy_c, buoy_t and buoy_d, the number of the overall data element of array buoy_c Magnitude is 105, the number data elements grade of buoy_t is 104, the buoy_d order of magnitude is 103
According to the grouping of the above order of magnitude, position concatenation is carried out to each array respectively.
The principle and operating procedure of position splicing are as shown in figure 3, mainly include two steps:
S2.1. by traversing the element of each array, the greatest member in array is found, is defined and is spliced according to greatest member Width.Such as array a, greatest member 10, therefore splicing width is 4.
S2.2. by carrying out shifting function to array element, the deletion in vacancy and the splicing of element is realized, splicing number is obtained Group.Array to be spliced for one carries out shift operation since first element, and is assigned to first member of splicing array Then element carries out shifting function to further element and is successively added on previous element.
During shift operation, there are two key points: 1) judging direction of displacement and mobile digit;2) splicing In element overflow problem, i.e., the space of some element can not accommodate next splicing element in splicing array.
In order to solve above-mentioned two problems, following principle is followed when carrying out shifting function to array element:
The remaining space of splicing array element is judged before splicing each time, if it is wide to be large enough to hold a splicing Degree, then move to left n for element to be spliced, be added on corresponding splicing array element;If it is inadequate to splice array element remaining space A splicing width is accommodated, then low n of element to be spliced is intercepted out and then moves to left m-n and be assigned to next splicing Then array element moves to right corresponding digit to element to be spliced, be added on the splicing corresponding element of array;
Wherein, m be splice each element of array occupy-place number, n by splicing width and array remaining space relativeness It determines.
It is illustrated by taking the shifting function of depth data fractional part array buoy_d as an example:
1. array is traversed, with maximum value definition splicing width u, the splicing array sd_d in array.
For example, greatest member value is 468 in array buoy_d, number of significant digit accounts for 9, defines 8 unsigned int splicings Width variance u=9;Buoy_d totally 44 elements, therefore spliced data volume is 396, splicing array is defined as int number Group, each element account for 32, and array size 13, all elements set 0.
2. realizing the deletion in vacancy and the splicing of element by the shifting function to array element.
As shown in figure 3, array to be spliced for one, carries out shift operation, and be assigned to spelling since first element First element of array is connect, shifting function then is carried out to further element and is sequentially added on previous element.
During shift operation, there are two key points: 1) judging direction of displacement and mobile digit;2) splicing In element overflow problem, solution aiming at the problem that the two is as shown in Figure 7.Such as the splicing in array buoy_d Cheng Zhong, buoy_d [0] occupy first 27 of splicing first element sd_d [0] of array to buoy_d [2], and remaining 5 are not Next element buoy_d [3] can be accommodated, it is therefore desirable to this element is divided into two parts, low 4 for reading element first assign To sd_d [1] and 28 are moved to left, buoy_d [3] is then moved to right 4 and is added on sd_d [0].
It is small that compressed integer part array sd_i, compressed temperature data are respectively obtained by upper rheme splicing Number part array sd_t, compressed Salinity Data fractional part array sd_c and compressed depth data fractional part array sd_d。
These arrays will be treated as following components by position concatenation: (1) splicing width array u, for remembering Record the splicing width used in each array concatenation in place, the recovery for data;(2) the spliced thermohaline depth data in position Sd_i, sd_d, sd_t, sd_c are arranged according to the data format of regulation, and specific data frame format is as shown in Figure 4.
At bank station end, needs to carry out data recovery for position splicing, be believed according to the data saved in the splicing of position Breath and the format of prespecified data arrangement carry out.Data to be saved is needed to restore information in the splicing of position wide for splicing Degree group, data type uint_8, the information that array element represents are as shown in Figure 4.
Data compression method in the embodiment of the present invention can be embedded in subsurface buoy primary control program, not increase excessive fortune The Efficient Compression that subsurface buoy data are realized under the premise of calculating burden, improves the communication efficiency of subsurface buoy data back, reduces every Data transmission times needed for secondary data communication, reduces the power consumption of submerged buoy system.
Certainly, described above is only that presently preferred embodiments of the present invention is answered the present invention is not limited to enumerate above-described embodiment When explanation, anyone skilled in the art is all equivalent substitutes for being made, bright under the introduction of this specification Aobvious variant, all falls within the essential scope of this specification, ought to be by protection of the invention.

Claims (3)

1.一种针对潜标温盐深数据的数据压缩方法,其特征在于,包括如下步骤:1. a data compression method for latent standard temperature and salinity data, is characterized in that, comprises the steps: s1.预处理s1. Preprocessing s1.1.读取潜标温盐深数据并存储在原始数据数组中,按照传感器采集数据格式将分别提取数组中的温度、盐度与深度数据,单独形成温度数组、盐度数组与深度数组;s1.1. Read the submerged standard temperature, salinity and depth data and store it in the original data array. According to the data format collected by the sensor, the temperature, salinity and depth data in the array will be extracted respectively, and the temperature array, salinity array and depth array will be formed separately. ; s1.2.根据温度、盐度与深度数据分辨率对温度数组、盐度数组与深度数组扩大相应倍数;s1.2. Expand the temperature array, salinity array and depth array by corresponding multiples according to the resolution of temperature, salinity and depth data; s1.3.对温度数组、盐度数组与深度数组中的元素进行强制类型转换操作,从浮点型数据转换为整型数据,分别存储在温度整型数组、盐度整型数组和深度整型数组中;s1.3. Perform mandatory type conversion on the elements in the temperature array, salinity array and depth array, convert from floating point data to integer data, and store them in the temperature integer array, salinity integer array and depth integer respectively. in an array of type; s1.4.读取温度整型数组中的元素的符号信息,并存储在符号数组当中;s1.4. Read the symbol information of the elements in the temperature integer array and store it in the symbol array; s1.5.对温度整型数组中的所有元素取绝对值;s1.5. Take the absolute value of all elements in the temperature integer array; s1.6.对温度整型数组、盐度整型数组和深度整型数组中的数据元素以其分辨率的倒数为除数进行取整运算和取余运算,将原始数据的小数部分和整数部分分别以整型数据呈现;s1.6. Perform rounding and remainder operations on the data elements in the temperature integer array, salinity integer array and depth integer array with the inverse of the resolution as the divisor, and convert the fractional part and integer part of the original data Respectively presented as integer data; 其中,通过取整运算获取原始数据的整数部分,三种数据的整数部分存储在同一个整数部分数组当中;通过取余运算获得三种数据的小数部分,将数据分别存储在温度数据小数部分数组、盐度数据小数部分数组和深度数据小数部分数组中;Among them, the integer part of the original data is obtained through the rounding operation, and the integer parts of the three kinds of data are stored in the same integer part array; the decimal part of the three kinds of data is obtained through the remainder operation, and the data are stored in the temperature data fractional part arrays respectively , in the fractional part array of salinity data and the fractional part array of depth data; s2.位拼接s2. Bit splicing 分别对整数部分数组、温度数据小数部分数组、盐度数据小数部分数组、深度数据小数部分数组和符号数组进行位拼接,各个整型数组的位拼接过程如下:The integer part array, the temperature data fractional part array, the salinity data fractional part array, the depth data fractional part array and the symbol array are bit spliced respectively. The bit splicing process of each integer array is as follows: s2.1.通过遍历每个数组的元素,找到数组内的最大元素,根据最大元素定义拼接宽度;s2.1. By traversing the elements of each array, find the largest element in the array, and define the splicing width according to the largest element; s2.2.通过对数组元素进行移位操作,实现空位的删除和元素的拼接,得到拼接数组;s2.2. By shifting the elements of the array, the deletion of the vacancy and the splicing of the elements are realized, and the spliced array is obtained; 通过上述位拼接过程分别得到压缩后的整数部分数组、压缩后的温度数据小数部分数组、压缩后的盐度数据小数部分数组和压缩后的深度数据小数部分数组;A compressed integer part array, a compressed temperature data fractional part array, a compressed salinity data fractional part array, and a compressed depth data fractional part array are obtained through the above-mentioned bit splicing process; 压缩后的数据帧格式为拼接宽度数组、压缩后的整数部分数组、压缩后的温度数据小数部分数组、压缩后的盐度数据小数部分数组、压缩后的深度数据小数部分数组和符号数组;The format of the compressed data frame is stitching width array, compressed integer part array, compressed temperature data fractional part array, compressed salinity data decimal part array, compressed depth data fractional part array and symbol array; 其中,拼接宽度数组用于存储数据帧中每个数据块所占的存储空间,用于数据恢复。Among them, the splicing width array is used to store the storage space occupied by each data block in the data frame for data recovery. 2.根据权利要求1所述的针对潜标温盐深数据的数据压缩方法,其特征在于,2. the data compression method for latent standard temperature and salinity data according to claim 1, is characterized in that, 所述步骤s2.2具体为:从第一个元素开始进行移位运算,并赋值给拼接数组的第一个元素,然后对后续元素进行移位操作依次添加到前一个元素上。The step s2.2 is specifically: performing a shift operation from the first element, assigning the value to the first element of the spliced array, and then performing a shift operation on subsequent elements and adding them to the previous element in turn. 3.根据权利要求2所述的针对潜标温盐深数据的数据压缩方法,其特征在于,3. the data compression method for latent standard temperature and salinity data according to claim 2, is characterized in that, 所述步骤s2.2中,对数组元素进行移位操作时遵循如下原则:In the step s2.2, the following principles are followed when performing the shift operation on the array elements: 每一次拼接之前对拼接数组元素的剩余空间进行判断,若足够容纳一个拼接宽度,则将待拼接元素左移n位,加到对应的拼接数组元素上;若拼接数组元素剩余空间不够容纳一个拼接宽度,则将待拼接元素的低n位截取出来之后,再左移m-n位赋给下一个拼接数组元素,然后对待拼接元素右移相应位数,加到拼接数组相应的元素上;Before each splicing, the remaining space of the splicing array elements is judged. If it is enough to accommodate a splicing width, the element to be spliced is shifted to the left by n bits and added to the corresponding splicing array elements; if the remaining space of the splicing array elements is not enough to accommodate one splicing width, then cut out the low n bits of the element to be spliced, then move m-n bits to the left to assign the next element of the spliced array, and then shift the element to be spliced right by the corresponding number of bits, and add it to the corresponding element of the spliced array; 其中,m为拼接数组每个元素的占位数,n由拼接宽度与数组剩余空间的相对关系确定。Among them, m is the occupancy of each element of the splicing array, and n is determined by the relative relationship between the splicing width and the remaining space of the array.
CN201811009146.7A 2018-08-31 2018-08-31 A data compression method for latent standard temperature, salinity and depth data Pending CN109302187A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811009146.7A CN109302187A (en) 2018-08-31 2018-08-31 A data compression method for latent standard temperature, salinity and depth data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811009146.7A CN109302187A (en) 2018-08-31 2018-08-31 A data compression method for latent standard temperature, salinity and depth data

Publications (1)

Publication Number Publication Date
CN109302187A true CN109302187A (en) 2019-02-01

Family

ID=65165755

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811009146.7A Pending CN109302187A (en) 2018-08-31 2018-08-31 A data compression method for latent standard temperature, salinity and depth data

Country Status (1)

Country Link
CN (1) CN109302187A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111486888A (en) * 2020-04-14 2020-08-04 新石器慧通(北京)科技有限公司 Error correction method and device and unmanned vehicle
CN113918541A (en) * 2021-12-13 2022-01-11 广州市玄武无线科技股份有限公司 Preheating data processing method and device and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101692609A (en) * 2009-10-13 2010-04-07 上海优途信息科技有限公司 Road condition data compression decompression method and equipment thereof
US20120224630A1 (en) * 2001-01-09 2012-09-06 Wen-Hsiao Peng Method and apparatus for providing prediction mode fine granularity scalability
CN103210590A (en) * 2012-08-21 2013-07-17 华为技术有限公司 Compression method and apparatus
US20160357777A1 (en) * 2014-01-02 2016-12-08 Frank Eichinger Efficiently Query Compressed Time-Series Data in a Database
US20170060934A1 (en) * 2015-09-02 2017-03-02 Pure Storage, Inc. Modifying a compressed block of data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120224630A1 (en) * 2001-01-09 2012-09-06 Wen-Hsiao Peng Method and apparatus for providing prediction mode fine granularity scalability
CN101692609A (en) * 2009-10-13 2010-04-07 上海优途信息科技有限公司 Road condition data compression decompression method and equipment thereof
CN103210590A (en) * 2012-08-21 2013-07-17 华为技术有限公司 Compression method and apparatus
US20160357777A1 (en) * 2014-01-02 2016-12-08 Frank Eichinger Efficiently Query Compressed Time-Series Data in a Database
US20170060934A1 (en) * 2015-09-02 2017-03-02 Pure Storage, Inc. Modifying a compressed block of data

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
单海艳: "CTD海洋观测数据多重压缩加密算法设计", 《海岸工程》 *
王军成: "《海洋资料浮标原理与工程》", 31 December 2013 *
王文彦等: "数据压缩技术在海洋资料浮标通信系统中的应用", 《海洋科技与装备》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111486888A (en) * 2020-04-14 2020-08-04 新石器慧通(北京)科技有限公司 Error correction method and device and unmanned vehicle
CN113918541A (en) * 2021-12-13 2022-01-11 广州市玄武无线科技股份有限公司 Preheating data processing method and device and computer readable storage medium

Similar Documents

Publication Publication Date Title
US6253264B1 (en) Coding network grouping data of same data type into blocks using file data structure and selecting compression for individual block base on block data type
CA2645354C (en) Database adapter for compressing tabular data partitioned in blocks
EP2734980B1 (en) Method for adaptive entropy coding of tree structures
US5532694A (en) Data compression apparatus and method using matching string searching and Huffman encoding
EP2083560B1 (en) Image signal coding method and decoding mehod, information source coding method and decoding mehod, devices for them, their programs, and memory medium with recorded program
EP2034738B1 (en) Data compression apparatus and method
CN110021369B (en) Gene sequencing data compression and decompression method, system and computer readable medium
CN101783788A (en) File compression method, file compression device, file decompression method, file decompression device, compressed file searching method and compressed file searching device
KR20090025886A (en) Data Compression and Restoration Apparatus and Method
CN116016606B (en) Sewage treatment operation and maintenance data efficient management system based on intelligent cloud
CN105391454A (en) DNA sequencing quality score lossless compression method
JPS6356726B2 (en)
CN117177100B (en) Intelligent AR polarized data transmission method
CN109302187A (en) A data compression method for latent standard temperature, salinity and depth data
CN116051156B (en) A new energy dynamic electricity price data management system based on digital twin
US6748520B1 (en) System and method for compressing and decompressing a binary code image
CN105631000A (en) Terminal-caching data compression method based on mobile terminal position characteristic information
CN117156014B (en) Engineering cost data optimal storage method and system
CN111274950A (en) Feature vector data encoding and decoding method, server and terminal
Rajput et al. Comparative study of data compression techniques
US10931303B1 (en) Data processing system
CN118399976B (en) Remote monitoring method and system for equipment operation data
CN116405037B (en) Astronomical star table-oriented compression preprocessing encoder and application
CN115190182B (en) Data lossless compression method, device and equipment suitable for Beidou system
CN115514967B (en) Image compression method and image decompression method based on binary block bidirectional coding

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190201