Data type-based numeric data compression and decompression method
A data type and data compression technology, applied in image data processing, instruments, computing, etc., can solve the problems of difficult and high requirements of data compression methods, and achieve the effect of small storage capacity, high compression rate, and reduced data storage capacity
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Publication Date
- 2012-01-11
- Estimated Expiration
- Not applicable · inactive patent
Smart Images
Figure 1 Figure 2
Abstract
Description
technical field
[0001] The invention relates to a data compression and decompression method, in particular to a data type-based numerical data compression and decompression method. Background technique
[0002] At present, there are many mature data compression methods for the digitalization of analog information and digital data. For example, the application number 200510000589.6 discloses a method for quickly compressing and decompressing images, which mainly performs simplified processing on some image parts with special characteristics to achieve the purpose of increasing the processing speed. The application number is 200510115119.4, which discloses a real-time data compression method for compressing packet data in a process control system. The method includes: initializing a dictionary, initializing characters that may appear during the compression process into the dictionary; reading in values; The difference is obtained by subtracting the adjacent data of the real-t...
Examples
Embodiment 1
[0062] Embodiment 1: Application of data compression after HJ-1 satellite CCD data preprocessing
[0063] The application software compiled with the data compression and decompression method of the present invention is installed on the computer, and then the software is run when the data needs to be compressed.
[0064] (1) Determine the forward transformation form of the data type: the HJ-1 satellite CCD data is a secondary product, the data file is 4-band data in TIFF format, and the data type is single-byte unsigned integer. After data preprocessing (calculate the radiance value according to the calibration, and calculate the apparent reflectance according to the formula), the data is changed from a single-byte unsigned integer to a single-precision floating-point type. The single-precision floating-point type is converted into an integer type, and the data is stored in a single-byte unsigned integer type, which meets the requirements of the original data precision.
[006...
Embodiment 2
[0069] Example 2: Application of air temperature data compression in an automatic weather station
[0070] The application software compiled with the data compression and decompression method of the present invention is installed on the computer, and then the software is run when the data needs to be compressed.
[0071](1) Determine the forward transformation form of the data type: the highest temperature in the history of an automatic weather station is 41.3 degrees Celsius in summer, and the lowest is -23.8 degrees Celsius in winter, and a set of temperature data is sent back every hour every hour, including the highest, average and lowest temperature data. The collected data retains 1 decimal place and is a single-precision floating-point type with a unit length of 4 bytes. The data contains positive and negative numbers. If it is upgraded to an integer, the expression range of the single-byte integer data cannot contain all the data. Make sure to convert it to a double-by...