# ECoG data format

**URL:** <https://mne.discourse.group/t/ecog-data-format/3622>\
**Category:** Support & Discussions\
**Tags:** mne-bids\
**Created:** [August 31, 2021, 3:22pm UTC](https://mne.discourse.group/t/ecog-data-format/3622 "2021-08-31T15:22:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Res](https://avatars.discourse-cdn.com/v4/letter/r/ba9def/32.png) [@Res](https://mne.discourse.group/u/Res)\
**Post date:** [August 31, 2021, 3:22pm UTC](https://mne.discourse.group/t/ecog-data-format/3622/1 "2021-08-31T15:22:58Z")

</div>

I’m trying to analyse some ECoG data through MNE. I saw the tutorial on how to convert the format .edf to bids (this one: [08. Convert iEEG data to BIDS format — MNE-BIDS 0.8 documentation](https://mne.tools/mne-bids/stable/auto_examples/convert_ieeg_to_bids.html)) but my data are in a different format, .npz. Is there a way to upload and preprocess this data with MNE?

---

<div class="post-metadata">

**Author:** ![sappelhoff](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/sappelhoff/32/3276_2.png) [@sappelhoff](https://mne.discourse.group/u/sappelhoff)\
**Post date:** [September 1, 2021, 7:32am UTC](https://mne.discourse.group/t/ecog-data-format/3622/2 "2021-09-01T07:32:18Z")

</div>

Hey @Res I think that `.npz` files are just a bunch on numpy arrays. See also: [numpy.savez — NumPy v1.21 Manual](https://numpy.org/doc/stable/reference/generated/numpy.savez.html)

You can certainly read those in MNE-Python. See the following tutorial: [Creating MNE-Python data structures from scratch — MNE 0.23.0 documentation](https://mne.tools/stable/auto_tutorials/simulation/10_array_objs.html?highlight=scratch)

All you need is some basic knowledge about numpy and the tutorial I linked.
