]> Creatis software - clitk.git/blobdiff - scripts/create_mhd_4D.sh
take into account compressed MHD files
[clitk.git] / scripts / create_mhd_4D.sh
index b363f7e3034c3143755923a3904b0fbbf8a7596e..ff45d631ecf4c5762a42161f9e2a5bef022d2c38 100755 (executable)
@@ -103,7 +103,7 @@ do
     fi
     nbph=`find $1 -maxdepth 1 -iname "*${prefix}*[0-9]*${suffix}*.mhd" | wc -l`
     orig=`find $1 -maxdepth 1 -iname "*${prefix}*[0-9]*${suffix}*.mhd" | sort | head -n 1`
-    listph=`find $1 -maxdepth 1 -iname "*${prefix}*[0-9]*${suffix}*.raw" | sort`
+    listph=`find $1 -maxdepth 1 -iname "*${prefix}*[0-9]*${suffix}*.[z*]raw" | sort`
 
     file_name_4D="${prefix}4D${suffix}.mhd"