New answers tagged

0

So after further digging and following the partial answer above, I came up with this code/answer which should suffice if you got the 'amplitude spectrum' right away and works. import pandas as pd import numpy as np import matplotlib.pyplot as plt df = pd.read_csv('FLSP.csv', index_col = False) with pd.option_context('display.float_format', '{:0.20f}'....


1

This is a partial answer based on the discussion in comments below the question. If one already has an "amplitude spectrum" and one wants to convert to a power spectrum, all you have to do is take the absolute value of the amplitude and square it. In Python (introduced in the question) that's just np.abs(amplitude)**2. When you take the Discrete ...


Top 50 recent answers are included