# Spatial information in STC

**URL:** <https://mne.discourse.group/t/spatial-information-in-stc/6335>\
**Category:** Support & Discussions\
**Created:** [February 13, 2023, 11:58am UTC](https://mne.discourse.group/t/spatial-information-in-stc/6335 "2023-02-13T11:58:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rauf](https://avatars.discourse-cdn.com/v4/letter/r/d26b3c/32.png) [@Rauf](https://mne.discourse.group/u/Rauf)\
**Post date:** [February 13, 2023, 11:58am UTC](https://mne.discourse.group/t/spatial-information-in-stc/6335/1 "2023-02-13T11:58:17Z")

</div>

Hi  
I was wondering if there is any spatial information in .stc file. I have an .stc file with size of 7498 X 421. Out of which i assume 7498 is the number of sources and 421 is the time length of each source. Is there a way to know the spatial information about any source (out of these 7498)? If it is not, then is such information present in .src file ? Because over there too, the number of vertexes do not match. I need to know the spatial position of each source present in stc file and i cannot find a way to figure that out.  
Thanks  
Rauf

---

<div class="post-metadata">

**Author:** ![ktyner](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/ktyner/32/989_2.png) [@ktyner](https://mne.discourse.group/u/ktyner)\
**Post date:** [February 16, 2023, 6:54pm UTC](https://mne.discourse.group/t/spatial-information-in-stc/6335/2 "2023-02-16T18:54:27Z")

</div>

> [@Rauf](#):
>
> I was wondering if there is any spatial information in .stc file. I have an .stc file with size…

Hi Rauf,

Not sure if this answers your question, but this is what I do… The stc object contains a list of the vertices used for each source (lh\_vertno and rh\_vertno). You can feed those vertices to the function mne.vertex\_to\_mni, and this will return to you the coordinates (MNI coordinates, in mm) of each source.

Hopefully that helps!

---

<div class="post-metadata">

**Author:** ![Rauf](https://avatars.discourse-cdn.com/v4/letter/r/d26b3c/32.png) [@Rauf](https://mne.discourse.group/u/Rauf)\
**Post date:** [February 23, 2023, 9:38am UTC](https://mne.discourse.group/t/spatial-information-in-stc/6335/3 "2023-02-23T09:38:57Z")

</div>

Thanks Ktyner. Your suggestion was very helpful

---

<div class="post-metadata">

**Author:** ![zhangmingze](https://avatars.discourse-cdn.com/v4/letter/z/77aa72/32.png) [@zhangmingze](https://mne.discourse.group/u/zhangmingze)\
**Post date:** [August 6, 2024, 9:56am UTC](https://mne.discourse.group/t/spatial-information-in-stc/6335/4 "2024-08-06T09:56:41Z")

</div>

I have the same question，how can i use the mne.vertex\_to\_mni to read spatial information,can you tell me the details?
