Metadata-Version: 2.1
Name: periodogram
Version: 0.0.12
Summary: Simple periodogram manipulation in Python.
Home-page: https://github.com/danhey/periodogram
Author: Daniel Hey
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Description-Content-Type: text/markdown

<!-- ![](docs/img.png) -->
<img src="https://raw.githubusercontent.com/danhey/periodogram/main/docs/img.png"  width="100%">

# Periodogram
Simple and tested periodogram normalizations for astronomical time-series

## Installation
```bash
pip install periodogram
```

## Usage

There are three types of normalizations available. The amplitude spectrum is normalized such that a sine wave of amplitude 1 will have a peak amplitude of 1. The power spectrum will have 1^2, and the power spectral density will have 1^2 * Tobs
```python
from periodogram import Periodogram

p = Periodogram.calculate(x, y, normalization='amplitude')
p.plot()
```


Lower-level functions for directly calculating different normalizations are also available
```python
from periodogram import amplitude_spectrum, psd, power_spectrum

frequency, amplitude = amplitude_spectrum(x, y)
```


<!-- [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.3629933.svg)](https://doi.org/10.5281/zenodo.3629933) -->
