@satra any idea why the delta values were being re-calculated here? Why is it necessary? They replace the original (correct?) values of `hdr['delta']` a couple lines later...