# Compute PSD from a CSV file

I'm sorry if my question might be simple, but I don't have a strong background on signal processing. I have a csv file of a 8 MHz bandwidth, sampled with a resolution bandwidth of 100 KHz. What I want to do is to compute the PSD over the 8 MHz bandwidth, but I'm not sure if I am doing this correctly.

For a "stable" signal, I multiply the received power over the 100 KHz sample, and then average it at the end over 8 MHz. Is that correct? Does this give me a rough estimation of the PSD?

Are there tools like octave or even python programming that can help in this process? I looked on the internet but didn't had luck.

• What do you mean by resolution bandwidth? That term is typically used on equipment like spectrum analyzers to refer to the approximate bandwidth for each frequency bin (for digital FFT-based analyzers) or for the analog bandwidth of the front end receiver (for swept-tune analyzers). Specifically, what is the sample rate of your data? – Jason R Sep 22 '13 at 23:57

matplotlib.pyplot as pl

and you get a nice plot, along with the PSD data in Pxx and the frequencies in freqs.