calculate PSD after mne.extract_label_time_course

hello all,

I have extracted a single time series using “mne.extract_label_time_course”
I know have a single time series (simply an array of float64).
I would like to calculate the PSD of this time series. Is there a function in mne python that does that? (I do not have the stc object, so I cannot use one of the stc’s dedicated functions)

thank you!

code:

ts1= mne.extract_label_time_course(stc1, labels=label1, src=src_fs, mode=‘pca_flip’)

  • MNE version: e.g. 1.7.1
  • operating system: Windows 10

Hello, you can compute PSDs from arrays using the functions psd_array_welch() and psd_array_multitaper().

1 Like