SPAN: A cross-platform Python GUI software for optical and near-infrared spectral analysis
Daniele Gasparri, Lorenzo Morelli, Umberto Battino, Jairo Méndez Abreu, Adriana de Lorenzo-Cáceres
TL;DR
SPAN addresses the fragmentation of spectral-analysis tools by delivering a cross-platform, Python-based GUI that unifies 1D spectrum extraction, manipulation, and both line-strength and full spectral fitting within a single environment. It centers on unresolved galaxy spectra and leverages pPXF for efficient, accurate kinematic and population analyses, while avoiding computationally heavy Bayesian methods. The authors validate SPAN against established pipelines (e.g., E-MILES LIS, Cappellari’s pPXF workflow, GIST) and demonstrate a practical, science-ready workflow on the NGC 1097 MUSE datacube, achieving agreement in kinematics, ages, metallicities, and abundance indicators. The work highlights SPAN’s potential to accelerate spectral workflows for large datasets, improve accessibility, and facilitate reproducible analyses, with planned expansions to support more instruments and additional fitting algorithms.
Abstract
The increasing availability of high-quality optical and near-infrared spectroscopic data, as well as advances in modelling techniques, have greatly expanded the scientific potential of spectroscopic studies. However, the software tools needed to fully exploit this potential often remain fragmented across multiple specialised packages, requiring scripting skills and manual integration to handle complex workflows. In this paper we present SPAN (SPectral ANalysis), a cross-platform, Python-based Graphical User Interface (GUI) software that unifies the essential tools for modern spectral analysis within a single, user-friendly environment. While SPAN can be used with a variety of spectroscopic targets, its primary focus is the analysis of unresolved galaxy spectra. SPAN allows users to extract 1D spectra from FITS images and datacubes, perform spectral processing (e.g. Doppler correction, continuum modelling, denoising), and carry out detailed analyses, including line-strength measurements, stellar and gas kinematics, and stellar population studies, using both built-in routines and the widely adopted pPXF algorithm for full spectral fitting. It runs natively on Windows, Linux, macOS, and Android, and is fully task-driven, requiring no prior coding experience. We validate SPAN by comparing its output with existing pipelines and literature studies. By offering a flexible, accessible, and well integrated environment, SPAN simplifies and accelerates the spectral analysis workflow, while maintaining scientific accuracy.
