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.3.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.3-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyrednoise-0.0.3.tar.gz
Algorithm Hash digest
SHA256 72826f3fa446519ca744efb75feba252a5692ff0855f40e70fa40e85b2a79371
MD5 c64d5082ee87f32b6799c6b558ee10f9
BLAKE2b-256 d2b8b9db1da998ddb0597cf5257725f1060fa31b56248f5a2d91f1f3f35710c0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyrednoise-0.0.3-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.13.10

File hashes

Hashes for pyrednoise-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f079aea07da8fadfd2ba55496f8e81ef2399a8af8aee099a4fd0b9c8f94e93f2
MD5 56301b2706b10458ba23aca865d5edd0
BLAKE2b-256 7d879b0f65b4f4af49cd3efd7c55debf05ee5fc1699e8e6e217134cd64974445

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