Skip to content
Snippets Groups Projects
Commit ac5edc64 authored by Wolfgang Ludwig's avatar Wolfgang Ludwig
Browse files

read motor positions from header

parent 9a084e74
No related branches found
No related tags found
No related merge requests found
function offsets = gtGetOffsets(parameters, beamline)
acq = parameters.acq;
if acq.interlaced_turns
im = edf_info(sprintf('%s/0_rawdata/Orig/%s0_0000.edf', acq.dir, acq.name));
else
im = edf_info(sprintf('%s/0_rawdata/Orig/%s_0_0000.edf', acq.dir, acq.name));
end
switch beamline
case 'id11'
offsets.samrx_offset = im.motor.samrx;
offsets.samry_offset = im.motor.samry;
offsets.diffrz_offset = im.motor.diffrz;
offsets.samtx_offset = im.motor.samtx;
offsets.samty_offset = im.motor.samty;
offsets.samtz_offset = im.motor.samtz;
case 'id06'
offsets.phi_offset = im.motor.phi;
offsets.chi_offset = im.motor.chi;
offsets.diffrz_offset = im.motor.diffry;
offsets.samtx_offset = 0;
offsets.samty_offset = 0;
offsets.samtz_offset = 0;
end
end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment