[MINC-users] Rawtominc problems

Andrew Janke a.janke at gmail.com
Tue Jul 7 21:03:16 EDT 2009


Hi Michael,

On Wed, Jul 8, 2009 at 02:58, Michael Alexander
Yee<michael.a.yee at vanderbilt.edu> wrote:
> I am trying to convert .img files (float) to .mnc using rawtominc, but I
> keep getting a "premature end of file" message and mincheader shows that
> several slices do not have a corresponding min/max.
>
> I have written:
>
> cat name.img | rawtominc -float -ofloat -scan_range -xstep 2 -ystep 2 -zstep
> 2 -xstart 46  -ystart 64  -zstart 37  name.mnc 91 109 91 -clobber -osigned

As Soren has already pointed out the -osigned argument will have no
effect for float values. My question is if these are ANALYZE? volumes
why not just use nii2mnc?

   $ nii2mnc name.hdr out.mnc

This will take care of all the various datatype issues that you might be having.


--
Andrew Janke
(a.janke at gmail.com || http://a.janke.googlepages.com/)
Canberra->Australia    +61 (402) 700 883



More information about the MINC-users mailing list