FITS Revision Comparison
Compare two FITS files in your browser. Inspect header keywords, table columns and pixel changes with blink, swipe and image-difference views.
Still loading. If the tool doesn’t appear, reload this page.
About this tool
FITS Revision Comparison — FITS Header and Image Diff
Compare two FITS astronomy files in your browser: HDU structure, fitsdiff-style header changes, image pixel differences with blink, swipe and difference views, and table column changes.
FITS Revision Comparison checks what changed between two versions of an astronomical FITS product, such as a re-reduced frame, a recalibrated catalogue or a pipeline upgrade. It pairs the HDUs of both files, lists added, removed and changed header keywords in the style of astropy's fitsdiff (with an ignore list and relative/absolute numeric tolerance), and compares the data: image shape, statistics, the number of differing pixels and the largest and mean absolute difference, or binary-table rows column by column. Images can be viewed side by side, blinked, swiped or shown as a B − A difference image with linear, square-root, log or asinh stretches, zscale or percentile limits and several colour maps, and a pixel inspector reads both values under the cursor. Files are parsed locally in a background worker and never leave your device; the report exports as JSON, CSV or Markdown.
How to use FITS Revision Comparison
- 1
Drop the original FITS file on A and the revised file on B, or load one of the built-in sample pairs.
- 2
Read the overview, then open Header to see keyword changes; add keywords such as DATE* or CHECKSUM to the ignore list and set a tolerance if small numeric drift should not count.
- 3
Open Data to blink, swipe or difference the images and hover to inspect pixels, then export the report as JSON, CSV or Markdown.
Why use FITS Revision Comparison
fitsdiff-style results
HDUs are paired by position and every keyword, value and comment change is listed, with wildcards in the ignore list and rtol/atol tolerance like astropy's fitsdiff.
See the change, not just count it
Blink, swipe and difference views share one zoom and pan, and the pixel inspector shows A, B and B − A at the same position.
Private and bounded
Everything runs in your browser. Large files are read in chunks in a Web Worker, so even multi-gigabyte files are compared without loading them whole.
Common use cases
- Check what a new pipeline version changed in a calibrated science frame before replacing the archived product.
- Confirm that converting an image from 32-bit to 64-bit floats changed nothing beyond rounding, using a relative tolerance.
- Review which catalogue rows and columns changed between two releases of a source table.
Frequently asked questions
Are my files uploaded?
No. Files are read directly from your device by the browser and compared locally; nothing is sent to a server.
Link to answerWhich FITS features are supported?
Primary arrays and IMAGE, BINTABLE and ASCII TABLE extensions, BITPIX 8, 16, 32, 64, −32 and −64, BSCALE/BZERO scaling, BLANK and NaN pixels, CONTINUE long strings and any number of HDUs. Tile-compressed images and variable-length array columns are listed but not decoded.
Link to answerHow is the tolerance applied?
Two numbers count as equal when |a − b| ≤ atol + rtol × |b|, the same rule fitsdiff uses. Two NaN pixels are equal; a NaN against a number is a difference.
Link to answerDoes it calibrate or validate my data?
No. It reports differences between the two files exactly as stored. It does not perform photometry, astrometry or any scientific validation.
Link to answer