NEIDSpecMatch: a tool developed to extract stellar parameters from high-resolution spectra obtained with the NEID spectrograph. Based on: HPFSpecMatch.
We recommend follow the tutorials to get started quickly. neidspecmatch
is pip-installable
pip install neidspecmatch
neidspecmatch
requires a library of well-characterized stars for spectra comparison. The current library include 78 library stars. You may download them via zenodo or via google drive. The full directory (yyyymmdd_specmatch_nir/) need to be saved under the library/ folder.
The cross-validation is a necessary step to estimate the uncertainty of the recovered stellar parameters. To run the cross-validation on the current library, one can follow tutorial 1 for the desired order(s). The output include a file in the format of crossvalidation_results_o102.csv
. One can take the standard deviation of the column d_teff, d_feh, and d_logg on all/certain rows (depending on the star type you want to estimate the uncertainty).
The alternative is to use the cross-validation result saved in the same link as the library, although we recommend running the cross-validation locally to check the completeness of the installation.
Once the library is in place, one can run fit an arbitrary NEID spectrum following Fit NEID spectrum. You need to specify the file path, target name (as in the fits header), orders, and more.
These should be installed automatically with pip. But if installation fails, you may download them manually.
-
pytransit ('pip install pytransit')
-
emcee (
pip install emcee
) -
astroquery (
pip install astroquery
) -
crosscorr (
pip install crosscorr
) NEED fortran installation. For Mac: brew install gcc (GNU fortran). For Ubuntu: sudo apt install gfortran -
NEIDspec (
pip install neidspec
) -
lmfit (
pip install lmfit
) -
barycorrpy (
pip install barycorrpy
)Known Issue: The latest version of barycorrpy deprecated some syntax used in the NEIDSpecMatch. Please use earlier versions (0.4.4 tested to work) while we update the syntax.
create a new conda env with
conda create -n neidspecmatch python==3.10
conda activate neidspecmatch
conda install numba
git clone https://github.com/hpparvi/PyDE.git
cd PyDE
pip3 install .
cd ..
pip3 install emcee
pip3 install astroquery
git clone https://github.com/TeHanHunter/crosscorr.git
cd crosscorr
brew install gcc
pip3 install .
cd ..
git clone https://github.com/TeHanHunter/neidspec.git
cd neidspec
pip3 install .
cd ..
pip3 install lmfit
pip3 install barycorrpy
pip3 install celerite
git clone https://github.com/TeHanHunter/neidspecmatch.git
cd neidspecmatch
pip3 install .
@ARTICLE{2025RNAAS...9...63H,
author = {{Han}, Te and {Robertson}, Paul and {Ca{\~n}as}, Caleb I. and {Stefansson}, Gudmundur and {Kanodia}, Shubham and {Ninan}, Joe P. and {Alvarado-Montes}, Jaime A. and {Bender}, Chad F. and {Dong}, Jiayin and {Fernandes}, Rachel and {Gupta}, Arvind F. and {Halverson}, Samuel and {Krolikowski}, Daniel M. and {Lin}, Andrea S.~J. and {Mahadevan}, Suvrath and {Paredes}, Leonardo A. and {Roy}, Arpita and {Schwab}, Christian and {Terrien}, Ryan C.},
title = "{NEIDSpecMatch: Stellar Parameter Estimation with NEID Spectra Using an Empirical Library}",
journal = {Research Notes of the American Astronomical Society},
keywords = {Stellar properties, Spectroscopy, Astronomical instrumentation, 1624, 1558, 799, Solar and Stellar Astrophysics, Astrophysics of Galaxies, High Energy Astrophysical Phenomena, Instrumentation and Methods for Astrophysics},
year = 2025,
month = mar,
volume = {9},
number = {3},
eid = {63},
pages = {63},
doi = {10.3847/2515-5172/adc264},
archivePrefix = {arXiv},
eprint = {2503.16729},
primaryClass = {astro-ph.SR},
adsurl = {https://ui.adsabs.harvard.edu/abs/2025RNAAS...9...63H},
adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}