solarspatialtools.signalproc.averaged_psd
- solarspatialtools.signalproc.averaged_psd(input_tsig, navgs, overlap=0.5, window='hamming', detrend='linear', scaling='density')
Calculate an averaged power spectral density for a signal.
Parameters
- input_tsignumeric
Pandas type with the TF input time signal. Index must be time.
- navgsint
The number of averages to use based on zero overlap. Overlap will result in more averages.
- overlapfloat (default 0.5)
Percentage overlap between the averages
- windowstring (default ‘hamming’)
The window type to use.
- detrendstring
Detrend type (‘linear’ or ‘constant’). See scipy.signal.welch for more information.
- scalingstring (default ‘density’)
The type of scaling to request from scipy. See scipy.signal.welch for more info
Returns
- outputSeries
Pandas Series containing the power spectral density with an index of the frequency.