close('all');
fclose('all');
clear all;

expp='GOMECC';
way_rawdata='C:\Data';
way_data='C:\data\GOMECC\flux_data\procturb'; 
drive_w='C:\data\GOMECC\flux_data';
clearit=0;                  % if you put to 0 double loop will not work!
printit=1;
sampleRate=10;
%Lonl=[];
lagtime_day=[];

for ddd=195;
    for hhh=0:23;
      read_hp_neaqs_GOMECC;
      read_shp_neaqs_GOMECC;
      read_son_neaqs_GOMECCTW;
      read_motion_neaqs_GOMECC;
      read_ozone_neaqs_GOMECC;
      read_gps_neaqs_GOMECC;
      read_co2_neaqs_GOMECC;
      nau_correct_neaqs_GOMECC_10Hz;
      nau_process_GOMECCTW;
     %lagtime_day=[lagtime_day;lagtime];
   end;
end;

jj=find(lagtime_day<70 & lagtime_day>40);
lagtime_day=mean(lagtime_day(jj));
lagtime_day=floor(lagtime_day);
close all
for ddd=195;
    for hhh=0:23;
       read_hp_neaqs_GOMECC;
       read_shp_neaqs_GOMECC;
       read_son_neaqs_GOMECCTW;
       read_motion_neaqs_GOMECC;
       read_ozone_neaqs_GOMECC;
       read_gps_neaqs_GOMECC;
       read_co2_neaqs_GOMECC;
       nau_correct_neaqs_GOMECC_10Hz;
       nau_process_GOMECC2TW;
    end;
end;


