Commit e37d6ca4 authored by Thomas Vincent's avatar Thomas Vincent

Save center channel corrected with image ROI offset

parent 1ad0fb64
......@@ -755,11 +755,6 @@ def _add_edf_data(scan_id,
float(chan_per_deg[1])],
entry=entry)
if center_chan is not None:
entry_h5f.set_direct_beam([float(center_chan[0]),
float(center_chan[1])],
entry=entry)
progress[proc_idx] = 2
edf_file = EdfFile.EdfFile(img_f, access='r', fastedf=True)
progress[proc_idx] = 5
......@@ -782,7 +777,11 @@ def _add_edf_data(scan_id,
_logger.warning(
'Image ROI clipped: It was larger than images')
entry_h5f.set_image_offset((row, column), entry)
if center_chan is not None:
# Write center channel corrected with image ROI offset
entry_h5f.set_direct_beam([float(center_chan[0] - row),
float(center_chan[1]) - column],
entry=entry)
dset_shape = (n_images, img_shape[0], img_shape[1])
chunks = (1, dset_shape[1]//4, dset_shape[2]//4)
......
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