Matching NEID Spectra
Project description
NEIDspecmatch (Beta)
NEIDSpecMatch: Spectral matching of NEID data. Based on: HPFSpecMatch.
Dependencies
-
pyde, either (
pip install pyde) or install from here. This package needs numba (tryconda install numbaif problems). -
emcee (
pip install emcee) -
astroquery (
pip install astroquery) -
crosscorr (
git clone https://github.com/TeHanHunter/crosscorr.git)pip3 install .NEED fortran installation. For Mac: brew install gcc (GNU fortran). For Ubuntu: sudo apt install gfortran -
NEIDspec (
git clone https://github.com/TeHanHunter/neidspec.git)pip3 install . -
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.
Installation
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 .
Library download
The current library include 78 library stars. You may download them here. The full directory (yyyymmdd_specmatch_nir/) need to be saved under the library/ folder. Make sure the path in config.py agrees with the name of the library.
Cross-validation and result uncertainty
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 run run_crossval.py 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.
Fit a spectrum
Once the library is in place, one can run NEIDSpecMatch using run_neidspecmatch.py. You need to specify the file path, target name (as in the fits header), orders, and more.
Reference
TODO
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file neidspecmatch-0.1.3.tar.gz.
File metadata
- Download URL: neidspecmatch-0.1.3.tar.gz
- Upload date:
- Size: 40.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a149180aa43c22ad3f2833d3ff15604699cb439dd5ec9f4d1c8b4ed289f5d124
|
|
| MD5 |
e67c88b18bd6c60d16d63f048f93d27e
|
|
| BLAKE2b-256 |
ecbd5f7cef3b5f5c8081b5c2098f4decc2a05fa02d6a32a2c5631dced9fe1949
|
File details
Details for the file neidspecmatch-0.1.3-py3-none-any.whl.
File metadata
- Download URL: neidspecmatch-0.1.3-py3-none-any.whl
- Upload date:
- Size: 41.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60da0c6db595029947c870fdc7d710ffa4447bfd9768c42482ba2bc203611d87
|
|
| MD5 |
559511302ff8f1f4538b66d7701a6f50
|
|
| BLAKE2b-256 |
57ddc54e4fc32ce9e213cb26b9c6d2d78fa095d5f79a9237804eb7b687178e30
|