1 | #The two lines below are always needed and need to be run at least once before the other cammands will work |
---|
2 | #They setup various enviroment variables |
---|
3 | #from SET_env_pearl import * |
---|
4 | from pearl_routines_13_4 import * |
---|
5 | reload(sys.modules["pearl_routines_13_4"]) |
---|
6 | PEARL_startup("Calib","13_4") |
---|
7 | |
---|
8 | #for irun in range(82353,82363): |
---|
9 | # PEARL_focus(irun,"raw",fmode="trans",ttmode="TT88",atten=False,van_norm=False,debug=False) |
---|
10 | |
---|
11 | #PEARL_focus("82353_82362","raw",fmode="all",ttmode="TT88",atten=False,van_norm=False,debug=False) |
---|
12 | |
---|
13 | #PEARL_focus("82350_82352","raw",fmode="all",ttmode="TT88",atten=False,van_norm=True,debug=False) |
---|
14 | #PEARL_focus("81306_81309","raw",fmode="all",ttmode="TT88",atten=False,van_norm=True,debug=False) |
---|
15 | |
---|
16 | #PEARL_focus(80832,"raw",fmode="all",ttmode="TT88",atten=False,van_norm=False,debug=False) |
---|
17 | #PEARL_focus(81281,"raw",fmode="all",ttmode="TT88",atten=False,van_norm=False,debug=False) |
---|
18 | #PEARL_focus(81287,"raw",fmode="all",ttmode="TT88",atten=False,van_norm=False,debug=False) |
---|
19 | |
---|
20 | #PEARL_focus("80889_80897","raw",fmode="trans",ttmode="TT70",atten=False,van_norm=True,debug=False) |
---|
21 | #PEARL_focus("80898_80902","raw",fmode="trans",ttmode="TT70",atten=False,van_norm=True,debug=False) |
---|
22 | #PEARL_focus("80903_80909","raw",fmode="trans",ttmode="TT70",atten=False,van_norm=True,debug=False) |
---|
23 | |
---|
24 | # |
---|
25 | # Cycle 13/3 calibration data from standard 10mm diameter vanadium sphere target... |
---|
26 | # |
---|
27 | #PEARL_focus("81281_81289","raw",fmode="all",ttmode="TT35",atten=False,van_norm=False,debug=False) |
---|
28 | |
---|
29 | # |
---|
30 | # Empty S-E tank data... |
---|
31 | # |
---|
32 | #PEARL_focus("80094_80096","raw",fmode="all",ttmode="TT88",atten=False,van_norm=False,debug=False) |
---|
33 | #PEARL_focus("81302_81305","raw",fmode="all",ttmode="TT35",atten=False,van_norm=False,debug=False) |
---|
34 | # |
---|
35 | # NBS Si (SRM640c); data seem OK... |
---|
36 | # |
---|
37 | #PEARL_focus("80851_80863","raw",fmode="all",ttmode="TT70",atten=False,van_norm=True,debug=False) |
---|
38 | |
---|
39 | #PEARL_focus(81306,"s01",fmode="all",ttmode="TT70",atten=False,van_norm=True,debug=False) |
---|
40 | |
---|
41 | # |
---|
42 | # NBS CeO2 (SRM674a); data seem OK... |
---|
43 | # |
---|
44 | #PEARL_focus("81290_81301","raw",fmode="all",ttmode="TT70",atten=False,van_norm=True,debug=False) |
---|
45 | #PEARL_focus("80864_80876","raw",fmode="all",ttmode="TT70",atten=False,van_norm=True,debug=False) |
---|
46 | #PEARL_focus(80864,"raw",fmode="all",ttmode="TT70",atten=False,van_norm=True,debug=False) |
---|
47 | #PEARL_focus("81290_81301","raw",fmode="all",ttmode="TT70",atten=False,van_norm=True,debug=False) |
---|
48 | #PEARL_focus(81301,"raw",fmode="all",ttmode="TT70",atten=False,van_norm=True,debug=False) |
---|
49 | # |
---|
50 | # KTP sample (long d-spacings); data seem OK... |
---|
51 | # |
---|
52 | #PEARL_focus("82375_82381","raw",fmode="all",ttmode="TT70",atten=False,van_norm=True,debug=False) |
---|
53 | # To create the vanadium file for a cycle use the following, where the first set of runs are the vanadium and the second are the background in each case. |
---|
54 | newvanfile="van_spline_TT88_cycle_13_4.nxs" |
---|
55 | PEARL_createvan("82353_82362","82342_82349",ttmode="TT88",nvanfile=newvanfile,nspline=40,absorb=True,debug=True) |
---|
56 | #CloneWorkspace(InputWorkspace="Van_data",OutputWorkspace="van_tt88") |
---|
57 | |
---|
58 | #newvanfile="P:\Mantid\\Calibration\\van_spline_TT70_cycle_13_4.nxs" |
---|
59 | #PEARL_createvan("82353_82362","82342_82349",ttmode="TT70",nvanfile=newvanfile,nspline=40,absorb=True,debug=True) |
---|
60 | #CloneWorkspace(InputWorkspace="Van_data",OutputWorkspace="van_tt70") |
---|
61 | |
---|
62 | #newvanfile="P:\Mantid\\Calibration\\van_spline_TT35_cycle_13_4.nxs" |
---|
63 | #PEARL_createvan("82353_82362","82342_82349",ttmode="TT35",nvanfile=newvanfile,nspline=40,absorb=True,debug=True) |
---|
64 | #CloneWorkspace(InputWorkspace="Van_data",OutputWorkspace="van_tt35") |
---|
65 | |
---|
66 | # To produce an offset calibration file with NBS CeO2 data use: |
---|
67 | #offsetfile="P:\Mantid\\Calibration\\pearl_offset_13_4.cal" |
---|
68 | #PEARL_createcal("82363_82369",noffsetfile=offsetfile) |
---|
69 | #PEARL_createcal("81290_81301",noffsetfile=offsetfile) |
---|
70 | |
---|
71 | # To produce an offset calibration file with NBS Si data use: |
---|
72 | #offsetfile="P:\Mantid\\Calibration\\pearl_offset_12_5_si.cal" |
---|
73 | #PEARL_createcal_Si("78618_78619",noffsetfile=offsetfile) |
---|
74 | |
---|
75 | #To produce a basic grouping file use the command below. The final files need to be processing in excel to add the two theta selection. |
---|
76 | #ngroupfile="C:\PEARL\\test_cal_group_mods_11_1.cal" |
---|
77 | #PEARL_creategroup(71030,ngroupfile,"mod1,mod2,mod3,mod4,mod5,mod6,mod7,mod8,mod9,mod10,mod11,mod12") |
---|