[dd, config] = get_rndata(tr, 'hoffset', 45.55, 'use_external_gyro', 1);

%reading 124 pings [831-954] from file 1 of 2 (nbp2001_096_50962.raw)
%reading 2192 pings [1-2192] from file 2 of 2 (nbp2001_096_52080.raw)


a = read_bin('../gbinfiles/gyro/nbp2001_096_43762.hdg.gbin');
g = read_bin('../gbinfiles/pcode/nbp2001_096_43762.gps.gbin');
plot(g(1,:), a, 'r');hold on


a = read_bin('../gbinfiles/gyro/nbp2001_096_50962.hdg.gbin');
g = read_bin('../gbinfiles/pcode/nbp2001_096_50962.gps.gbin');
plot(g(1,:), a, 'g');hold on


a = read_bin('../gbinfiles/gyro/nbp2001_096_52080.hdg.gbin');
g = read_bin('../gbinfiles/pcode/nbp2001_096_52080.gps.gbin');
plot(g(1,:), a);hold on


a = read_bin('../gbinfiles/gyro/nbp2001_096_57600.hdg.gbin');
g = read_bin('../gbinfiles/pcode/nbp2001_096_57600.gps.gbin');
plot(g(1,:), a,'k');hold on




a = read_bin('../binfiles/gyro/nbp2001_096_43762.hdg.bin');
plot(a(1,:),a(2,:),'r');hold on

a = read_bin('../binfiles/gyro/nbp2001_096_50962.hdg.bin');
plot(a(1,:),a(2,:),'g');

a = read_bin('../binfiles/gyro/nbp2001_096_52080.hdg.bin');
plot(a(1,:),a(2,:),'b')

a = read_bin('../binfiles/gyro/nbp2001_096_57600.hdg.bin');
plot(a(1,:),a(2,:),'k')

