Skip to main content

A package performing power spectrum analysis, and comparing the given signal with red noise

Project description

class RedNoiseAnalysis(
    signal,
    lag = 1,
    chunk_size = 1825,
    n_red_noise_ens = 1000,
    red_noise_simulate_length = 365000
)

This is a package that performing temporal power spectrum analysis, and comparing given signal with theoretical red noise and simulated red noise.

Usage

Calculating power spectrum of given signal, and red noise which has similar memory with given signal.

from pyRedNoise.RedNoiseAnalysis import RedNoiseAnalysis
signal = np.load("signal.npy")

rna = RedNoiseAnalysis(signal)
rna.get_power_spectrum()

# Given signal
rna.signal

# power spectrum of given signal
rna.sp

# frequencies of given signal
rna.freq

# theoretical red noise power spectrum
rna.sp_theo

# theoretical red noise frequencies
rna.freq_theo

# simulated red noise power spectrum
rna.sp_red

# simulated red noise frequencies
rna.freq_red

Fast visualization. If you have specific plotting needs, calling this method is not suggested.

rna.plot_power_spectrum() # show and save the plot at the same time

Notes

Details of derivation, theory, and implementation can be found in https://github.com/Prcpltwfkwd-TW/Power_Spectrum_Analysis.git

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

pyrednoise-0.0.1.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyrednoise-0.0.1-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file pyrednoise-0.0.1.tar.gz.

File metadata

  • Download URL: pyrednoise-0.0.1.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for pyrednoise-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d3d3863b9946270a43e1859adc22b54bbe2a04496ec65d9a860a9c504bdd1632
MD5 9eb9da1a420e1f81b064495425bfb155
BLAKE2b-256 3733ba0b6cb2897a6c3a3b98b86854707fa3a5c63dabcd09d1431c8caa7d3605

See more details on using hashes here.

File details

Details for the file pyrednoise-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pyrednoise-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for pyrednoise-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 552e0e708435314e52c96ead311a86d7b38ae879616241adbc101f1178e4c6ae
MD5 febe23fe0f80d28585e8d97ccfb084aa
BLAKE2b-256 7533f1ebc3851317306b266d35a9742f32682aabc729d387d395ad9ce101728c

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