detrending empty-room measurements

Hello MNE experts,

I used detrending on my epoched data to get rid of potential slow drifts. Do I also need to detrend my empty room measurements prior to calculating sensor covariance or does that not matter much? If I need to use it, I guess my main concern is managing the data types. As far as I understood, the function that calculates raw covariance does not accept epoched data as input, however detrending is applied in the epoching function when the data is loaded. Is there a way around this in MNE?

Thank you very much!

The mne.compute_covariance() takes epochs, so why not use that on the empty room data after you correct for detrending - versus the compute_raw_covariance.

Hope that helps.

–Jeff

1 Like