Making the Invisible Visible: Converting Multi-band Astronomical Data into RGB Images
Abstract
Modern astronomy relies on multi-wavelength observations across the electromagnetic spectrum, yet most of these data lie outside the optical regime. Since different physical processes emit radiation at characteristic energies, no single band can capture the full picture of a complex astronomical environment. We introduce a Python pipeline for converting multi-wavelength astronomical observations into scientifically representative pseudo-color composite images. The workflow incorporates FITS ingestion, statistical profiling, chromatic response modeling, and energy-ordered RGB projection. Each step addresses a specific challenge: reading heterogeneous data formats, characterising dynamic range, modelling human colour response, and projecting multiple bands into a perceptually meaningful image. It is found that the arcsinh stretch achieves optimal contrast across high dynamic ranges, compared with four intensity scaling laws: linear, logarithmic, arcsinh, and power-law, on Chandra observations of Cassiopeia A and the Pinwheel Galaxy (M101). This is because arcsinh behaves linearly at low intensities and logarithmically at high intensities, preserving both faint and bright structures within a single display. Additionally, percentile clipping and three-channel color assignment allow spatially overlapping emission structures to be distinguished visually. This lightweight framework provides a transparent tool for generating scientifically meaningful astronomical illustrations.
References
- Gardner, J. P., Mather, J. C., Clampin, M., et al. (2023). The James Webb Space Telescope mission.Publications of the Astronomical Society of the Pacific, 135(1048), 068001.
- Event Horizon Telescope Collaboration (Akiyama, K., et al.). (2019). First M87 Event Horizon Telescope results. I. The shadow of the supermassive black hole.The Astrophysical Journal Letters, 875(1), L1.
- Event Horizon Telescope Collaboration (Akiyama, K., et al.). (2022). First Sagittarius A* Event Horizon Telescope results. I. The shadow of the supermassive black hole in the center of the Milky Way.The Astrophysical Journal Letters, 930(2), L12.
- Lupton, R., Blanton, M. R., Fekete, G., et al. (2004). Preparing red-green-blue images from CCD data.Publications of the Astronomical Society of the Pacific, 116(816), 133–137.
- Pence, W. D., Chiappetti, L., Page, C. G., et al. (2010). Definition of the Flexible Image Transport System (FITS).Astronomy & Astrophysics, 524, A42.
- Astropy Collaboration (Price-Whelan, A. M., et al.). (2022). The Astropy Project: Sustaining and growing a community-oriented open-source project and the latest major release (v5.0) of the core package.The Astrophysical Journal, 935(2), 167.
- Stockman, A., & Sharpe, L. T. (2000). The spectral sensitivities of the middle- and long-wavelength-sensitive cones derived from measurements in observers of known genotype.Vision Research, 40(13), 1711–1737.
- Dubner, G., Castelletti, G., Kargaltsev, O., et al. (2017). Morphological properties of the Crab Nebula: A detailed multiwavelength study based on new VLA, HST, Chandra, and XMM-Newton images.The Astrophysical Journal, 840(2), 82.
- Rector, T. A., Levay, Z. G., Frattare, L. M., Arcand, K. K., & Watzke, M. (2017). The aesthetics of astrophysics: How to make appealing color-composite images that convey the science.Publications of the Astronomical Society of the Pacific, 129(975), 058007.
- Cutler, S. E., Whitaker, K. E., Weaver, J. R., et al. (2024). Two distinct classes of quiescent galaxies at cosmic noon revealed by JWST PRIMER and UNCOVER.The Astrophysical Journal Letters, 967(2), L23.