Commit 77d60a94 authored by Whitfield, Ross's avatar Whitfield, Ross
Browse files

Update omega_scan/.#peaks_to_detID_omega.py omega_scan/peaks_to_detID_omega.py

parent 62836df4
rwp@diffuse.2762:1540218528
\ No newline at end of file
......@@ -6,4 +6,7 @@ peaks = LoadNexus('peaks.nxs')
for p in range(peaks.getNumberPeaks()):
peak = peaks.getPeak(p)
g = peak.getGoniometerMatrix()
print(peak.getDetectorID(), peak.getQSampleFrame(), np.mod(np.arctan(g[0,2]/g[0,0])*180/np.pi,-180))
detID = peak.getDetectorID()
x=detID//(4*4*128)
y=detID%(4*128)//4
print(detID, peak.getQSampleFrame(), np.mod(np.arctan(g[0,2]/g[0,0])*180/np.pi,-180), x, y)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment