Whenever I run fslvbm_2_template I run into the same problem: (MAC OS 10.6.2) 1. fslvbm2a.e and a.o files are empty 2. no template is returned 3. fslvbm2a file reads as below Last login: Wed Feb 17 10:15:05 on ttys000 /Users/lkphome/imaging/fsl/fslvbm/struc/fslvbm2a ; exit; lkphome:~ lkphome$ /Users/lkphome/imaging/fsl/fslvbm/struc/fslvbm2a ; exit; ** ERROR (nifti_image_read): failed to find header file for 'CONT_SS_01_struc_brain' ** ERROR: nifti_image_open(CONT_SS_01_struc_brain): bad header info Error: failed to open file CONT_SS_01_struc_brain ERROR: Could not open image CONT_SS_01_struc_brain Image Exception : #22 :: Failed to read volume CONT_SS_01_struc_brain terminate called after throwing an instance of 'RBD_COMMON::BaseException' /Users/lkphome/imaging/fsl/fslvbm/struc/fslvbm2a: line 1: 4325 Abort trap /Users/lkphome/imaging/fsl/bin/fast -R 0.3 -H 0.1 CONT_SS_01_struc_brain ** ERROR (nifti_image_read): failed to find header file for 'CONT_SS_03_struc_brain' ** ERROR: nifti_image_open(CONT_SS_03_struc_brain): bad header info Error: failed to open file CONT_SS_03_struc_brain ERROR: Could not open image CONT_SS_03_struc_brain Image Exception : #22 :: Failed to read volume CONT_SS_03_struc_brain terminate called after throwing an instance of 'RBD_COMMON::BaseException' /Users/lkphome/imaging/fsl/fslvbm/struc/fslvbm2a: line 2: 4375 Abort trap /Users/lkphome/imaging/fsl/bin/fast -R 0.3 -H 0.1 CONT_SS_03_struc_brain ** ERROR (nifti_image_read): failed to find header file for 'CONT_SS_07_struc_brain' I did the folowing thisngs which did not help 1. fslswapdim all images to orient in standard template alignments before running bet: still same problem persist 2. appended export COMMAND_MODE=LEGACY to .bash_profile (James Kyle suggestion in maillist list dated 14 Mar 2008 to circumvent echo-n problem ) 3. tried running fsl under tcsh shell NO SUCCESS so far. Any help will be a big relief!! Cheers Lena This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.