Skip to main content

Simple periodogram manipulation in Python.

Project description

Periodogram

Simple and tested periodogram normalizations for astronomical time-series

Installation

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

from periodogram import Periodogram

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

Lower-level functions for directly calculating different normalizations are also available

from periodogram import amplitude_spectrum, psd, power_spectrum

frequency, amplitude = amplitude_spectrum(x, y)

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

periodogram-0.0.12.tar.gz (6.6 kB view hashes)

Uploaded Source

Built Distribution

periodogram-0.0.12-py3-none-any.whl (7.5 kB view hashes)

Uploaded Python 3

Supported by

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