Bill,
You can try breaking apart the flash30.mgz file like this:
foreach f (0 1 2 3 4 5 6 7) mri_convert -f $f flash30.mgz flash30_f${f}.mgz end
and grad_unwarp each file.
Nick
On Tue, 2008-04-22 at 08:24 -0400, Bill Monaco wrote:
Hi,
I'm in the stable 4 environment of FreeSurfer and am getting an errorwhen I try to grad_unwarp a volume that comes out of unpacksdcmdir. The rror I get is:
gradfilename is /autofs/space/windu_006/users/grad_unwarp_bash_MartinosCenter/grad_unwarp_tables/avanto.gwv. Loading... Unwarp data loaded. slice 1/128 9.1e-05 ??? Error using ==> interp3 V must be a 3-D array.
Error in ==> unwarp_resample at 206 im1vec = interp3(imvol,C1,R1,S1,interp_method);
Error in ==> convert_unwarp_resample at 211 [volout, Mout] = unwarp_resample(vol,M,size_out,Mout,Mdc,unwarpflag,jacflag,0,interp_method,inflag,thruflag,gradwarpfile);
ERROR: output file not created
I think the problem is the dimensions of the volume I'm trying to unwarp are off. When I type:
mri_info flash30.mgz
I see:
type: MGH dimensions: 256 x 256 x 128 x 8 voxel sizes: 1.0000, 1.0000, 1.3300 type: SHORT (4) fov: 256.000 dof: 0
Any suggestions as to the best way to get around this problem?
Thanks,
Bill