PT1 = test.sdata.PT1;
number = size(PT1,1)/7200;
Z1_pt1 = 99;
Z1_pt2 = 105.83;
Z1_pt3 = 99;
Z2 = 0;
DT = 0.125;
for i = 1:number
j = i * 7200;
k = j - 7199;
pt1 = test.sdata.PT1(k:j,:);
pt2 = test.sdata.PT2(k:j,:);
pt3 = test.sdata.PT3(k:j,:);
h1 = Z1_pt1 + (mean(pt1));
h2 = Z1_pt2 + (mean(pt2));
h3 = Z1_pt3 + (mean(pt3));
pt1out(:,i) = u_depth_xform(pt1,Z1_pt1,Z2,h1,DT);
pt2out(:,i) = u_depth_xform(pt2,Z1_pt2,Z2,h2,DT);
pt3out(:,i) = u_depth_xform(pt3,Z1_pt3,Z2,h3,DT);
end