Commit before breaking everything
[matches/honours.git] / research / TCS / movie.sh
index 685d9d1..12141e1 100755 (executable)
@@ -7,7 +7,7 @@ if [ "$#" == "0" ]; then
 fi
 
 i=1
-plot=/home/sam/Documents/University/honours/research/TCS/plot2.sh
+plot=/home/sam/Documents/University/honours/research/TCS/plot.sh
 process=/home/sam/Documents/University/honours/research/TCS/max_normalise.sh
 process2=3
 #process="" # Do nothing
@@ -17,12 +17,12 @@ mkdir -p images
 for arg in $@; do
        echo "Plotting $arg"
        if [ "$process" != "" ]; then
-               echo "Process: $process $arg $process2 > $arg.p.dat"
-               $process $arg $process2 > tmp.dat
-               $plot tmp.dat images/$i.png
+               echo "Process: $process $arg $process2 > $arg.p"
+               $process $arg $process2 > $arg.p
+               $plot $arg.p images/$i.png $1.p
                
        else
-               $plot $arg images/$i.png $1.p.dat
+               $plot $arg images/$i.png $1
        fi
        
        i=$(( $i + 1 ))
@@ -32,4 +32,4 @@ cd images
 
 ffmpeg -r 10 -b 1024k -i %d.png movie.mp4
 
-rm -f *.p.dat
+rm -f *dat.p

UCC git Repository :: git.ucc.asn.au