From be94ee5e0eeb8b6bf0edfd4bc888f01d96aa4a57 Mon Sep 17 00:00:00 2001
From: Saad Jbabdi <saad@fmrib.ox.ac.uk>
Date: Fri, 28 Nov 2008 16:39:49 +0000
Subject: [PATCH] added an extra line to allow 3 digit numbers

---
 ocmr_preproc | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/ocmr_preproc b/ocmr_preproc
index 8a2a688..2bffceb 100755
--- a/ocmr_preproc
+++ b/ocmr_preproc
@@ -19,11 +19,16 @@ nlp=`echo *lp2d_* |wc -w`
 if [ $nep -gt 1 ];then 
     a1=`imglob images_?_*ep2d_*`
     a2=`imglob images_??_*ep2d_*`
-    fslmerge -t big4D $a1 $a2
+    a3=`imglob images_???_*ep2d_*`
+    
+    fslmerge -t big4D $a1 $a2 $a3
+
 elif [ $nlp -gt 1 ];then 
     a1=`imglob images_?_*lp2d_*`
     a2=`imglob images_??_*lp2d_*`
-    fslmerge -t big4D $a1 $a2
+    a3=`imglob images_???_*lp2d_*`
+    fslmerge -t big4D $a1 $a2 $a3
+
 fi
 
 #nslices=${1}
-- 
GitLab