loadctd.m
changeset 11 d71acdec556a
parent 0 0a450563f904
child 14 f7f35d9629ab
equal deleted inserted replaced
10:d273b7bacb36 11:d71acdec556a
     1 %======================================================================
     1 %======================================================================
     2 %                    L O A D C T D . M 
     2 %                    L O A D C T D . M 
     3 %                    doc: Sat Jun 26 15:56:43 2004
     3 %                    doc: Sat Jun 26 15:56:43 2004
     4 %                    dlm: Fri Mar  5 15:51:21 2010
     4 %                    dlm: Fri Aug 16 10:53:40 2013
     5 %                    (c) 2004 M. Visbeck & A. Thurnherr
     5 %                    (c) 2004 M. Visbeck & A. Thurnherr
     6 %                    uE-Info: 401 16 NIL 0 0 72 2 2 8 NIL ofnI
     6 %                    uE-Info: 445 41 NIL 0 0 72 0 2 8 NIL ofnI
     7 %======================================================================
     7 %======================================================================
     8 
     8 
     9 function [d,p]=loadctd(f,d,p)
     9 function [d,p]=loadctd(f,d,p)
    10 % function [d,p]=loadctd(f,d,p)
    10 % function [d,p]=loadctd(f,d,p)
    11 
    11 
   436    warn=[' shifted ADCP timeseries by ',int2str(lagdt*24*3600),' seconds '];
   436    warn=[' shifted ADCP timeseries by ',int2str(lagdt*24*3600),' seconds '];
   437    disp(warn)
   437    disp(warn)
   438    p.warn(size(p.warn,1)+1,1:length(warn))=warn;
   438    p.warn(size(p.warn,1)+1,1:length(warn))=warn;
   439   end
   439   end
   440  else
   440  else
       
   441   error('Cannot determine time offset between CTD and LADCP time series --- aborting');
       
   442 
       
   443   % The following old code has been disabled for IX_10 because it is known not to work correctly
       
   444   % for combined NAV/CTD data, because the NAV time series *must* be matched to the LADCP data
       
   445   % for the GPS constraint to be applied.
       
   446 
   441   text(1,0,'LOW CORRELATION not used','color','r')
   447   text(1,0,'LOW CORRELATION not used','color','r')
   442   disp('WARNING WARNING WARNING')
   448   disp('WARNING WARNING WARNING')
   443   warn=(' lag too big or correlation too weak: ignore CTD time series');
   449   warn=(' lag too big or correlation too weak: ignore CTD time series');
   444   disp(warn)
   450   disp(warn)
   445   p.warn(size(p.warn,1)+1,1:length(warn))=warn;
   451   p.warn(size(p.warn,1)+1,1:length(warn))=warn;