ELFO: A Python package for emission line fitting optimization in integral field spectroscopy data
Hui Guo, Guilin Liu, Jianghui Xu, Chao Geng, Zhicheng He, Shiyin Shen, Lei Hao
TL;DR
ELFO addresses the problem of spurious spatial discontinuities in emission line fits of IFS data by initializing fits for each spectrum from neighboring spaxels and selecting the most spatially smooth solution. The method is implemented in Python and built on PyQSOFit, operating through a row/column sequential fitting scheme and a four-step, iterative selection process that enforces velocity coherence across the field. Applied to MUSE data of two quasars, ELFO smooths velocity maps, corrects anomalous decompositions, and reveals substructures and coherent large-scale kinematics that may be obscured by traditional per-spaxel fitting or aggressive binning. The approach preserves spatial information better than adaptive binning, is adaptable to other IFS datasets and lines, but requires substantial computation, and could gain from integration with machine learning to refine parameter bounds and initialization.
Abstract
Integral field spectroscopy (IFS) provides spatially resolved spectra, enabling detailed studies that address the physical and kinematic properties of the interstellar medium. A critical step in analyzing IFS data is the decomposition of emission lines, where different velocity components are often modeled with Gaussian profiles. However, conventional fitting methods that treat each spectrum independently often yield spatial discontinuities in the fitting results. Here, we present Emission Line Fitting Optimization (ELFO), a Python package for IFS spectral fitting. ELFO uses the results of neighboring spectra to determine multiple initial guesses and selects the result that exhibits spatial smoothness. We tested ELFO on IFS data of two quasars obtained from the Multi-Unit Spectroscopic Explorer, where it successfully corrected anomalous fits, revealed previously unresolved substructures, and made large-scale kinematic structures more evident. With minor modifications, this method can also be easily adapted to other IFS data and different emission lines.
