4.9 WEATHER DATA COMPRESSION Christopher

4.9 WEATHER DATA COMPRESSION Christopher

4.9 WEATHER DATA COMPRESSION Christopher E. Steffen* and Ning Wang NOAA Research - Forecast Systems Laboratory Boulder, Colorado 1. INTRODUCTION filter to extract the smoothness quality and how it improves the compression ratio when Significant reductions in weather data using gzip and bzip2. Next, there is a brief size without loss of any useful information can discussion of the benefits of decoupling the file be accomplished through the use of data specification from the compression technique compression and rounding to the least and the existing file formats. The combined significant digit. The source of the weather compression technique is applied to the ETA data's compression can be traced to the data's model data and the results are summarized in smoothness and rounding. Rounding off the Table 3. A high level discussion of Wavelet insignificant digits and extracting the compression with an error grid is then given smoothness results in increased symbol along with the results which are summarized in frequency. Common applications such as gzip Table 3. The reduction in "bandwidth used" is and bzip2 encode frequent symbols with less then summarized in Table 2 demonstrating a bits. Hence, more data may be sent over a significant improvement in the compressibility fixed bandwidth channel if it is first compressed. of the ETA model data. This paper compares several compression techniques with respect to 12 kilometer weather data from the ETA model. 2. GZIP / BZIP2 This issue has become more important with the advent of higher resolution model data, The algorithm in GZIP tries to map ensemble model data, and with the long strings into short symbols. The algorithm commissioning of the construction of new in BZIP2 try to represent the most frequently weather satellites using twelve bands instead of occurring symbols with the least number of three. In addition, the fixed bandwidth of the bits. Both algorithms are lossless. GZIP uses Satellite Broadcasting Network (SBN) and LZ77, (Ziv et. al.1977). BZIP2 uses a Burrows- limited disk space are also driving the interest in Wheeler Transform, (Burrows et. al. 1994) and data compression. The primary products to be (Nelson 1996), along with adaptive Arithmetic compressed include model data, radar data, encoding, (Bell et. al. 1990) and (Nelson and satellite image data. 1991). Some ramifications of doubling the The compression ratios achieved on resolution of the model data are: 1) computation weather data by both algorithms can be time increases by an order of magnitude, 2) the significantly improved by preprocessing the data volume quadruples, 3) the number of data. The two preprocessors used were significant digits needed doubles, and 4) the rounding and difference filtering. data smoothness quality improves. This paper addresses the application of common compression techniques to weather 3. ROUNDING / QUANTIZING data. It begins with a short description of the important characteristics of gzip and bzip2. It The term "rounding data" refers to continues with a description of the benefits of truncating the precision of the data. In rounding prior to using gzip or bzip2. Next, it essence, throwing away information which describes the benefits of applying a difference may only be conveying to the end user the ______________________________ amount of noise in the data. Care must be * Corresponding author address: taken to remove this information correctly. In NOAA/FSL, 325 Broadway, order improve the compression by GZIP and Boulder, CO 80305-3328 BZIP2, the rounding must occur in a way that Email:[email protected] increases the frequency of some symbols. For instance, "rounding" sets more binary digits on the right side of the mantissa of a floating point The term "quantizing" is typically used number to zero. Since this occurs in every in conjunction with a continuous signal which floating point number, it reduces the number of must be represented with a discrete signal. symbols possible. The quantization process maps a range of the Simply multiplying by a power of 10 and continuous signal to a single level in the rounding to decimal place and then dividing by discrete signal essentially rounding the infinite the power of 10 will not optimize the precision continuous values into a discrete compressibility of the data. The reason is that value. the data are stored in a binary format which is a base two notation and it must be rounded in base two. One method to eliminate this 4. WEATHER DATA SMOOTHNESS problem is to multiply by powers of two. However, if it is desirable to maintain the "Weather data" typically refers to a rounding as a power of 10, one can calculate parameter defined over a geographical area the number of binary digits required to maintain at a particular time. More often than not, two this precision and mask off the unnecessary nearby points have similar values, so there is binary digits. During reconstruction multiply by a high positive correlation between parameter the power of ten, round, and divide by the values which are both near geographically and power of 10 to reconstruct the power of 10 near in time. This would imply that some of precision accurately. In Table 3, "z + 1" was the information is redundant, which means that used in place of z to give a little extra precision. it can be extracted while increasing the Below the z+1 bit, one additional bit was used frequency of occurrence of some of the to specify whether to round up or down. In the symbols. This results in improved compression future, these two extra bits may be able to be once GZIP or BZIP2 are applied. eliminated. One method of extracting the x = Original Number, smoothness is by using the difference filter y = Decimal Digits of Precision, specified by Paeth (1991). The Paeth filter uses the data points to the left, to the upper- p = Number of Binary Bits of Precision, left, and above the current data point to q = Rounded number, estimate the value of the current data point. r = Reconstructed number, The estimate is then subtracted from the current data point to remove the smoothness. y p = log2 (10 ), If labels a, b, c, and d are applied to left, p p upper-left, above, and current data points, q = x * 2 / 2 , respectively, the algorithm estimate equals "a Reconstruct with, + b - c". It is also possible to use the value above or to the left of the current value as an y y r = q * 10 + 0.5 / 10 , estimate. The pattern used in the difference Error = x - r. filter algorithm used here is shown in Table 1. To reconstruct the original, the estimate must Currently, GRIB1 rounds the data to be added back to the values. some precision. It is preferable to avoid losing information GRIB1 currently contains since Table 1. Estimates subtracted from array some of the weather model output may be used element. to initialize local weather models. Weather Left Left Left Left models tend to be overwhelmed by the amplification of small errors. Hence, only Above Paeth Paeth Paeth Paeth algorithms that lose less information than GRIB1 are acceptable. Above Paeth Paeth Paeth Paeth The seventh and eigth rows of Table 3 demonstrate the advantage of using a rounding Above Paeth Paeth Paeth Paeth in addition to a difference filter prior to compression with BZIP2. For instance, in the Above Paeth Paeth Paeth Paeth case of temperature, the rounding algorithm improves the compressibility by a factor of 5.7. (ie. 163.4% / 28.7% = 5.7) The sixth and seventh rows of Table 3 preferable to separate the file format standard demonstrate the advantage of using a from the compression standard. difference filter to remove the smoothness of the data prior to compression with BZIP2. For instance, in the case of temperature, the 7. TIME CONSTRAINTS difference filter algorithm with BZIP2 improves the compressibility by a factor of 1.28. (ie. Compression of the data must be done 209.3% / 163.4% = 1.28) in real time and as close to the source of the data as possible for maximal benefit. For instance, the satellite data must be 5. DECOUPLING FILE FORMAT FROM compressed and disseminated within one COMPRESSION ALGORITHM minute receipt. One of the major impediments to implementing a new compression algorithm is 8. 2-DIM / ROUND / DIFFERENCE / BZIP2 the existing file formats. Ideally, the file would consist of a meta-data block and a data block. In the Round/DifferenceFilter/BZIP2 The meta-data block would contain parameters tests, the binary rounding algorithm from describing the data. The data block would section 2 was applied to eliminate the contain an array of data and the meta-data unnecessary information. Next, the Paeth filter describing the array format. (Paeth 1991) was used to extract the This file architecture is attractive for the smoothness of the data while increasing the following reasons: 1) GZIP or BZIP2 could be frequency of some symbols. Then BZIP2 was applied to the meta-data block. 2) An algorithm applied to encode frequently occurring which takes into account the rounding and symbols with fewer bits. smoothness could be applied to the data block. 3) The meta-data format is decoupled from the compression algorithm used. 4) The 9. WAVELET COMPRESSION/ ERROR GRID compression code can be removed from the file format encoder/decoder code and placed in a Wavelet compression typically post/preprocessor module. This would also consists of three steps. The first step is to make it easy to change compression algorithms wavelet transform the data, (Daubechies 1988 if the algorithm used violates a patent. and Cohen et. al.1992), which applies an orthogonal (or biorthogonal) transform to the data to compact the information into fewer 6.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    6 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us