b88e055371315456b1508f1078aa9b447d00795f
[matches/honours.git] / research / analysis and stuff / tcs scripts / si_substrate.py~
1 #!/usr/bin/python
2
3 from process import *
4 import odict
5 import time
6
7 tcsdir = "../../research/TCS/"
8
9
10 smooth=[2,5]
11 #os.system("rm -rf si_substrate")
12 os.system("mkdir -p si_substrate")
13
14 toplot = odict.odict([
15         ("Si Substrate" , tcsdir+"2012-09-20/171922.dat"),
16         ("+5min" , tcsdir+"2012-09-20/172442.dat"),
17         ("+1hour" , tcsdir+"2012-09-20/181935.dat"),
18         ("+2hour" , tcsdir+"2012-09-20/192017.dat"),
19         ("+7day" , tcsdir+"2012-09-27/Si/095131.dat")
20 ])
21
22 # I(E) data
23 gnuplot.reset()
24
25 for f in toplot.items():
26         d = ShowData(f[1], title=f[0], plot=gnuplot.replot, calibrate=True)
27
28 gnuplot("set term postscript colour")
29 gnuplot("set output \"si_substrate/raw_data.eps\"")
30 gnuplot("set title \"Evolution of Si Substrate I(E) curves\"")
31 gnuplot("set key top left")
32 gnuplot.replot()
33
34 time.sleep(1)
35
36 #sys.exit(0)
37
38 # NORMALISED I(E) data
39 gnuplot.reset()
40 gnuplot("set term wxt")
41
42 for f in toplot.items():
43         d = ShowData(f[1], title=f[0], plot=gnuplot.replot, calibrate=True, normalise=True)
44 gnuplot("set term postscript colour")
45 gnuplot("set output \"si_substrate/normalised_data.eps\"")
46 gnuplot("set title \"Evolution of Si Substrate Normalised I(E) curves\"")
47 gnuplot("set key top left")
48 gnuplot.replot()
49 time.sleep(1)
50
51 # TCS data
52 gnuplot.reset()
53 gnuplot("set term wxt")
54 gnuplot("set term postscript colour")
55 gnuplot("set output \"si_substrate/tcs.eps\"")
56 gnuplot("set title \"Evolution of Si Substrate TCS\"")
57 gnuplot("set key top right")
58
59 for f in toplot.items():
60         #gnuplot.reset()
61         d = ShowTCS(f[1], title=f[0], plot=gnuplot.replot, calibrate=True, smooth=smooth)
62
63
64 time.sleep(1)
65 # NORMALISED TCS data
66 gnuplot.reset()
67 gnuplot("set term wxt")
68 gnuplot("set term postscript colour")
69 gnuplot("set output \"si_substrate/tcs_normalised.eps\"")
70 gnuplot("set title \"Evolution of Si Substrate Normalised TCS\"")
71 gnuplot("set key top right")
72
73 for f in toplot.items():
74         gnuplot.reset()
75         d = ShowTCS(f[1], title=f[0], plot=gnuplot.replot, normalise=True, calibrate=True, smooth=smooth)
76
77 time.sleep(1)
78 #os.system("cd si_substrate; for i in *.eps; do epstopdf --autorotate=All $i; done; rm *.eps")
79

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