Skip to main content
QUICK REVIEW

[Paper Review] A Tiled-Table Convention for Compressing FITS Binary Tables

W. D. Pence, R. Seaman|arXiv (Cornell University)|Jan 6, 2012
Algorithms and Data CompressionComputer Science1 references5 citations
TL;DR

This paper introduces a tiled-table compression convention for FITS binary tables that improves compression efficiency by transposing data into column-major order, shuffling bytes in numeric columns, and applying lossless compression (e.g., gzip) per column. The method achieves up to 22.6× compression ratio on certain astronomical tables, with average disk savings of 1.5× over standard gzip, at a modest 50% increase in CPU time.

ABSTRACT

This document describes a convention for compressing FITS binary tables that is modeled after the FITS tiled-image compression method (White et al. 2009) that has been in use for about a decade. The input table is first optionally subdivided into tiles, each containing an equal number of rows, then every column of data within each tile is compressed and stored as a variable-length array of bytes in the output FITS binary table. All the header keywords from the input table are copied to the header of the output table and remain uncompressed for efficient access. The output compressed table contains the same number and order of columns as in the input uncompressed binary table. There is one row in the output table corresponding to each tile of rows in the input table. In principle, each column of data can be compressed using a different algorithm that is optimized for the type of data within that column, however in the prototype implementation described here, the gzip algorithm is used to compress every column.

Motivation & Objective

  • To develop a standardized, efficient method for compressing large FITS binary tables without losing data fidelity.
  • To reduce disk storage requirements for astronomical data while maintaining fast header access and random row access.
  • To extend the proven tiled-image compression model to binary tables, enabling column-specific compression strategies.
  • To evaluate the performance of byte-shuffling and column-wise compression on real astronomical FITS tables.
  • To provide a prototype implementation and benchmark results for adoption in astronomical data systems.

Proposed method

  • The input FITS binary table is optionally subdivided into tiles, each containing a fixed number of rows, with the last tile possibly smaller.
  • Data is transposed from row-major to column-major order, enabling efficient per-column compression of homogeneous data types.
  • Each column’s data is compressed using a chosen algorithm (e.g., GZIP_1 or GZIP_2), with the algorithm name stored in ZCTYPn keywords.
  • Compressed byte streams are stored in variable-length arrays (TFORMn = '1PB') in the output table, with one output row per input tile.
  • The heap (if present) is byte-shuffled and compressed separately, with its location tracked via the ZHEAPPTR keyword.
  • All original header keywords are preserved verbatim for fast access, while only structural keywords (e.g., NAXIS1, NAXIS2) are updated to reflect the compressed table structure.

Experimental results

Research questions

  • RQ1How does column-wise compression with data transposition and byte-shuffling improve FITS binary table compression ratios compared to standard gzip?
  • RQ2What is the performance overhead of the proposed compression method in terms of CPU time and memory usage?
  • RQ3How effective is the method on small tables where header size is non-negligible?
  • RQ4Can lossy compression be safely applied to specific columns without compromising scientific integrity?
  • RQ5What are the practical limits of this method when applied to diverse astronomical datasets?

Key findings

  • The GZIP_2 method, which includes byte-shuffling, achieved an average disk space savings of 1.5 times greater than standard gzip compression.
  • On the most favorable dataset, the GZIP_2 method achieved a compression ratio of 22.59, significantly outperforming standard gzip (5.39) and GZIP_1 (7.63).
  • The method required approximately 50% more CPU time than standard gzip, but this gap is expected to narrow with code optimization.
  • Byte-shuffling improved compression for most tables, but worsened results on one dataset (file 11) where values were nearly identical across rows, indicating data-specific sensitivity.
  • The method is less effective for small tables where header and block alignment overhead becomes significant relative to data size.
  • The prototype implementation demonstrated that column-specific compression with transposition and shuffling is feasible and effective across diverse astronomical FITS tables.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.