%% timut2l.m converts inputted univerisal time matrix
%% to local times.
%%
%% Author: Phillip A. Webb
%% Last updated: June 9 2004                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
%%

function timl=timut2l(timut,lon)

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

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