duli-eng / FourierTransform_Sunspots

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FourierTransform_Sunspots

Description

This python code uses the Discrete Fourier Transfrom theory (DFT) to depict the amplitude, frequency and power spectrum of the sunspots using yearly averages from 1700 to 2021.

Plots:

  1. Sampled wave, amplitude vs time 
  2. Discrete Fourier Tranform, amplitude vs frequency
  3. Inverse Discrete Fourier Tranform, amplitude(Sine & Cosine components) vs time
  4. Power Spectrum, |amplitude| vs frequency

Getting started

  1. Download Visual Studio Code for macOS or Windows
  2. Install Python Interpreter path 'venv 3.8.X'
  3. Run npm install git+{copied_url} to download all dependencies