# Convert nii.gz into DICOM series through python

**URL:** <https://discourse.slicer.org/t/convert-nii-gz-into-dicom-series-through-python/41675>\
**Category:** Development\
**Created:** [February 13, 2025, 9:51am UTC](https://discourse.slicer.org/t/convert-nii-gz-into-dicom-series-through-python/41675 "2025-02-13T09:51:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shabina\_A](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/shabina_a/32/79441_2.png) [@Shabina\_A](https://discourse.slicer.org/u/Shabina_A)\
**Post date:** [February 13, 2025, 9:51am UTC](https://discourse.slicer.org/t/convert-nii-gz-into-dicom-series-through-python/41675/1 "2025-02-13T09:51:09Z")

</div>

I did according to [Create DICOM series using python](https://discourse.slicer.org/t/create-dicom-series-using-python/22871)

But it is throwing in getNode raise MRMLNodeNotFoundException(“could not find nodes in the scene by name or id ‘%s’” % (pattern if (isinstance(pattern, str)) else “”))  
slicer.util.MRMLNodeNotFoundException: could not find nodes in the scene by name or id.

I want python script so I can convert ni.gz files into DICOM series.
