mags=load('HargravesMag_A_F.txt');
magt=datenum(mags(:,7)+2000,mags(:,5),mags(:,6),mags(:,2),mags(:,3),mags(:,4));
magt=[magt-magt(1)]*24;
plot(magt,mags(:,1),'+')
g2(magt,mags(:,1),24);
magx=mags(:,1);
strip=[magx<prctile(magx,05) | magx>prctile(magx,95)];
magx(strip)=NaN;
magxt=magt(~isnan(magx));
magx=magx(~isnan(magx));
plot(magxt,magx,'+')
g2(magxt,magx,24);
amplitudes A 8.39
periods P 24.00
offset term 49630.93
variance rd 4.82%
amplitudes A 6.03
periods P 24.00
offset term 49633.84
variance rd 5.85%