Skip to content

Commit

Permalink
Block commenting
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-penn committed Jun 24, 2018
1 parent b462173 commit 0e9e9ed
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions sidereal.m
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
function stime = sidereal(y, m, d,h, min, sec,gam)
%% Calculate the sidereal time from the given date and UT time
%
% Jeremy Penn
% 21 October 2017
%
% Revision: 21/10/17
% 09/11/17 - replaced while loops with mod to keep ang
% between 0 and 360
%
% function stime = sidereal(y, m, d,h, min, sec)
%
% Purpose: This function calculates the sidereal time.
%
% Inputs: o y - The year
% o m - The month
% o d - The day
% o h - The hour
% o min - The minutes
% o sec - The seconds
% o gam - The eastward longitude
%
% Outputs: o stime - The sidereal time
%
%{
Jeremy Penn
21 October 2017
Revision: 21/10/17
09/11/17 - replaced while loops with mod to keep ang
between 0 and 360
function stime = sidereal(y, m, d,h, min, sec)
Purpose: This function calculates the sidereal time.
Inputs: o y - The year
o m - The month
o d - The day
o h - The hour
o min - The minutes
o sec - The seconds
o gam - The eastward longitude
Outputs: o stime - The sidereal time
%}

j0 = 367*y - fix(7*(y + fix((m + 9)/12))/4) + fix((275*m)/9) + d + 1721013.5;
T0 = (j0 - 2451545) / 36525;
Expand Down

0 comments on commit 0e9e9ed

Please sign in to comment.