Commit before breaking everything
[matches/honours.git] / research / analysis and stuff / tcs scripts / au_vs_blackau.py
diff --git a/research/analysis and stuff/tcs scripts/au_vs_blackau.py b/research/analysis and stuff/tcs scripts/au_vs_blackau.py
new file mode 100755 (executable)
index 0000000..35a16eb
--- /dev/null
@@ -0,0 +1,50 @@
+#!/usr/bin/python
+
+#Deposition for the FIRST sample
+
+from process import *
+import odict
+import time
+
+smooth = [4, 7]
+
+tcsdir = "../../research/TCS/"
+imagedir = "au_vs_blackau/"
+
+os.system("mkdir -p " + imagedir.strip("/"))
+
+toplot = odict.odict([
+       ("BlackAu", [tcsdir+"2012-09-13/BlackAu/average.dat",1]),
+       ("Au on BlackAu", [tcsdir+"2012-09-13/Au on BlackAu/average.dat",1])
+
+])
+
+# I(E) (normalised) data
+gnuplot.reset()
+gnuplot("set term postscript colour")
+gnuplot("set output \""+imagedir+"normalised_data.eps\"")
+gnuplot("set title \"Au vs Black Au I(E) curves\"")
+gnuplot("set key top left")
+
+for f in toplot.items():
+       d = ShowData(f[1][0], title=f[0], plot=gnuplot.plot, calibrate=True, normalise=True)
+
+
+
+time.sleep(1)
+
+# TCS (normalised) data
+gnuplot.reset()
+gnuplot("set term postscript colour")
+gnuplot("set output \""+imagedir+"tcs_normalised.eps\"")
+gnuplot("set title \"Au vs Black AuS(E) curves\"")
+gnuplot("set key top right")
+
+for f in toplot.items():
+       d = ShowTCS(f[1][0], title=f[0], plot=gnuplot.plot, calibrate=True, normalise=True, with_="lp", smooth=smooth)
+
+
+time.sleep(1)
+
+#os.system("cd "+imagedir+"; for i in *.eps; do epstopdf --autorotate=All $i; done; rm *.eps")
+

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