mne.apply_forward_raw

mne.apply_forward_raw(fwd, stc, info, start=None, stop=None, on_missing='raise', verbose=None)[source]

Project source space currents to sensor space using a forward operator.

The sensor space data is computed for all channels present in fwd. Use pick_channels_forward or pick_types_forward to restrict the solution to a subset of channels.

The function returns a Raw object, which is constructed using provided info. The info object should be from the same MEG system on which the original data was acquired. An exception will be raised if the forward operator contains channels that are not present in the info.

Parameters
fwdForward

Forward operator to use. Has to be fixed-orientation.

stcSourceEstimate

The source estimate from which the sensor space data is computed.

infoinstance of Info

The measurement info.

startint, optional

Index of first time sample (index not time is seconds).

stopint, optional

Index of first time sample not to include (index not time is seconds).

on_missingstr

Behavior when stc has vertices that are not in fwd. Can be “ignore”, “warn””, or “raise”. Default is “raise”.

New in version 0.18.

verbosebool, str, int, or None

If not None, override default verbose level (see mne.verbose() and Logging documentation for more).

Returns
rawRaw object

Raw object with computed sensor space data.

See also

apply_forward

Compute sensor space data and return an Evoked object.