%  Compute salinity and sound velocity from temperature and conductivity....
%    Must use appropriate lag for conductivity.

if (~exist('water_cond') | ~exist('water_temp') | ~exist('m_pressure')),
   display('Cannot compute salinity & svel, need more variables...');
   return;
end


if (~exist('sal') | ~exist('svel'))
   [sal,svel] = salsp(data(:, water_cond), data(:, water_temp), 10*data(:,m_pressure) );
end
