# Acess DICOM metadata

**URL:** <https://discourse.slicer.org/t/acess-dicom-metadata/9883>\
**Category:** Development\
**Tags:** dicom, python\
**Created:** [January 20, 2020, 5:23pm UTC](https://discourse.slicer.org/t/acess-dicom-metadata/9883 "2020-01-20T17:23:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![electus](https://avatars.discourse-cdn.com/v4/letter/e/b5a626/32.png) [@electus](https://discourse.slicer.org/u/electus)\
**Post date:** [January 20, 2020, 5:23pm UTC](https://discourse.slicer.org/t/acess-dicom-metadata/9883/1 "2020-01-20T17:23:14Z")

</div>

Hello guys,

I am trying to access the metadata of a loaded CT in an extension that I am writing in Python.  
For example i would like to the number of colums, rows and slices and the voxel sizes.  
How can I access this data?

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [January 20, 2020, 7:17pm UTC](https://discourse.slicer.org/t/acess-dicom-metadata/9883/2 "2020-01-20T19:17:36Z")

</div>

Have a look at [DICOM examples in the script repository](https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#DICOM_2) and let us know if you still have questions.

---

<div class="post-metadata">

**Author:** ![electus](https://avatars.discourse-cdn.com/v4/letter/e/b5a626/32.png) [@electus](https://discourse.slicer.org/u/electus)\
**Post date:** [January 20, 2020, 11:56pm UTC](https://discourse.slicer.org/t/acess-dicom-metadata/9883/3 "2020-01-20T23:56:38Z")

</div>

Thanks  
I guess I’ll find everything from there
