function [TC] = calc_temp(temp_freq, temp_serialnum);
%% To calculate temperature using the serial number of the Seabird temperature sensor
%% and the temperature frequency


   [t1a,t1b,t1c,t1d,t1f0] = Temp_cal(temp_serialnum);
   TC = 1./(t1a + t1b*(log(t1f0./temp_freq)) + t1c*((log(t1f0./temp_freq)).^2) + ...
           t1d*((log(t1f0./temp_freq)).^3)) - 273.15; % (in degrees C)



