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.2.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.2-py3-none-any.whl (41.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: neidspecmatch-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 58b9aac3e008d9df49dfea3b790baa9ddba3df91ae30b698b47c14d495ee3f69
MD5 cc17ceaf04387f444848672c12bc2b9f
BLAKE2b-256 015c46e97b5fa3b5c7907b1a2070e4b6ca17d8a226e8cfb3761e58f3981c8ff2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neidspecmatch-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 41.3 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 523c6f881b3b10731a3e6c8ccb8064b9a8bf1880c702a7d2ab3b6b2511a67495
MD5 b06241de77ccdaf56d14178b018a9ec0
BLAKE2b-256 e5b840178091836447cf3021497f4358ad93e5f10320d3bf287d327115b051af

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