


ButtonName=questdlg('Which Drifter data?', ...
                       'Drifter Choice', ...
                       'Drifter_1','Drifter_2','Drifter_3','Drifter_2');
 
   
   switch ButtonName,
     case 'Drifter_1'
      file_loc='c:\oasisnt\oasis\d1\data\';
      graphtitle='Drifter1';
      dir_loc='c:\oasisnt\oasis\d1\gashound';
      
     case 'Drifter_2'
      file_loc='c:\oasisnt\oasis\d2\data\';
      graphtitle='Drifter2';
      dir_loc='c:\oasisnt\oasis\d2\gashound';
      
     case 'Drifter_3'
      file_loc='c:\oasisnt\oasis\d3\data\';
      graphtitle='Drifter3';
      dir_loc='c:\oasisnt\oasis\d3\gashound';
      
   end % switch

fprintf('Reading Data from Instrument files.');   
% get Oasis data
Drift.oasis=get_oasis(file_loc);
fprintf('.');
%get GPS data
Drift.gps=get_gps(file_loc);
fprintf('.');
%get CT data
Drift.ct=get_ct(file_loc);
fprintf('.');
%get 02 data
Drift.o2=get_o2(file_loc,Drift.ct(1,:),Drift.ct(2,:),Drift.ct(3,:),ButtonName);
fprintf('.');
%get Satlantic data
W=warning('off');
Drift.satlantic=get_sat(file_loc);
fprintf('.');
W=warning('on');
%get ISUS data
Drift.isus=get_isus(file_loc);
fprintf('.');
%get HS2 data
Drift.hs2=get_hs2(file_loc,ButtonName);
fprintf('.');
%get gashound data
W=warning('off');
Drift.gashound=get_gashound(dir_loc);
fprintf('.');
W=warning('on');

Dhand=guihandles(InstrumentGuide);
