Hi Robert

disk space and permissions are really the only two things I can think of. 
Can you try writing it somewhere else? Or using .mgz as output (or .nii 
without the .gz)?

cheers
Bruce

On Wed, 4 Jan 2017, Wujek, Robert 
wrote:

> I'm trying to convert a group of .dcm files to .nii.gz, but I've been getting 
> the following output with an error at the end...
>
> mri_convert IM-0020-0001.dcm example.nii.gz
>
> $Id: mri_convert.c,v 1.179.2.2 2011/05/16 20:53:47 greve Exp $
>
> reading from IM-0020-0001.dcm...
>
> Starting DICOMRead2()
>
> dcmfile = /Users/Desktop/example/IM-0020-0001.dcm
>
> dcmdir = /Users/Desktop/example
>
> Ref Series No = 23
>
> Found 482 files, checking for dicoms
>
> Found 480 dicom files in series.
>
> First Sorting
>
> Computing Slice Direction
>
> Vs: 0 0 3
>
> Vs: 0 0 1
>
> Second Sorting
>
> Counting frames
>
> nframes = 6
>
> nslices = 80
>
> ndcmfiles = 480
>
> PE Dir = ROW (dicom read)
>
> TransferSyntaxUID: --1.2.840.10008.1.2.1--
>
> jpegUID:           --1.2.840.10008.1.2.4--
>
> Loading pixel data
>
> TR=7584.00, TE=11.10, TI=1500.00, flip angle=111.00
>
> i_ras = (-1, 0, 0)
>
> j_ras = (0, -1, 0)
>
> k_ras = (-0, -0, 1)
>
> writing to example.nii.gz...
>
> niiWrite(): error opening file example.nii.gz
>
> ERROR: failure writing example.nii.gz?
>
> I'm wondering how I should interpret this error. I have disk space, and 
> proper permissions. I also have experience using mri_convert with other 
> projects, so generally speaking, I am capable with this script. I would 
> appreciate any suggestions. Thank you.
>
> -Robert Wujek?
>
>
> _______________________________________________
> Freesurfer mailing list
> Freesurfer@nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
>
>
>
_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.

Reply via email to