Assign twotheta to polar_angle

This commit is contained in:
usov_i 2022-01-28 09:55:43 +01:00
parent 51c78ad06b
commit 4ba08366df

View File

@ -89,18 +89,18 @@ def read_detector_data(filepath, cami_meta=None):
scan["monitor"] = h5f["/entry1/control/data"][0] scan["monitor"] = h5f["/entry1/control/data"][0]
# om, sometimes ph
if scan["zebra_mode"] == "nb": if scan["zebra_mode"] == "nb":
scan["omega"] = h5f["/entry1/area_detector2/rotation_angle"][:] scan["omega"] = h5f["/entry1/area_detector2/rotation_angle"][:]
else: # bi else: # bi
scan["omega"] = h5f["/entry1/sample/rotation_angle"][:] scan["omega"] = h5f["/entry1/sample/rotation_angle"][:]
scan["gamma"] = h5f["/entry1/ZEBRA/area_detector2/polar_angle"][:] # gammad scan["gamma"] = h5f["/entry1/ZEBRA/area_detector2/polar_angle"][:]
scan["nu"] = h5f["/entry1/ZEBRA/area_detector2/tilt_angle"][:] # nud scan["twotheta"] = h5f["/entry1/ZEBRA/area_detector2/polar_angle"][:]
scan["nu"] = h5f["/entry1/ZEBRA/area_detector2/tilt_angle"][:]
scan["ddist"] = h5f["/entry1/ZEBRA/area_detector2/distance"][:] scan["ddist"] = h5f["/entry1/ZEBRA/area_detector2/distance"][:]
scan["wave"] = h5f["/entry1/ZEBRA/monochromator/wavelength"][:] scan["wave"] = h5f["/entry1/ZEBRA/monochromator/wavelength"][:]
scan["chi"] = h5f["/entry1/sample/chi"][:] # ch scan["chi"] = h5f["/entry1/sample/chi"][:]
scan["phi"] = h5f["/entry1/sample/phi"][:] # ph scan["phi"] = h5f["/entry1/sample/phi"][:]
scan["ub"] = h5f["/entry1/sample/UB"][:].reshape(3, 3) scan["ub"] = h5f["/entry1/sample/UB"][:].reshape(3, 3)
scan["name"] = h5f["/entry1/sample/name"][0].decode() scan["name"] = h5f["/entry1/sample/name"][0].decode()
scan["cell"] = h5f["/entry1/sample/cell"][:] scan["cell"] = h5f["/entry1/sample/cell"][:]