# DWIconvert error

**URL:** <https://discourse.slicer.org/t/dwiconvert-error/10561>\
**Category:** Support\
**Created:** [March 5, 2020, 4:55pm UTC](https://discourse.slicer.org/t/dwiconvert-error/10561 "2020-03-05T16:55:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nabin](https://avatars.discourse-cdn.com/v4/letter/n/d9b06d/32.png) [@nabin](https://discourse.slicer.org/u/nabin)\
**Post date:** [March 5, 2020, 4:55pm UTC](https://discourse.slicer.org/t/dwiconvert-error/10561/1 "2020-03-05T16:55:42Z")

</div>

Operating system: macos 10.14.6  
Slicer version: 4.10.2

Dear 3Dslicer team,

I am trying to visualize a FSL output file in slicer. I am trying to convert the output nifti file to .nrrd format using DWIconvert but unfortunately does not work. It says the gradients does not match the volumes. I ran the whole process with FSL and there was no problem, so was wondering what could be wrong with my bvectors. Or am I missing something here. Your hint would be very much appreciated.  
Thank you.

Error message:

_Diffusion-weighted DICOM Import (DWIConvert) standard error:_

_libc++abi.dylib: terminating with uncaught exception of type itk::ExceptionObject: /Volumes/Dashboards/Stable/Slicer-4102-build/BRAINSTools/DWIConvert/DWIConvertLib.cxx:108:_

_itk::ERROR: Exception creating converter_

_itk::ExceptionObject (0x7fe6b0f79f70)_

_Location: “unknown”_

_File: /Volumes/Dashboards/Stable/Slicer-4102-build/BRAINSTools/DWIConvert/DWIConverter.cxx_

_Line: 227_

_Description: itk::ERROR: number of Gradients doesn’t match number of volumes:129 != 1_

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [March 5, 2020, 8:26pm UTC](https://discourse.slicer.org/t/dwiconvert-error/10561/2 "2020-03-05T20:26:23Z")

</div>

You can try dcm2niix, which supports both nifti and nrrd. It is available stand-alone or part of SlicerDMRI.

> **[rordenlab/dcm2niix](https://github.com/rordenlab/dcm2niix)**
>
> dcm2nii DICOM to NIfTI converter: compiled versions available from NITRC - rordenlab/dcm2niix
