Metadata-Version: 2.4
Name: pysme-astro
Version: 0.6.18
Summary: Spectroscopy Made Easy
Author: Mingjie Jian, Ansgar Wehrhahn, Jeff A. Valenti
Project-URL: Bug Tracker, https://github.com/MingjieJian/SME/issues
Project-URL: Documentation, https://pysme-astro.readthedocs.io/en/latest/
Project-URL: Source Code, https://github.com/MingjieJian/SME/
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy>=1.23
Requires-Dist: scipy<2.0,>=1.9
Requires-Dist: pandas<3.0,>=1.5
Requires-Dist: astropy<8,>=6
Requires-Dist: tqdm>=4.64
Requires-Dist: colorlog>=6.7
Requires-Dist: emcee>=3.1
Requires-Dist: pybtex>=0.24
Requires-Dist: flex-format>=0.2.18
Requires-Dist: plotly<6.0,>=5.11
Requires-Dist: matplotlib<4.0,>=3.6
Requires-Dist: requests<3.0,>=2.28
Requires-Dist: wget>=3.2
Requires-Dist: pqdm>=0.1
Provides-Extra: dev
Requires-Dist: pytest<9,>=7.2; extra == "dev"
Requires-Dist: sphinx<9,>=5.3; extra == "dev"
Requires-Dist: pre-commit<4,>=2.20; extra == "dev"
Requires-Dist: flake8<8,>=7; extra == "dev"
Dynamic: license-file

![Python application](https://github.com/MingjieJian/SME/workflows/Python%20application/badge.svg)
[![Documentation Status](https://readthedocs.org/projects/pysme-astro/badge/?version=latest)](https://pysme-astro.readthedocs.io/en/latest/?badge=latest)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5547527.svg)](https://doi.org/10.5281/zenodo.5547527)

# PySME

Spectroscopy Made Easy (SME) is a software tool that fits an observed
spectrum of a star with a model spectrum. Since its initial release in
[1996](http://adsabs.harvard.edu/abs/1996A%26AS..118..595V), SME has been a
suite of IDL routines that call a dynamically linked library, which is
compiled from C++ and fortran. This classic IDL version of SME is available
for [download](http://www.stsci.edu/~valenti/sme.html).

In 2018, we began began reimplmenting the IDL part of SME in python 3,
adopting an object oriented paradigm and continuous itegration practices
(code repository, build automation, self-testing, frequent builds).

# Installation

A stable version is available on pip `pip install pysme-astro`, and it is recommended to install this verion.

If you are interested in the latest version you can do so by cloning this git.
```bash
# Clone the git repository
git clone https://github.com/MingjieJian/SME.git
# Move to the new directory
cd SME
# Install this folder (as an editable module)
pip install -e .
```
See also the [documentation](https://pysme-astro.readthedocs.io/en/latest/usage/installation.html).

# Poster

A poster about PySME can be found here: [Poster](http://sme.astro.uu.se/poster.html)

# GUI

A GUI for PySME is available in its own repository [PySME-GUI](https://github.com/MingjieJian/PySME-GUI).

# Windows

Unfortunately PySME is not supported in Windows right now. While there is a SME C libary for Windows, it is not compatible with the Python C Extension inteface on Windows as it was compiled with a different compiler. Therefore if you want to use PySME you would need to compile the SME library with the same compiler.
