%Jukebox
g=9.82;
load jukebox_wdss -ascii
% indata : tid(s), h?jd(m), ay, ax, az (m/s^2)
% x - radiell, z=vertikal, y=sidled
short=jukebox_wdss(301:2701,:);

tid=short(:,1)-short(1,1);
hojd =short(:,2);
alat =short(:,3)/g;
along =short(:,4)/g;
avert =short(:,5)/g;

atot=(along.^2+alat.^2+avert.^2).^0.5;

figure(1)
subplot (4,1,1)
plot(tid,avert) 
ylabel ('a_z/ g')
grid on
axis([0 120 -0.5 2])


subplot (4,1,2)
plot(tid,along) 
ylabel ('a_x/ g')
grid on
axis([0 120 -0.7 1.5])

subplot (4,1,3)
plot(tid,alat) 
ylabel ('a_y/ g')
grid on
axis([0 120 -1 0.7])

subplot(4,1,4)
plot(tid,hojd)
grid on
axis([0 120 -4 4])
ylabel ('h (m)')
xlabel('t (s)')

% (Lilla lots har rutin f?r smoothing)
