Skip to main content

A Python module that implements NAFF algorithm

Project description

Authors:

  • Foteini Asvesta (fasvesta .at. cern .dot. ch)

  • Nikos Karastathis (nkarast .at. cern .dot. ch)

  • Panagiotis Zisopoulos (pzisopou .at. cern .dot. ch)

A Python module that implements the Numerical Analysis of Fundamental Frequencies method of J. Lashkar. The code works either as a script (as the original code of Lashkar) or loaded as a module in Python/Julia code or jupyter-like notebooks (i.e. SWAN).

Example of Usage

import PyNAFF as pnf
import numpy as np

t = np.linspace(1, 3000, num=3000, endpoint=True)
Q = 0.12345
signal = np.sin(2.0*np.pi*Q*t)
pnf.naff(signal, 500, 1, 0 , False)
# outputs an array of arrays for each frequency. Each sub-array includes:
# [order of harmonic, frequency, Amplitude, Re{Amplitude}, Im{Amplitude]


# My frequency is simply
pnf.naff(signal, 500, 1, 0 , False)[0][1]

– nkarast

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

PyNAFF-1.1.0.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

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

PyNAFF-1.1.0-py3-none-any.whl (1.6 kB view details)

Uploaded Python 3

File details

Details for the file PyNAFF-1.1.0.tar.gz.

File metadata

  • Download URL: PyNAFF-1.1.0.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for PyNAFF-1.1.0.tar.gz
Algorithm Hash digest
SHA256 c6ef1b9363493d77420185b47db4f4f6f0dae5dedcf5b348bc4b9d72d472d370
MD5 dfdf028096c25bb55ae282d81ca38d31
BLAKE2b-256 770eb490a723afb51ecc0737825c4902467bdb740fa7e0992d29998a4ce9765b

See more details on using hashes here.

File details

Details for the file PyNAFF-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for PyNAFF-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ec34a6b9ba1cddf21a5415ac3236e317b36220bf00b1002ce83e677ecf9f6fe6
MD5 ac0628011d6e9db229579ccbce907158
BLAKE2b-256 30337004c0b22d413be8c71992143aefb4414d11f5f7b8dbfe54e26c9d091db8

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