krischer/mtspec

Is the code calculating the amplitude spectrum or the PSD?

Closed this issue · 2 comments

Hi,

I have a silly question, are mtspec and sine_psd calculating the amplitude spectrum or the power spectral density (square of the amplitude spectrum)?

I've looked in the source and in both mtspec and sine_psd the calculated quantity is referred to as "the spectrum" but it's unclear what the actual quantity is.

if you could clarify it would be very helpful. Thank you!

Hi,

both should calculate the power spectral density. The documentation for the Fortran mtspec package is in general a bit more extensive.

Cheers!

f886225 updates the docstrings to specify this.