%  First try connect the points strategy...

fix_temp_freq;

%  Now make hand edits..

tft(2581:5036) = tft(2581:5036) - delta; 
tft(5039:n-1) = tft(5039:n-1) + delta; 

%  Replace the old with the new....

ctdlog(:, temp_frequency) = tft;

% Compute depth in time-base of CTD data

ctd_depth = ctd_depth_prep(dataNav(:,1), dataNav(:,mDepth), ctdlog(:,1));

% Now compute pressure in dB from depth

dBar = sw_pres(ctd_depth, 36.8);  % Use 36.8 as latitude....

% Now compute temperature and conductivity using the correct coefficients

[temp,cond,mask] = ctd_freq_conv(dBar, ctdlog(:,cond_frequency), ctdlog(:,temp_frequency), 'day_old' );

ctdlog(:, temperature) = temp;

clear temp;  clear cond; clear mask;
clear tft; clear tf; clear n;


