Skip to main content

Some spectral analysis tools for analyzing waves in data.

Project description

wavespec

Some spectral analysis tools for analyzing waves in data.

Installation

Using pip3:

pip3 install wavespec --user

Installing the wheel using pip3:

pip3 install wavespec-0.0.1-py3-none-any.whl --user

From git:

git clone https://github.com/mattkjames7/wavespec
cd wavespec
python3 setup.py install --user

Usage

import wavespec as ws

Fast Fourier Transform (FFT)

power,phase,freq,fr,fi = ws.Fourier.FFT(t,x,WindowFunction=None,Param=None)

Lomb-Scargle (LS)

P,A,phi,a,b = ws.LombScargle.LombScargle(t,x0,f,Backend='C++',WindowFunction=None,Param=None)

Spectrograms

Nw,LenW,Freq,out = ws.Spectrogram.Spectrogram(t,v,wind,slip,Freq=None,Method='FFT',WindowFunction=None,Param=None,Detrend=True,FindGaps=True,GoodData=None,Quiet=True,LenW=None)

ax,Nw,LenW,Freq,Spec = ws.Spectrogram.PlotSpectrogram(t,v,wind,slip,Freq=None,Method='FFT',WindowFunction=None,Param=None,Detrend=True,FindGaps=True,GoodData=None,Quiet=True,LenW=None,fig=None,maps=[1,1,0,0],PlotType='Pow',scale=None,zlog=False,TimeAxisUnits='s',FreqAxisUnits='Hz')

3D Spectrograms

Nw,LenW,Freq,Spec = ws.Spectrogram.Spectrogram3D(t,vx,vy,vz,wind,slip,Freq=None,Method='FFT',WindowFunction=None,Param=None,Detrend=True,FindGaps=False,GoodData=None)

Tests

ws.Test.TestLS(A=[1.0,2.0],f=[0.04,0.1],phi=[0.0,90.0],Backend='C++')
ws.Test.TestPolarization(xPow=2.0,xPhase=0.0,yPow=1.0,yPhase=40.0)
ws.Test,TestSpectrogram()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

wavespec-0.0.1-py3-none-any.whl (356.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wavespec-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 356.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.4

File hashes

Hashes for wavespec-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e76f9462dc18e50b91bdc7e6bd7fd57897f7f9f2f1f7f2c2ca727df0adf93342
MD5 31a4777f11b028afef3edbb2a09ea322
BLAKE2b-256 add21e7c5d926b431f08310a8a7611a69513157159aeedb7852b5fa8d9a68837

See more details on using hashes here.

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