# Crop dicom around a point, automate the process

**URL:** <https://discourse.slicer.org/t/crop-dicom-around-a-point-automate-the-process/33248>\
**Category:** Support\
**Tags:** dicom\
**Created:** [December 6, 2023, 11:10am UTC](https://discourse.slicer.org/t/crop-dicom-around-a-point-automate-the-process/33248 "2023-12-06T11:10:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![winnfr](https://avatars.discourse-cdn.com/v4/letter/w/eb8c5e/32.png) [@winnfr](https://discourse.slicer.org/u/winnfr)\
**Post date:** [December 6, 2023, 11:10am UTC](https://discourse.slicer.org/t/crop-dicom-around-a-point-automate-the-process/33248/1 "2023-12-06T11:10:10Z")

</div>

Hi,  
I use slicer to display some dicom files (3D scans) and save them as a nrrd file.  
The nrrd file is too big for me, I need to crop this file around the center of the cube.  
How can I do this?

I need to do for at least 300 Dicom file, is there a way to automate the process to deal with this amount of file? by writing a python script for instance?  
Thanks for any pointers or advice to do this.
