@@ -0,0 +1,5 @@
+for f in *dcm;
+do
+ dcmodify -i "(0018,0021)=SP" -i "(0018,0020)=GR" -i "(0018,0023)=2D" -i "(0018,0081)=9.4" -i "(0018,0022)=SAT1" $f;
+done;
+
@@ -0,0 +1,32 @@
+#!/bin/bash
+if [ $# -lt 2 ] ;
+then
+ echo Usage $0 i0 i1;
+ exit 0;
+fi;
+i0=$1;
+i1=$2;
+DCM=$HOME/software/src/EMBRACE/dcmodify.sh
+mwd=$PWD;
+echo $mwd;
+for ((i=$i0;i<$i1;i++));
+ nm=`printf "LJU%03d" $i`;
+ cd $mwd/$nm;
+ $DCM;
+ rm *.bak;
+ cd $mwd;
+ ls $nm.zip;
+ for f in $nm/*.dcm;
+ do
+ zip $nm.zip $f;
+ done;
+ echo $nm;