This is the thesis
[matches/honours.git] / thesis / simulation / egun / movie.sh~
diff --git a/thesis/simulation/egun/movie.sh~ b/thesis/simulation/egun/movie.sh~
new file mode 100755 (executable)
index 0000000..2dd2e2d
--- /dev/null
@@ -0,0 +1,8 @@
+for i in *.dat; do
+       echo $i
+       out=$( echo $i | sed 's:\.dat::g')
+       gnuplot -e "set contour base; set cntrparam level incremental -1,0.25,1; unset surface; set table \"cont.dat\"; splot \"$i\" u 1:2:3; unset table; set term png size \"640,480\"; set output \"$out.png\"; set xrange [0:]; set yrange [0:]; set zrange [-1:1]; set title \"$i\"; unset key; set palette rgbformulae 33,13,10; plot \"$i\" w image, \"cont.dat\" w l lt -1 lw 1.5, \"electron.dat\" u 2:3 w lp"
+done
+
+ffmpeg -r 10 -b 1024k -i %d.png movie.mp4
+

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