Skip to main content

Matching NEID Spectra

Project description

NEIDspecmatch (in progress)

NEIDSpecMatch: Spectral matching of NEID data. Based on: HPFSpecMatch.

Dependencies

  • pyde, either (pip install pyde) or install from here. This package needs numba (try conda install numba if 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.

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 certain rows (depending on the star type you want to estimate the uncertainty).

Fit a spectrum

Once the library is in place, one can run NEIDSpecMatch using run_neidspecmatch.py.

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

neidspecmatch-0.1.1.tar.gz (39.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

neidspecmatch-0.1.1-py3-none-any.whl (41.1 kB view details)

Uploaded Python 3

File details

Details for the file neidspecmatch-0.1.1.tar.gz.

File metadata

  • Download URL: neidspecmatch-0.1.1.tar.gz
  • Upload date:
  • Size: 39.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.14

File hashes

Hashes for neidspecmatch-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f8ce7bddca6e105a24f77715dfbd70edf2ef3604b5f7ece3481b6f7750b1727d
MD5 8500a5efeabe69e133522131430df585
BLAKE2b-256 416e34e200580f8c8f051a4f64a13773c010dbc8eeea84b690e9c1c726661ad9

See more details on using hashes here.

File details

Details for the file neidspecmatch-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: neidspecmatch-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 41.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.14

File hashes

Hashes for neidspecmatch-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 47777128fadbb91a9b0197ff1f2bbdfc8c21236d6115499cad3977458681f800
MD5 08460f676ac7d4a78089aeb8acf99eab
BLAKE2b-256 75925f66461cf573f4cc27a61ead03485d2bb16b942bf115732be106d34a3c52

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page