Code covered by the BSD License  

Highlights from
Rise and Set of the Sun, Moon and Planets

Rise and Set of the Sun, Moon and Planets

by

 

05 Dec 2012 (Updated )

Topocentric rise and set of the Sun, Moon and planets. Source ephemeris is DE421 with NOVAS routines

utc2tdt (jdutc)
function jdtdt = utc2tdt (jdutc)

% convert UTC julian date to TDT julian date

% input

%  jdutc   = UTC julian date

% output

%  jdtdt = TDT julian date 

% Reference Frames in Astronomy and Geophysics
% J. Kovalevsky et al., 1989, pp. 439-442

% Orbital Mechanics with Matlab

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% find current number of leap seconds

leapsecond = findleap(jdutc);

% TDT julian date
    
corr = (leapsecond + 32.184) / 86400.0;
    
jdtdt = jdutc + corr;
    

Contact us