1 | # create table workspace and parent log workspace |
---|
2 | LoadSpiceAscii(Filename='HB2A_exp0231_scan0001.dat', |
---|
3 | IntegerSampleLogNames="Sum of Counts, scan, mode, experiment_number", |
---|
4 | FloatSampleLogNames="samplemosaic, preset_value, Full Width Half-Maximum, Center of Mass", |
---|
5 | DateAndTimeLog='date,MM/DD/YYYY,time,HH:MM:SS AM', |
---|
6 | OutputWorkspace='Exp0231DataTable', |
---|
7 | RunInfoWorkspace='Exp0231ParentWS') |
---|
8 | |
---|
9 | # load for HB2A |
---|
10 | ConvertSpiceDataToRealSpace(InputWorkspace='Exp0231DataTable', |
---|
11 | RunInfoWorkspace='Exp0231ParentWS', |
---|
12 | OutputWorkspace='Exp0231DataMD', |
---|
13 | OutputMonitorWorkspace='Exp0231MonitorMD') |
---|
14 | |
---|
15 | # Get raw counts of DetID = 20 out |
---|
16 | ws = GetSpiceDataRawCountsFromMD(InputWorkspace='Exp0231DataMD', MonitorWorkspace='Exp0231MonitorMD', |
---|
17 | OutputWorkspace='Det20Counts2Theta', DetectorID=20) |
---|
18 | |
---|
19 | # Get raw counts of DetID = 20 out |
---|
20 | ws = GetSpiceDataRawCountsFromMD(InputWorkspace='Exp0231DataMD', MonitorWorkspace='Exp0231MonitorMD', Mode='Pt.', |
---|
21 | Pt=10, OutputWorkspace='Pt10Counts') |
---|
22 | |
---|
23 | # Get raw counts of DetID = 20 out |
---|
24 | ws = GetSpiceDataRawCountsFromMD(InputWorkspace='Exp0231DataMD', MonitorWorkspace='Exp0231MonitorMD', |
---|
25 | OutputWorkspace='Det20CountsPt', DetectorID=20, XLabel='Pt.') |
---|
26 | |
---|
27 | # Get raw counts of DetID = 20 out |
---|
28 | ws = GetSpiceDataRawCountsFromMD(InputWorkspace='Exp0231DataMD', MonitorWorkspace='Exp0231MonitorMD', |
---|
29 | Mode='Sample Log', |
---|
30 | OutputWorkspace='TwoTheta_Pt', SampleLogName='2theta') |
---|
31 | |
---|
32 | # Get raw counts of DetID = 20 out |
---|
33 | ws = GetSpiceDataRawCountsFromMD(InputWorkspace='Exp0231DataMD', MonitorWorkspace='Exp0231MonitorMD', |
---|
34 | Mode='Sample Log', |
---|
35 | OutputWorkspace='Vti_Pt', SampleLogName='vti') |
---|
36 | |
---|
37 | # Get raw counts of DetID = 20 out |
---|
38 | ws = GetSpiceDataRawCountsFromMD(InputWorkspace='Exp0231DataMD', MonitorWorkspace='Exp0231MonitorMD', |
---|
39 | Mode='Sample Log', |
---|
40 | OutputWorkspace='Sorb_Sorb', SampleLogName='sorb', XLabel='sorb') |
---|
41 | |
---|
42 | |
---|
43 | |
---|