% loads and plots data from the high res magnetometers.
% XnT, YnT, ZnT are the magnetic fields in nT 

d=load('M:\data\magnetometer\2009-03-25_16.06.40_ch0_ch1_ch2_ch3_highres_data.dat');

% calibration constants (143mV/nT)
xcal=1e6/143;
ycal=xcal;
zcal=xcal/2.8;

XnT=d(:,3)*xcal;
YnT=d(:,4)*ycal;
ZnT=d(:,5)*zcal;

t=d(:,2);
% this is the x component of the magnetic field (N/S component)



plot(t,XnT);
ylabel('nT')
datetick
grid on