1 | |
---|
2 | vanadium_raw_file = "WISH00018589.RAW" |
---|
3 | sample_raw_file = "WISH00017986.RAW" |
---|
4 | |
---|
5 | #load workspaces |
---|
6 | LoadRaw(Filename=vanadium_raw_file, OutputWorkspace="vanadium"); |
---|
7 | SmoothNeighbours(InputWorkspace="vanadium", OutputWorkspace="smoothed_vanadium",Radius=3,WeightedSum='Flat',NumberOfNeighbours=35) |
---|
8 | DeleteWorkspace(Workspace='vanadium') |
---|
9 | |
---|
10 | LoadRaw(Filename=sample_raw_file, OutputWorkspace="sample"); |
---|
11 | SmoothNeighbours(InputWorkspace="sample", OutputWorkspace="smoothed_sample",Radius=3,WeightedSum='Flat',NumberOfNeighbours=35) |
---|
12 | DeleteWorkspace(Workspace='sample') |
---|
13 | |
---|
14 | SmoothData(InputWorkspace="smoothed_vanadium", OutputWorkspace="smoothed_vanadium",NPoints=50); |
---|
15 | |
---|
16 | Divide(LHSWorkspace="smoothed_sample", RHSWorkspace="smoothed_vanadium",OutputWorkspace="normalised_sample"); |
---|
17 | |
---|
18 | DeleteWorkspace(Workspace='smoothed_vanadium') |
---|
19 | DeleteWorkspace(Workspace='smoothed_sample') |
---|
20 | |
---|
21 | ReplaceSpecialValues(InputWorkspace='normalised_sample',OutputWorkspace='normalised_sample',NaNValue='0',InfinityValue='10000',InfinityError='10000',BigNumberThreshold='10000',BigNumberValue='10000',BigNumberError='10000') |
---|
22 | FindSXPeaks(InputWorkspace='product',SignalBackground='100',Resolution='0.20000000000000001',OutputWorkspace='csp79590_1_peaks') |
---|
23 | |
---|