%% timl2ut.m converts inputted local times matrix
%% to univerisal time.
%%

function timut=timl2ut(timl,lon)

% timl = local times of points of interest
% lon= longitude (rads) of points of interest
% timut= univerisal time of points of interest

timut=timl-(12/pi)*lon;         %convert local time to UT
timut=timch(timut);             %make sure timut terms between 0 and 24
