mne.compute_proj_raw#
- mne.compute_proj_raw(raw, start=0, stop=None, duration=1, n_grad=2, n_mag=2, n_eeg=0, reject=None, flat=None, n_jobs=None, meg='separate', verbose=None)[source]#
- Compute SSP (signal-space projection) vectors on continuous data. - This function aims to find those SSP vectors that will project out the - nmost prominent signals from the data for each specified sensor type. Consequently, if the provided input data contains high levels of noise, the produced SSP vectors can then be used to eliminate that noise from the data.- Parameters:
- rawinstance of Raw
- A raw object to use the data from. 
- startfloat
- Time (in seconds) to start computing SSP. 
- stopfloat|None
- Time (in seconds) to stop computing SSP. None will go to the end of the file. 
- durationfloat|None
- Duration (in seconds) to chunk data into for SSP If duration is - None, data will not be chunked.
- n_gradint|floatbetween0and1
- Number of vectors for gradiometers. Either an integer or a float between 0 and 1 to select the number of vectors to explain the cumulative variance greater than - n_grad.
- n_magint|floatbetween0and1
- Number of vectors for magnetometers. Either an integer or a float between 0 and 1 to select the number of vectors to explain the cumulative variance greater than - n_mag.
- n_eegint|floatbetween0and1
- Number of vectors for EEG channels. Either an integer or a float between 0 and 1 to select the number of vectors to explain the cumulative variance greater than - n_eeg.
- rejectdict|None
- Epoch PTP rejection threshold used if - duration != None. See- Epochs.
- flatdict|None
- Epoch flatness rejection threshold used if - duration != None. See- Epochs.
- n_jobsint|None
- The number of jobs to run in parallel. If - -1, it is set to the number of CPU cores. Requires the- joblibpackage.- None(default) is a marker for ‘unset’ that will be interpreted as- n_jobs=1(sequential execution) unless the call is performed under a- joblib.parallel_configcontext manager that sets another value for- n_jobs. Number of jobs to use to compute covariance.
- megstr
- Can be - 'separate'(default) or- 'combined'to compute projectors for magnetometers and gradiometers separately or jointly. If- 'combined',- n_mag == n_gradis required and the number of projectors computed for MEG will be- n_mag.- New in v0.18. 
- verbosebool | str|int|None
- Control verbosity of the logging output. If - None, use the default verbosity level. See the logging documentation and- mne.verbose()for details. Should only be passed as a keyword argument.
 
- rawinstance of 
- Returns:
- projs: listofProjection
- List of projection vectors. 
 
- projs: 
 - See also 
