7 Time-Saving QFitsView Tips for Astronomers and Data Analysts

Quick Start Guide to QFitsView: Open, Inspect, and Visualize FITS Files

QFitsView is a lightweight, responsive FITS file viewer widely used by astronomers for quick inspection and visualization of astronomical images and spectra. This guide walks you through installation, opening files, basic inspection tools, simple visualization techniques, and useful tips to get productive fast.

1. Install QFitsView

  • Download the latest release for your platform from the official project distribution (Linux packages or prebuilt binaries are typical).
  • On many Linux systems, QFitsView is available via package managers (e.g., apt, yum) or via conda-forge:

    Code

    conda install -c conda-forge qfitsview
  • For macOS and Windows, use available binaries or build from source if needed. Ensure required Qt and FITS libraries (CFITSIO) are installed.

2. Open a FITS file

  • Launch QFitsView and use File → Open, or drag-and-drop a .fits/.fit file into the window.
  • QFitsView supports multi-extension FITS: when opening a file with multiple HDUs, switch among extensions using the extension selector (often in the sidebar or menu).

3. Inspect image metadata

  • Header view: open the Header/Keywords panel to read standard FITS header cards (DATE-OBS, OBJECT, EXPTIME, NAXIS, CRPIX, WCS keywords). Headers are read-only; copy values for use in analysis.
  • Check image dimensions and data type (e.g., 2048×2048, FLOAT32). Note any scaling keywords (BSCALE, BZERO).
  • Verify WCS presence: if WCS keywords (CRVAL, CRPIX, CTYPE*, CD or PC matrices) are present, you can align and read sky coordinates.

4. Basic navigation and pixel inspection

  • Pan/zoom: use mouse wheel or zoom controls to magnify and pan across the image.
  • Pixel readout: hover or click to view pixel coordinates, value (DN), and, if available, world coordinates (RA/Dec).
  • Statistics: select a region (box or polygon) to display mean, median, standard deviation, min/max values for that selection.

5. Contrast, scaling, and color maps

  • Scaling controls: adjust display scale to exaggerate faint structures. Common scalings:
    • Linear — good for high dynamic-range linear features.
    • Logarithmic — brings out faint details near background.
    • Square-root — intermediate enhancement.
    • Asinh/Histogram Equalization — useful for very high dynamic ranges.
  • Set min/max (clip) values or use auto-stretch options like “zscale” or “percentiles” to rapidly optimize contrast.
  • Color maps: switch between grayscale and color lookup tables (e.g., viridis, heat, rainbow) to emphasize structure. Avoid misleading scientific color maps for publication unless clearly labeled.

6. Working with multiple frames and cubes

  • Multi-extension images: navigate between image extensions or data cubes using the extension selector.
  • Spectral cubes: for 3D data, use the slice slider to move through spectral channels or velocity planes. Play slices as a movie to inspect variations.
  • Combine frames: if compared images are open, tile or cascade windows to visually compare, or overlay contours from one image onto another if supported.

7. Simple measurements and annotations

  • Aperture/box photometry: use selection tools to measure integrated flux inside an aperture or rectangular region; subtract background measured in an annulus or nearby box.
  • Line/region statistics: get flux, mean, and sigma for chosen regions.
  • Annotations: add markers, labels, and scale bars to identify objects of interest for saving and quick reference.

8. Saving views and exporting data

  • Export images: save the current view as PNG, TIFF, or other image formats for presentations. Ensure any applied scaling and color map match the intended use.
  • Save FITS subsets: some builds allow saving a displayed region or slice back to a new FITS file — useful for focused processing.
  • Batch processing: for repetitive tasks, consider scripting with astropy or other tools; QFitsView is primarily for interactive inspection.

9. Integration with other tools

  • WCS tools: if QFitsView shows RA/Dec, you can copy coordinates to other software (Aladin, ds9, astropy) for deeper analysis.
  • Use image processing packages (astropy, photutils) for advanced calibration, cosmic-ray removal, stacking, or PSF photometry — then re-open results in QFitsView.

10. Troubleshooting common issues

  • Blank or saturated display: check for extreme outliers; use percentile clipping or manual min/max to recover structure.
  • No WCS coordinates: verify header keywords; use external tools (wcstools) to solve the image if necessary.
  • Slow performance with large cubes: reduce displayed resolution or use sub-sampling

Comments

Leave a Reply