1 | SXD23767 = Load(Filename='SXD23767.raw', LoadMonitors='Exclude') |
---|
2 | |
---|
3 | QLab=ConvertToMD( InputWorkspace=SXD23767, QDimensions="Q3D", |
---|
4 | dEAnalysisMode="Elastic", QConversionScales="Q in A^-1", |
---|
5 | LorentzCorrection='1', MinValues=[-15,-15,-15], MaxValues=[15,15,15], |
---|
6 | SplitInto='2', SplitThreshold='50',MaxRecursionDepth='14' ) |
---|
7 | |
---|
8 | peaks_qLab = FindPeaksMD(InputWorkspace=QLab, MaxPeaks=300, DensityThresholdFactor=10,PeakDistanceThreshold=1.0) |
---|
9 | |
---|
10 | FindUBUsingFFT(PeaksWorkspace=peaks_qLab, MinD='3', MaxD='5',Tolerance=0.08) |
---|
11 | |
---|
12 | IndexPeaks(PeaksWorkspace=peaks_qLab,Tolerance=0.12,RoundHKLs=1) |
---|
13 | |
---|
14 | CopySample(InputWorkspace=peaks_qLab, OutputWorkspace=SXD23767, CopyLattice=True, CopyName=False, CopyShape=False, CopyMaterial=False,CopyEnvironment=False) |
---|
15 | |
---|
16 | AddSampleLog(Workspace='SXD23767',LogName='phi',LogText='0',LogType='Number') |
---|
17 | AddSampleLog(Workspace='SXD23767',LogName='chi',LogText='0',LogType='Number') |
---|
18 | AddSampleLog(Workspace='SXD23767',LogName='omega',LogText='0',LogType='Number') |
---|
19 | SetGoniometer(Workspace='SXD23767',Goniometers='Universal') |
---|
20 | |
---|
21 | ConvertToMD(InputWorkspace='SXD23767',OutputWorkspace='HKL',QDimensions='Q3D',dEAnalysisMode='Elastic',Q3DFrames='HKL',QConversionScales='HKL',MinValues='-10,-10,-10',MaxValues='10,10,10') |
---|
22 | |
---|