# make new channel based on linear derivation of	existing channels

**URL:** <https://mne.discourse.group/t/make-new-channel-based-on-linear-derivation-of-existing-channels/2285>\
**Category:** Mailing List Archive (read-only)\
**Tags:** list-archive\
**Created:** [August 10, 2020, 4:59am UTC](https://mne.discourse.group/t/make-new-channel-based-on-linear-derivation-of-existing-channels/2285 "2020-08-10T04:59:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [August 10, 2020, 4:59am UTC](https://mne.discourse.group/t/make-new-channel-based-on-linear-derivation-of-existing-channels/2285/1 "2020-08-10T04:59:30Z")

</div>

External Email - Use Caution

Hello, I?m trying to find out how to add a new channel that is equal to Channel X ? Channel Y. How do I do this for raw data?  
I know I could extract the data and do it that way, but surely theres a way to keep it in the raw data structure?

Thanks!

-------------- next part --------------  
An HTML attachment was scrubbed...  
URL: [http://mail.nmr.mgh.harvard.edu/pipermail/mne\_analysis/attachments/20200810/118b9f6e/attachment.html](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200810/118b9f6e/attachment.html)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [August 10, 2020, 1:20pm UTC](https://mne.discourse.group/t/make-new-channel-based-on-linear-derivation-of-existing-channels/2285/2 "2020-08-10T13:20:50Z")

</div>

External Email - Use Caution

hi,

see if [https://mne.tools/stable/generated/mne.set\_bipolar\_reference.html](https://mne.tools/stable/generated/mne.set_bipolar_reference.html)  
can help

Alex

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [August 10, 2020, 2:54pm UTC](https://mne.discourse.group/t/make-new-channel-based-on-linear-derivation-of-existing-channels/2285/3 "2020-08-10T14:54:02Z")

</div>

External Email - Use Caution

Sounds like maybe you want

[https://mne.tools/dev/generated/mne.set\_bipolar\_reference.html](https://mne.tools/dev/generated/mne.set_bipolar_reference.html)

Alternatively, you could do equivalent calculations using raw.get\_data(),  
RawArray, and raw.add\_channels.

Eric
