arrow
Return

easyspec: An Open-source Python Package for Long-slit Spectroscopy

delete2025-08-18
delete0
PRE
AI
R
Raniere de Menezes
F
F. Massaro
M
Michela Negro
C
C. M. Raiteri
H
Harold Peña-Herazo
J
J. A. Acosta‐Pulido
DOI:doi:10.3847/1538-3881/adf220delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
In modern-day astronomy, near-infrared, optical, and ultraviolet spectroscopy are indispensable for studying a wide range of phenomena, from measuring black hole masses to analyzing chemical abundances in stellar atmospheres. However, spectroscopic data reduction is often performed using instrument-specific pipelines or legacy software well-established and robust within the community that are often challenging to implement and script in modern astrophysical workflows. In this work, we introduce easyspec, a new Python package designed for long-slit spectroscopy, capable of reducing, extracting, and analyzing spectra from a wide range of instruments—provided they deliver raw FITS files, the standard format for most optical telescopes worldwide. This package is built upon the well-established long-slit spectroscopy routines of the Image Reduction and Analysis Facility (IRAF), integrating modern coding techniques and advanced fitting algorithms based on Markov chain Monte Carlo simulations. We present a user-friendly open-source Python package that can be easily incorporated into customized pipelines for more complex analyses. To validate its capabilities, we apply easyspec to the active galactic nucleus G4Jy 1709, observed with the DOLORES spectrograph at the Telescopio Nazionale Galileo, measuring its redshift and estimating its supermassive black hole mass. Finally, we compare our results with a previous IRAF-based study.
Keywords:
near-infrared spectroscopy
optical spectroscopy
ultraviolet spectroscopy
long-slit spectroscopy
data reduction
Python package
easyspec
Markov chain Monte Carlo
black hole mass
active galactic nucleus

Journal

Astronomical Journal cover
Astronomical Journal
IF:
5.1
Papers:
1.4W
Citations:
5.0W

Organization

E
east asian observatory
Scholars:
9
Papers: 6
Citations: 0
researcher View more organizations