Ticket #4809: mdhistos_from_4D.py

File mdhistos_from_4D.py, 1.5 KB (added by Owen Arnold, 9 years ago)
Line 
1LoadMD(Filename='SEQ_MDEW.nxs', OutputWorkspace='SEQ')
2# Rebinned 4D MDHistoWorkspace
3SliceMD(InputWorkspace='SEQ', AlignedDimX='[Qh,0,0],0,0.5,20', AlignedDimY='[0.5Qh,0.866Qk,0],-0.75,-0.25,20', AlignedDimZ='[0,0,Ql],-0.9,-0.55,20', AlignedDimT='DeltaE,17,22,20', OutputWorkspace='SEQ_4D_rebin')
4# Rebinned 4D->3D MDHistoWorkspace
5SliceMD(InputWorkspace='SEQ', AlignedDimX='[Qh,0,0],0,0.5,20', AlignedDimY='DeltaE,17,22,20', AlignedDimZ='[0.5Qh,0.866Qk,0],-0.75,-0.25,20', OutputWorkspace='SEQ_3D_rebin')
6# Rebinned 4D->2D MDHistoWorkspace
7SliceMD(InputWorkspace='SEQ', AlignedDimX='[Qh,0,0],0,0.5,20', AlignedDimY='DeltaE,17,22,20', OutputWorkspace='SEQ_2D_rebin')
8# Rebinned 4D->1D MDHistoWorkspace
9SliceMD(InputWorkspace='SEQ', AlignedDimX='DeltaE,17,22,20', OutputWorkspace='SEQ_1D_rebin')
10# Integrated 4D->3D MDHistoWorkspace
11SliceMD(InputWorkspace='SEQ', AlignedDimX='[Qh,0,0],0,0.5,20', AlignedDimY='DeltaE,17,22,20', AlignedDimZ='[0.5Qh,0.866Qk,0],-0.75,-0.25,20', AlignedDimT='[0,0,Ql],-0.9,-0.55,1', OutputWorkspace='SEQ_3D_int')
12# Integrated 4D->2D MDHistoWorkspace
13SliceMD(InputWorkspace='SEQ', AlignedDimX='[Qh,0,0],0,0.5,20', AlignedDimY='DeltaE,17,22,20', AlignedDimZ='[0.5Qh,0.866Qk,0],-0.75,-0.25,1', AlignedDimT='[0,0,Ql],-0.9,-0.55,1', OutputWorkspace='SEQ_2D_int')
14# Integrated 4D->1D MDHistoWorkspace
15SliceMD(InputWorkspace='SEQ', AlignedDimX='DeltaE,17,22,20', AlignedDimY='[Qh,0,0],0,0.5,1', AlignedDimZ='[0.5Qh,0.866Qk,0],-0.75,-0.25,1', AlignedDimT='[0,0,Ql],-0.9,-0.55,1', OutputWorkspace='SEQ_1D_int')