Metadata-Version: 2.4
Name: spectresc
Version: 1.1.0
Summary: SpectRes in C
Author-email: Marco C Lam <mlam@roe.ac.uk>
Maintainer-email: Marco C Lam <mlam@roe.ac.uk>
License: GPL-3.0
Project-URL: Download, https://github.com/cylammarco/SpectResC
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Programming Language :: C
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: Programming Language :: Python :: 3.14
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: Unix
Classifier: Operating System :: MacOS
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy
Dynamic: license-file

# SpectResC: : Simple Spectral Resampling in C
[![Coverage Status](https://coveralls.io/repos/github/cylammarco/SpectResC/badge.svg?branch=main)](https://coveralls.io/github/cylammarco/SpectResC?branch=main)
[![Readthedocs Status](https://readthedocs.org/projects/spectres/badge/?version=latest&style=flat)](https://spectres.readthedocs.io)
[![arXiv](https://img.shields.io/badge/arXiv-1705.05165-00ff00.svg)](https://arxiv.org/abs/1705.05165)
[![PyPI version](https://badge.fury.io/py/spectresc.svg)](https://badge.fury.io/py/spectresc)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.7863171.svg)](https://doi.org/10.5281/zenodo.7863171)

This is a Python package written with C extension to provide significant performance gain on [SpectRes](https://github.com/ACCarnall/SpectRes), and some performance over the numba implementation:

![alt text](https://github.com/cylammarco/SpectResC/blob/main/speed_test/speed_test.png?raw=true)

We keep the implementation as close to SpectRes as possible. The speed test was performed with a single core of Intel(R) Xeon(R) Gold 6226R CPU @ 2.90GHz (Oct 2025) against SpectRes v2.2.2.

## Installation

SpectResC can be installed using pip

```
pip install spectresc
```

## Documentation

Please refer to the original SpectRes for the [documentation](https://spectres.readthedocs.io).

## Citation

If you have made use of SpectResC, please reference:

1. the original SpectRes [arXiv article](https://arxiv.org/abs/1705.05165)
2. the [zenodo DOI](https://zenodo.org/record/7863171) for SpectResC
