Sun Moon Ephemeris
October 12, 2022 | Author: Anonymous | Category: N/A
Short Description
Download Sun Moon Ephemeris...
Description
DDMMSS(Data) //Kediri, Rabu Pon 25-09-2019 (22:06) By Ali Mustofa //Untuk menampilkan derajat dengan format // DD� MM MM' ' S SS" S" cont contoh oh -01 -01� 09 09' ' 00" 00" BEGIN LOCAL Z,A,B,C,D,Y,Mnt,Dtk; LOCAL M,N,P,Tanda,Hasil; Z:= HMS?(Data); Y:=Abs(Z); A:=Floor(Y);//Derajat B:=(Y-A)*60; C:=Floor(B);//Menit D:=Round((B-C)*60,0);//Detik If D > 59.5 Then Dtk:=0; End; If D > 59.5 Then Mnt:=C+1; End; If D < 59.5 Then Dtk:=D; End; If D < 59.5 Then Mnt:=C; End; IF Z0 Then Tanda:=""; End; IF A9.5 Then M:=""; End; IF Mnt9.5 Then N:=""; End; IF Dtk9.5 Then P:=""; End; �
Hasil:=( Hasil:=(Tanda)+ Tanda)+""+(M)+" ""+(M)+""+(A)+" "+(A)+" "+(N)+""+(Mnt)+ "+(N)+""+(Mnt)+"' "' "+(P)+""+(Dtk)+"' "+(P)+""+(Dtk)+"'' ' "; END; JulianDay(tgl,bln,thn,jam,tz) BEGIN LOCAL DDUT; LOCAL MM; LOCAL YM; LOCAL JD; DDUT := tgl + ((jam - tz) / 24); IF bln > 2 THEN MM:= bln; YM:= thn ELSE MM:= bln+12; YM:= thn-1 END ; IF ((thn + bln / 100 + tgl / 10000) >= 1582.1015) THEN A:= IP(YM / 100); B:= 2 - A + IP(A / 4) ELSE A:=0; B:=0 END; JD := IP(365.25 * (YM + 4716)) + IP(30.6001 * (MM + 1)) + DDUT + B - 1524.5; END; EarthHeliocentricLongitude(tgl,bln,thn,jam,tz) BEGIN HAngle:=0; PRINT; LOCAL DATA,JD; LOCAL Tau,L0,L1,L2,L3,L4,L5,L; JD:= JulianDay(tgl,bln,thn,jam,tz); Tau := (JD - 2451545) / 365250;
L0 L0 L0 L0 L0 L0 L0 L0 L0 L0
:= := := := := := := := := :=
0; L0 L0 L0 L0 L0 L0 L0 L0 L0
+ + + + + + + + +
175347046 * Cos(0 + 0 * Tau); 3341656 * Cos(4.6692568 + 6283.07585 * Tau); 34894 * Cos(4.6261 + 12566.1517 * Tau); 3497 * Cos(2.7441 + 5753.3849 * Tau); 3418 * Cos(2.8289 + 3.5231 * Tau); 3136 * Cos(3.6277 + 77713.7715 * Tau); 2676 * Cos(4.4181 + 7860.4194 * Tau); 2343 * Cos(6.1352 + 3930.2097 * Tau); 1324 * Cos(0.7425 + 11506.7698 * Tau);
L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0
:= := := := := := := := := := := := := := :=
L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0
+ + + + + + + + + + + + + + +
1273 * Cos(2.0371 + 529.691 * Tau); 1199 * Cos(1.1096 + 1577.3435 * Tau); 990 * Cos(5.233 + 5884.927 * Tau); 902 * Cos(2.045 + 26.298 * Tau); 857 * Cos(3.508 + 398.149 * Tau); 780 * Cos(1.179 + 5223.694 * Tau); 753 * Cos(2.533 + 5507.553 * Tau); 505 * Cos(4.583 + 18849.228 * Tau); 492 * Cos(4.205 + 775.523 * Tau); 357 * Cos(2.92 + 0.067 * Tau); 317 * Cos(5.849 + 11790.629 * Tau); 284 * Cos(1.899 + 796.298 * Tau); 271 * Cos(0.315 + 10977.079 * Tau); 243 * Cos(0.345 + 5486.778 * Tau); 206 * Cos(4.806 + 2544.314 * Tau);
L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0
:= := := := := := := := := := := := := := := := := := := := := := := := := := := := := := :=
L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0 L0
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
205 202 * * Cos(1.869 Cos(2.458 + + 5573.143 6069.777 * * Tau); Tau); 156 * Cos(0.833 + 213.299 * Tau); 132 * Cos(3.411 + 2942.463 * Tau); 126 * Cos(1.083 + 20.775 * Tau); 115 * Cos(0.645 + 0.98 * Tau); 103 * Cos(0.636 + 4694.003 * Tau); 102 * Cos(0.976 + 15720.839 * Tau); 102 * Cos(4.267 + 7.114 * Tau); 99 * Cos(6.21 + 2146.17 * Tau); 98 * Cos(0.68 + 155.42 * Tau); 86 * Cos(5.98 + 161000.69 * Tau); 85 * Cos(1.3 + 6275.96 * Tau); 85 * Cos(3.67 + 71430.7 * Tau); 80 * Cos(1.81 + 17260.15 * Tau); 79 * Cos(3.04 + 12036.46 * Tau); 75 * Cos(1.76 + 5088.63 * Tau); 74 * Cos(3.5 + 3154.69 * Tau); 74 * Cos(4.68 + 801.82 * Tau); 70 * Cos(0.83 + 9437.76 * Tau); 62 * Cos(3.98 + 8827.39 * Tau); 61 * Cos(1.82 + 7084.9 * Tau); 57 * Cos(2.78 + 6286.6 * Tau); 56 * Cos(4.39 + 14143.5 * Tau); 56 * Cos(3.47 + 6279.55 * Tau); 52 * Cos(0.19 + 12139.55 * Tau); 52 * Cos(1.33 + 1748.02 * Tau); 51 * Cos(0.28 + 5856.48 * Tau); 49 * Cos(0.49 + 1194.45 * Tau); 41 * Cos(5.37 + 8429.24 * Tau); 41 * Cos(2.4 + 19651.05 * Tau);
L0 L0 := := L0 L0 + + 39 37 * * Cos(6.17 Cos(6.04 + + 10447.39 10213.29 * * Tau); Tau); L0 := L0 + 37 * Cos(2.57 + 1059.38 * Tau);
L0 L0 L0 L0 L0 L0 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1
:= := := := := := := := := := := := := := := := := := := := := := := := :=
L0 L0 L0 L0 L0 L0 0; L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1
L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L2 L2 L2 L2 L2 L2 L2 L2 L2 L2 L2 L2 L2 L2 L2
:= := := := := := := := := := := := := := := := := := := := := := := := := := := := := := :=
L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 0; L2 L2 L2 L2 L2 L2 L2 L2 L2 L2 L2 L2 L2 L2
+ + + + + +
36 36 33 30 30 25
* * * * * *
Cos(1.71 Cos(1.78 Cos(0.59 Cos(0.44 Cos(2.74 Cos(3.16
+ + + + + +
2352.87 * Tau); 6812.77 * Tau); 17789.85 * Tau); 83996.85 * Tau); 1349.87 * Tau); 4690.48 * Tau);
+ + + + + + + + + + + + + + + + + +
628331966747 * Cos(0 + 0 * Tau); 206059 * Cos(2.678235 + 6283.07585 * Tau); 4303 * Cos(2.6351 + 12566.1517 * Tau); 425 * Cos(1.59 + 3.523 * Tau); 119 * Cos(5.796 + 26.298 * Tau); 109 * Cos(2.966 + 1577.344 * Tau); 93 * Cos(2.59 + 18849.23 * Tau); 72 * Cos(1.14 + 529.69 * Tau); 68 * Cos(1.87 + 398.15 * Tau); 67 * Cos(4.41 + 5507.55 * Tau); 59 * Cos(2.89 + 5223.69 * Tau); 56 * Cos(2.17 + 155.42 * Tau); 45 * Cos(0.4 + 796.3 * Tau); 36 * Cos(0.47 + 775.52 * Tau); 29 * Cos(2.65 + 7.11 * Tau); 21 * Cos(5.34 + 0.98 * Tau); 19 * Cos(1.85 + 5486.78 * Tau); 19 * Cos(4.97 + 213.3 * Tau);
+ + + + + + + + + + + + + + + +
17 16 * * Cos(2.99 Cos(0.03 + + 6275.96 2544.31 * * Tau); Tau); 16 * Cos(1.43 + 2146.17 * Tau); 15 * Cos(1.21 + 10977.08 * Tau); 12 * Cos(2.83 + 1748.02 * Tau); 12 * Cos(3.26 + 5088.63 * Tau); 12 * Cos(5.27 + 1194.45 * Tau); 12 * Cos(2.08 + 4694 * Tau); 11 * Cos(0.77 + 553.57 * Tau); 10 * Cos(1.3 + 6286.6 * Tau); 10 * Cos(4.24 + 1349.87 * Tau); 9 * Cos(2.7 + 242.73 * Tau); 9 * Cos(5.64 + 951.72 * Tau); 8 * Cos(5.3 + 2352.87 * Tau); 6 * Cos(2.65 + 9437.76 * Tau); 6 * Cos(4.67 + 4690.48 * Tau);
+ + + + + + + + + + + + + +
52919 * Cos(0 + 0 * Tau); 8720 * Cos(1.0721 + 6283.0758 * Tau); 309 * Cos(0.867 + 12566.152 * Tau); 27 * Cos(0.05 + 3.52 * Tau); 16 * Cos(5.19 + 26.3 * Tau); 16 * Cos(3.68 + 155.42 * Tau); 10 * Cos(0.76 + 18849.23 * Tau); 9 * Cos(2.06 + 77713.77 * Tau); 7 * Cos(0.83 + 775.52 * Tau); 5 * Cos(4.66 + 1577.34 * Tau); 4 * Cos(1.03 + 7.11 * Tau); 4 * Cos(3.44 + 5573.14 * Tau); 3 * Cos(5.14 + 796.3 * Tau); 3 * Cos(6.05 + 5507.55 * Tau);
L2 L2 := := L2 L2 + + 3 3 * * Cos(1.19 Cos(6.12 + + 242.73 529.69 * * Tau); Tau); L2 := L2 + 3 * Cos(0.31 + 398.15 * Tau);
L2 := L2 + 3 * Cos(2.28 + 553.57 * Tau); L2 := L2 + 2 * Cos(4.38 + 5223.69 * Tau); L2 := L2 + 2 * Cos(3.75 + 0.98 * Tau); L3 := 0; L3 := L3 + 289 * Cos(5.844 + 6283.076 * Tau); L3 := L3 + 35 * Cos(0 + 0 * Tau); L3 := L3 + 17 * Cos(5.49 + 12566.15 * Tau); L3 := L3 + 3 * Cos(5.2 + 155.42 * Tau); L3 := L3 + 1 * Cos(4.72 + 3.52 * Tau); L3 := L3 + 1 * Cos(5.3 + 18849.23 * Tau); L3 := L3 + 1 * Cos(5.97 + 242.73 * Tau); L4 := 0; L4 := L4 + 114 * Cos(3.142 + 0 * Tau); L4 := L4 + 8 * Cos(4.13 + 6283.08 * Tau); L4 := L4 + 1 * Cos(3.84 + 12566.15 * Tau); L5 := 0; L5 := L5 + 1 * Cos(3.14 + 0 * Tau); L := (L0 + L1 * Tau + L2 * (Tau ^ 2) + L3 * (Tau ^ 3)); L := (L+ L4 * (Tau ^ 4) + L5 * (Tau ^ 5)) / 100000000; L := L * 180/PI; L := L MOD 360; RETURN L; END; NutationInLongitude(tgl,bln,thn,jam,tz) BEGIN LOCAL LOCAL T D;; LOCAL M; LOCAL M� ; LOCAL F; LOCAL Omg; LOCAL DltPsi; local DATA,Tau; DATA:= JulianDay(tgl,bln,thn,jam,tz); T := (DATA - 2451545) / 36525; D := 297.85036 + 445267.11148 * T - 0.0019142 * T ^ 2 + T ^ 3 / 189474; M := 357.52772 + 35999.05034 * T - 0.0001603 * T ^ 2 - T ^ 3 / 300000; M� := 134.96298 134.96298 + 477198.8673 477198.867398 98 * T + 0.0086972 0.0086972 * T ^ 2 + T * 3 / 5625 56250; 0; F := 93.27191 + 483202.017538 * T - 0.0036825 * T ^ 2 + T ^ 3 / 327270; Omg := 125.04452 - 1934.136261 * T + 0.0020708 * T ^ 2 + T ^ 3 / 450000; D := (D MOD 360)*PI/180; M := (M MOD 360)*PI/180; M� := (M� MO MOD D 360 360)* )*PI PI/1 /180 80; ; F := (F MOD 360)*PI/180; Omg := (Omg MOD 360)*PI/180; DltPsi := 0; DltPsi := DltPsi + (-171996 (-171996 + -174.2 -174.2 * T) * Sin(0 * D + 0 * M + 0 * M� + 0 * F + 1 * Omg); DltPsi := DltPsi + (-13187 (-13187 + -1.6 -1.6 * T) * Sin(-2 Sin(-2 * D + 0 * M + 0 * M� + 2 * F + 2 * Omg); DltPsi := DltPsi + (-2274 (-2274 + -0.2 -0.2 * T) * Sin(0 Sin(0 * D + 0 * M + 0 * M� + 2 * F + 2 * Omg); DltPsi := DltPsi + (2062 (2062 + 0.2 * T) * Sin(0 * D + 0 * M + 0 * M� + 0 * F + 2 * Omg); DltPsi := DltPsi + (1426 (1426 + -3.4 * T) * Sin(0 Sin(0 * D + 1 * M + 0 * M� + 0 * F + 0 * Omg); � + 0 * F + 0 * Omg); DltPsi := := DltPsi DltPsi + + (-517 (712 (-517 712 ++0.1 TT) ) **Sin(0 * * D + Omg); DltPsi ( 1.2**T) Sin(-2 Sin(-2 D 0 + * 1 M * + M 1 + * 0 M * M� + 2 * F + 2 * Omg);
DltPsi Omg); DltPsi DltPsi Omg); DltPsi DltPsi Omg); DltPsi DltPsi DltPsi DltPsi DltPsi Omg); DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi Omg); DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi
:= DltPsi + (-386 (-386 + -0.4 * T) * Sin(0 Sin(0 * D + 0 * M + 0 * M� + 2 * F + 1 * := DltPsi + (-301 (-301 + 0 * T) * Sin(0 * D + 0 * M + 1 * M� + 2 * F + 2 * Omg); Omg); := DltPsi + (217 (217 + -0.5 * T) * Sin(-2 Sin(-2 * D + -1 * M + 0 * M� + 2 * F + 2 * := DltPsi + (-158 (-158 + 0 * T) * Sin(-2 * D + 0 * M + 1 * M� + 0 * F + 0 * Omg); Omg); := DltPsi + (129 (129 + 0.1 * T) T) * Sin(-2 * D + 0 * M + 0 * M� + 2 * F + 1 * := := := := :=
DltPsi DltPsi DltPsi DltPsi DltPsi
+ + + + +
(123 (123 + 0 * T) * Sin(0 Sin(0 * D + 0 * M + -1 (63 (63 + 0 * T) * Sin(2 Sin(2 * D + 0 * M + 0 * (63 (63 + 0.1 * T) * Sin(0 * D + 0 * M + 1 (-59 (-59 + 0 * T) * Sin(2 Sin(2 * D + 0 * M + -1 (-58 (-58 + -0.1 * T) * Sin(0 * D + 0 * M +
* M� M� + * M� * M� -1 *
+ 2 * F + 2 * Om Omg); g); 0 * F + 0 * Omg Omg); ); + 0 * F + 1 * Omg); Omg); + 2 * F + 2 * Om Omg); g); M� + 0 * F + 1 *
:= := := := := := := := := := :=
DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi
+ + + + + + + + + + +
(-51 (-51 + 0 * T) * Sin(0 Sin(0 * D + 0 * M + 1 * M� + 2 * F + 1 * Omg Omg); ); (48 (48 + 0 * T) * Sin(-2 Sin(-2 * D + 0 * M + 2 * M� + 0 * F + 0 * Omg Omg); ); (46 (46 + 0 * T) * Sin(0 Sin(0 * D + 0 * M + -2 * M� + 2 * F + 1 * Omg Omg); ); (-38 (-38 + 0 * T) * Sin(2 Sin(2 * D + 0 * M + 0 * M� + 2 * F + 2 * Omg Omg); ); (-31 (-31 + 0 * T) * Sin(0 Sin(0 * D + 0 * M + 2 * M� + 2 * F + 2 * Omg Omg); ); (29 (29 + 0 * T) * Sin(0 Sin(0 * D + 0 * M + 2 * M� + 0 * F + 0 * Omg Omg); ); (29 (29 + 0 * T) * Sin(-2 Sin(-2 * D + 0 * M + 1 * M� + 2 * F + 2 * Omg Omg); ); (26 (26 + 0 * T) * Sin(0 Sin(0 * D + 0 * M + 0 * M� + 2 * F + 0 * Omg Omg); ); (-22 (-22 + 0 * T) * Sin(-2 Sin(-2 * D + 0 * M + 0 * M� + 2 * F + 0 * Omg); Omg); (21 (21 + 0 * T) * Sin(0 Sin(0 * D + 0 * M + -1 * M� + 2 * F + 1 * Omg Omg); ); (17 (17 + -0.1 * T) T) * Sin(0 * D + 2 * M + 0 * M� + 0 * F + 0 * Omg); Omg);
� := DltPsi DltPsi + + (-16 (16 (-16 16 ++00.1 * T) Si * D + 0 + * 2 M + Omg); := ( * * T) T) Sin(2 *n(2 Sin(-2 * D * -1 M +*0M* + M�0+*2F*+F1+*2Omg * );
:= := := := := := := := := := := := := := := := := := := := := := := := := := := :=
DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi DltPsi
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
(-15 (-15 + 0 * T) * Sin(0 Sin(0 * D + 1 * M + 0 * M� + 0 * F + 1 * Omg Omg); ); (-13 (-13 + 0 * T) * Sin(-2 Sin(-2 * D + 0 * M + 1 * M� + 0 * F + 1 * Omg); Omg); (-12 (-12 + 0 * T) * Sin(0 Sin(0 * D + -1 -1 * M + 0 * M� + 0 * F + 1 * Omg); Omg); (11 (11 + 0 * T) * Sin(0 Sin(0 * D + 0 * M + 2 * M� + -2 * F + 0 * Om Omg); g); (-10 (-10 + 0 * T) * Sin(2 Sin(2 * D + 0 * M + -1 * M� + 2 * F + 1 * Om Omg); g); (-8 (-8 + 0 * T) * Sin(2 Sin(2 * D + 0 * M + 1 * M� + 2 * F + 2 * Omg Omg); ); (7 (7 + 0 * T) * Sin(0 Sin(0 * D + 1 * M + 0 * M� + 2 * F + 2 * Om Omg); g); (-7 (-7 + 0 * T) * Sin(-2 Sin(-2 * D + 1 * M + 1 * M� + 0 * F + 0 * Omg Omg); ); (-7 (-7 + 0 * T) * Sin(0 Sin(0 * D + -1 * M + 0 * M� + 2 * F + 2 * Omg Omg); ); (-7 (-7 + 0 * T) * Sin(2 Sin(2 * D + 0 * M + 0 * M� + 2 * F + 1 * Omg Omg); ); (6 (6 + 0 * T) * Sin(2 Sin(2 * D + 0 * M + 1 * M� + 0 * F + 0 * Om Omg); g); (6 (6 + 0 * T) * Sin(-2 Sin(-2 * D + 0 * M + 2 * M� + 2 * F + 2 * Omg Omg); ); (6 (6 + 0 * T) * Sin(-2 Sin(-2 * D + 0 * M + 1 * M� + 2 * F + 1 * Omg Omg); ); (-6 (-6 + 0 * T) * Sin(2 Sin(2 * D + 0 * M + -2 * M� + 0 * F + 1 * Omg Omg); ); (-6 (-6 + 0 * T) * Sin(2 Sin(2 * D + 0 * M + 0 * M� + 0 * F + 1 * Omg Omg); ); (5 (5 + 0 * T) * Sin(0 Sin(0 * D + -1 * M + 1 * M� + 0 * F + 0 * Omg Omg); ); (-5 (-5 + 0 * T) * Sin(-2 Sin(-2 * D + -1 -1 * M + 0 * M� + 2 * F + 1 * Omg); Omg); (-5 (-5 + 0 * T) * Sin(-2 Sin(-2 * D + 0 * M + 0 * M� + 0 * F + 1 * Omg Omg); ); (-5 (-5 + 0 * T) * Sin(0 Sin(0 * D + 0 * M + 2 * M� + 2 * F + 1 * Omg Omg); ); (4 (4 + 0 * T) * Sin(-2 Sin(-2 * D + 0 * M + 2 * M� + 0 * F + 1 * Omg Omg); ); (4 (4 + 0 * T) * Sin(-2 Sin(-2 * D + 1 * M + 0 * M� + 2 * F + 1 * Omg Omg); ); (4 (4 + 0 * T) * Sin(0 Sin(0 * D + 0 * M + 1 * M� + -2 * F + 0 * O Omg); mg); (-4 (-4 + 0 * T) * Sin(-1 Sin(-1 * D + 0 * M + 1 * M� + 0 * F + 0 * Omg Omg); ); (-4 (-4 + 0 * T) * Sin(-2 Sin(-2 * D + 1 * M + 0 * M� + 0 * F + 0 * Omg Omg); ); (-4 (-4 + 0 * T) * Sin(1 Sin(1 * D + 0 * M + 0 * M� + 0 * F + 0 * Omg Omg); ); (3 (3 + 0 * T) * Sin(0 Sin(0 * D + 0 * M + 1 * M� + 2 * F + 0 * Om Omg); g); (-3 (-3 + 0 * T) * Sin(0 Sin(0 * D + 0 * M + -2 * M� + 2 * F + 2 * Omg Omg); ); (-3 (-3 + 0 * T) * Sin(-1 Sin(-1 * D + -1 -1 * M + 1 * M� + 0 * F + 0 * Omg); Omg);
DltPsi := DltPsi + (-3 (-3 + 0 * T) * Sin(0 Sin(0 * D + 1 * M + 1 * M� + 0 * F + 0 * Omg Omg); ); DltPsi := DltPsi + (-3 (-3 + 0 * T) * Sin(0 Sin(0 * D + -1 * M + 1 * M� + 2 * F + 2 * Omg Omg); ); DltPsi := DltPsi + (-3 (-3 + 0 * T) * Sin(2 Sin(2 * D + -1 * M + -1 * M� + 2 * F + 2 * Om Omg); g);
DltPsi := DltPsi + (-3 (-3 + 0 * T) * Sin(0 Sin(0 * D + 0 * M + 3 * M� + 2 * F + 2 * Omg Omg); ); DltPsi := DltPsi + (-3 (-3 + 0 * T) * Sin(2 Sin(2 * D + -1 * M + 0 * M� + 2 * F + 2 * Omg Omg); ); DltPsi := DltPsi / 36000000; END; EarthHeliocentricLatitude(tgl,bln,Thn,jam,tz) BEGIN HAngle:=0; LOCAL B0, B1, Earth_B, Earth_BDeg, Earth_BSec, Result; local DATA,Tau; DATA:= JulianDay(tgl,bln,Thn,jam,tz); Tau := (DATA - 2451545) / 365250; B0 := 0; B0 := B0 + 280 * Cos(3.199 + 84334.662 * Tau); B0 := B0 + 102 * Cos(5.422 + 5507.553 * Tau); B0 := B0 + 80 * Cos(3.88 + 5223.69 * Tau); B0 := B0 + 44 * Cos(3.7 + 2352.87 * Tau); B0 := B0 + 32 * Cos(4 + 1577.34 * Tau); B1 := 0; B1 := B1 + 9 * Cos(3.9 + 5507.55 * Tau); B1 := B1 + 6 * Cos(1.73 + 5223.69 * Tau); B := (B0 + B1 * Tau) / 100000000; B := (B*180/PI)*-1; END; SunGeocentricLongitude(tgl,bln,thn,jam,tz) BEGIN LOCAL LOCAL L; B; LOCAL Theta ; LOCAL Beta ; LOCAL T; LOCA LOCAL L L Lam ambd bda a� ; LOCAL DeltaTheta; LOCAL ThetaFK5 ; LOCAL Lambda ; local DATA,Tau; DATA:= JulianDay(tgl,bln,thn,jam,tz); Tau := (DATA - 2451545) / 365250; L := EarthHeliocentricLongitude(tgl,bln,thn,jam,tz); B := EarthHeliocentricLatitude(tgl,bln,thn,jam,tz); Theta := L + 180; Theta := Theta MOD 360; Beta := B; T := (DATA - 2451545) / 36525; DeltaThe Delt aTheta ta := (-0 (-0.09 .09033 033 + 0.0 0.03916 3916 * (Cos(L (Cos(Lambd ambda a�) + Sin(L Sin(Lambd ambda a�)) * Tan( Tan(Beta Beta)) )) / 3600; ThetaFK5 := Theta + DeltaTheta; Lambda := ThetaFK5; Lambda := Lambda MOD 360; END; EarthRadiusVector(tgl,bln,thn,jam,tz) BEGIN HAngle:=0; LOCAL Tau,R0, r1,r2,R3,R4,r; local DATA,Tau; DATA:= JulianDay(tgl,bln,thn,jam,tz); Tau := (DATA - 2451545) / 365250; R0 := 0; R0 := R0 + 100013989 * Cos(0 + 0 * Tau); R0 := R0 + 1670700 * Cos(3.0984635 + 6283.07585 * Tau);
R0 R0 R0 R0 R0 R0 R0 R0 R0 R0 R0 R0 R0 R0 R0 R0 R0 R0 R0 R0 R0 R0 R0 R0 R0
:= := := := := := := := := := := := := := := := := := := := := := := := :=
R0 R0 R0 R0 R0 R0 R0 R0 R0 R0 R0 R0 R0 R0 R0 R0 R0 R0 R0 R0 R0 R0 R0 R0 R0
+ + + + + + + + + + + + + + + + + + + + + + + + +
13956 * Cos(3.05525 + 12566.1517 * Tau); 3084 * Cos(5.1985 + 77713.7715 * Tau); 1628 * Cos(1.1739 + 5753.3849 * Tau); 1576 * Cos(2.8469 + 7860.4194 * Tau); 925 * Cos(5.453 + 11506.77 * Tau); 542 * Cos(4.564 + 3930.21 * Tau); 472 * Cos(3.661 + 5884.927 * Tau); 346 * Cos(0.964 + 5507.553 * Tau); 329 * Cos(5.9 + 5223.694 * Tau); 307 * Cos(0.299 + 5573.143 * Tau); 243 * Cos(4.273 + 11790.629 * Tau); 212 * Cos(5.847 + 1577.344 * Tau); 186 * Cos(5.022 + 10977.079 * Tau); 175 * Cos(3.012 + 18849.228 * Tau); 110 * Cos(5.055 + 5486.778 * Tau); 98 * Cos(0.89 + 6069.78 * Tau); 86 * Cos(5.69 + 15720.84 * Tau); 86 * Cos(1.27 + 161000.69 * Tau); 65 * Cos(0.27 + 17260.15 * Tau); 63 * Cos(0.92 + 529.69 * Tau); 57 * Cos(2.01 + 83996.85 * Tau); 56 * Cos(5.24 + 71430.7 * Tau); 49 * Cos(3.25 + 2544.31 * Tau); 47 * Cos(2.58 + 775.52 * Tau); 45 * Cos(5.54 + 9437.76 * Tau);
R0 R0 R0 R0 R0 R0 R0 R0 R0 R0 R0 R0 R0 r1 r1 r1 r1 r1 r1 r1 r1 r1 r1 r1 r2 r2 r2 r2 r2 r2 r2
:= := := := := := := := := := := := := := := := := := := := := := := := := := := := := := :=
R0 R0 R0 R0 R0 R0 R0 R0 R0 R0 R0 R0 R0 0; r1 r1 r1 r1 r1 r1 r1 r1 r1 r1 0; r2 r2 r2 r2 r2 r2
+ + + + + + + + + + + + +
43 39 38 37 37 36 35 33 32 32 28 28 26
+ + + + + + + + + +
103019 * Cos(1.10749 + 6283.07585 * Tau); 1721 * Cos(1.0644 + 12566.1517 * Tau); 702 * Cos(3.142 + 0 * Tau); 32 * Cos(1.02 + 18849.23 * Tau); 31 * Cos(2.84 + 5507.55 * Tau); 25 * Cos(1.32 + 5223.69 * Tau); 18 * Cos(1.42 + 1577.34 * Tau); 10 * Cos(5.91 + 10977.08 * Tau); 9 * Cos(1.42 + 6275.96 * Tau); 9 * Cos(0.27 + 5486.78 * Tau);
+ + + + + +
4359 * Cos(5.7846 + 6283.0758 * Tau); 124 * Cos(5.579 + 12566.152 * Tau); 12 * Cos(3.14 + 0 * Tau); 9 * Cos(3.63 + 77713.77 * Tau); 6 * Cos(1.87 + 5573.14 * Tau); 3 * Cos(5.47 + 18849.23 * Tau);
* * * * * * * * * * * * *
Cos(6.01 * Tau); Cos(5.36 + + 6275.96 4694 * Tau); Cos(2.39 + 8827.39 * Tau); Cos(0.83 + 19651.05 * Tau); Cos(4.9 + 12139.55 * Tau); Cos(1.67 + 12036.46 * Tau); Cos(1.84 + 2942.46 * Tau); Cos(0.24 + 7084.9 * Tau); Cos(0.18 + 5088.63 * Tau); Cos(1.78 + 398.15 * Tau); Cos(1.21 + 6286.6 * Tau); Cos(1.9 + 6279.55 * Tau); Cos(4.59 + 10447.39 * Tau);
R3 := 0; R3 := R3 + 145 * Cos(4.273 + 6283.076 * Tau); R3 := R3 + 7 * Cos(3.92 + 12566.15 * Tau);
R4 := 0; R4 := R4 + 4 * Cos(2.56 + 6283.08 * Tau); r := (R0 + r1 * Tau + r2 * Tau ^ 2 + R3 * Tau ^ 3 + R4 * Tau ^ 4) / 100000000; END; SunApparentLongitude(tgl,bln,thn,jam,tz) BEGIN LOCAL L; LOCAL B; LOCAL Theta ; LOCAL Beta ; LOCAL T; LOCA LOCAL L L Lam ambd bda a� ; LOCAL DeltaTheta; LOCAL ThetaFK5 ; LOCAL DeltaPsi ; LOCAL Abberration ; LOCAL Lambda ; local DATA,Tau; DATA:= JulianDay(tgl,bln,thn,jam,tz); Tau := (DATA - 2451545) / 365250; L := EarthHeliocentricLongitude(tgl,bln,thn,jam,tz); B := EarthHeliocentricLatitude(tgl,bln,thn,jam,tz); Theta := L + 180; Theta := Theta MOD 360; Beta := -B; T :=da (DATA 2451545) / 36525; � := Th Lambda Lamb Theta eta - 1 1.397 .397 * T - 0.0 0.00031 0031 * T ^ 2; DeltaThe Delt aTheta ta := (-0 (-0.09 .09033 033 + 0.0 0.03916 3916 * (Cos(L (Cos(Lambd ambda a�) + Sin(L Sin(Lambd ambda a�)) * Tan( Tan(Beta Beta)) )) / 3600; ThetaFK5 := Theta + DeltaTheta; DeltaPsi := NutationInLongitude(tgl,bln,thn,jam,tz); Abberration := (-20.489 /3600)/ (EarthRadiusVector(tgl,bln,thn,jam,tz)) ; Lambda := ThetaFK5+DeltaPsi+Abberration ; Lambda := Lambda MOD 360; END; NutationInObliquity(tgl,bln,thn,jam,tz) BEGIN LOCA OCAL T T, ,L�,D,M D,M,M�,F; LOCAL DltEps; LOCAL Data; LOCAL Omg; Data:=JulianDay(tgl,bln,thn,jam,tz); T:=(Data - 2451545) / 36525; L�:= 218.31 218.3164477 64477 + 481267.881 481267.88123421 23421 * T - 0.0015786 0.0015786 * T ^ 2 + T ^ 3 / 5 538841 38841 - T ^ 4 / 65194000; D:= 297.8501921 + 445267.1114034 * T - 0.0018819 * T ^ 2 + T ^ 3 / 545868 - T ^ 4 / 113065000; M:= 357.5291092 + 35999.0502909 * T - 0.0001536 * T ^ 2 + T ^ 3 / 24490000; M�:= 134.96 134.9633964 33964 + 477198.867 477198.8675055 5055 * T + 0.0087414 0.0087414 * T ^ 2 + T ^ 3 / 69 69699 699 - T ^ 4 / 14712000; F:= 93.272095 + 483202.0175233 * T - 0.0036539 * T ^ 2 - T ^ 3 / 3526000 + T ^ 4 / 863310000; Omg := 125.04452 - 1934.136261 * T + 0.0020708 * T ^ 2 + T ^ 3 / 450000; L�:= (L� Mo Mod d 360 360) ) * PI / 1 180 80; ; D:= (D Mod 360) * PI / 180; M:= (M Mod 360) * PI / 180; M�:= ( M� Mo Mod d 360 360) ) * PI / 1 180 80; ; F:= ( F Mod 360) * PI / 180; Omg := (Omg MOD 360)*PI/180;
DltEps:= DltEps:= Omg); DltEps:= Omg); DltEps:= DltEps:= DltEps:= DltEps:= DltEps:= Omg); DltEps:= DltEps:= DltEps:= Omg); DltEps:= DltEps:= DltEps:= DltEps:= DltEps:= DltEps:= DltEps:= DltEps:= DltEps:= DltEps:=
0; DltEps + (92025 (92025 + 8.9 8.9 * T) * Cos(0 Cos(0 * D + 0 * M + 0 * M� + 0 * F + 1 *
DltEps + (200 (200 + 0 * T) * Cos(0 * D + 0 * M + 0 * M� + 2 * F + 1 * Omg Omg); ); DltEps + (129 (129 + -0.1 * T) * Cos(0 * D + 0 * M + 1 * M� + 2 * F + 2 * Om Omg); g); DltEps + (-95 (-95 + 0.3 * T) T) * Cos(-2 * D + -1 * M + 0 * M� + 2 * F + 2 * DltEps DltEps DltEps DltEps DltEps DltEps DltEps DltEps DltEps DltEps
+ + + + + + + + + +
(0 (0 + 0 * T) * Cos(-2 Cos(-2 * D + 0 * M + 1 * M� + 0 * F + 0 * Om Omg); g); (-70 (-70 + 0 * T) * Cos(-2 * D + 0 * M + 0 * M� + 2 * F + 1 * Omg Omg); ); (-53 (-53 + 0 * T) * Cos(0 * D + 0 * M + -1 * M� + 2 * F + 2 * Omg Omg); ); (0 (0 + 0 * T) * Cos(2 Cos(2 * D + 0 * M + 0 * M� + 0 * F + 0 * Om Omg); g); (-33 (-33 + 0 * T) * Cos(0 * D + 0 * M + 1 * M� + 0 * F + 1 * Omg Omg); ); (26 (26 + 0 * T) * Cos(2 Cos(2 * D + 0 * M + -1 * M� + 2 * F + 2 * Omg Omg); ); (32 (32 + 0 * T) * Cos(0 Cos(0 * D + 0 * M + -1 * M� + 0 * F + 1 * Omg Omg); ); (27 (27 + 0 * T) * Cos(0 Cos(0 * D + 0 * M + 1 * M� + 2 * F + 1 * Om Omg); g); (0 (0 + 0 * T) * Cos(-2 Cos(-2 * D + 0 * M + 2 * M� + 0 * F + 0 * Om Omg); g); (-24 (-24 + 0 * T) * Cos(0 * D + 0 * M + -2 * M� + 2 * F + 1 * Omg Omg); );
DltEps:= DltEps:= DltEps:= DltEps:= DltEps:= DltEps:= DltEps:= DltEps:= DltEps:= DltEps:= DltEps:= DltEps:= DltEps:= DltEps:= DltEps:= DltEps:= DltEps:= DltEps:= DltEps:= DltEps:= DltEps:= DltEps:= DltEps:= DltEps:= DltEps:= DltEps:= DltEps:= DltEps:= DltEps:= DltEps:= DltEps:=
DltEps DltEps DltEps DltEps DltEps DltEps DltEps DltEps DltEps DltEps DltEps DltEps DltEps DltEps DltEps DltEps DltEps DltEps DltEps DltEps DltEps DltEps DltEps DltEps DltEps DltEps DltEps DltEps DltEps DltEps DltEps
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
� (16 ( C Omg); g); (13 (16 13 + + 0 0 * * T) T) * * Cos(2 Cos(0 Cos(2 os(0 * * D D + + 0 0 * * M M + + 0 2 * * M M� + + 2 2 * * F F + + 2 2 * * Om Om Omg); g); (0 (0 + 0 * T) * Cos(0 Cos(0 * D + 0 * M + 2 * M� + 0 * F + 0 * Om Omg); g); (-12 (-12 + 0 * T) * Cos(-2 * D + 0 * M + 1 * M� + 2 * F + 2 * Omg Omg); ); (0 (0 + 0 * T) * Cos(0 Cos(0 * D + 0 * M + 0 * M� + 2 * F + 0 * Om Omg); g); (0 (0 + 0 * T) * Cos(-2 Cos(-2 * D + 0 * M + 0 * M� + 2 * F + 0 * Om Omg); g); (-10 (-10 + 0 * T) * Cos(0 * D + 0 * M + -1 * M� + 2 * F + 1 * Omg Omg); ); (0 (0 + 0 * T) * Cos(0 Cos(0 * D + 2 * M + 0 * M� + 0 * F + 0 * Om Omg); g); (-8 (-8 + 0 * T) * Cos(2 Cos(2 * D + 0 * M + -1 * M� + 0 * F + 1 * Omg Omg); ); (7 (7 + 0 * T) * Cos(-2 Cos(-2 * D + 2 * M + 0 * M� + 2 * F + 2 * Om Omg); g); (9 (9 + 0 * T) * Cos(0 Cos(0 * D + 1 * M + 0 * M� + 0 * F + 1 * Om Omg); g); (7 (7 + 0 * T) * Cos(-2 Cos(-2 * D + 0 * M + 1 * M� + 0 * F + 1 * Om Omg); g); (6 (6 + 0 * T) * Cos(0 Cos(0 * D + -1 * M + 0 * M� + 0 * F + 1 * Om Omg); g); (0 (0 + 0 * T) * Cos(0 Cos(0 * D + 0 * M + 2 * M� + -2 * F + 0 * O Omg); mg); (5 (5 + 0 * T) * Cos(2 Cos(2 * D + 0 * M + -1 * M� + 2 * F + 1 * Om Omg); g); (3 (3 + 0 * T) * Cos(2 Cos(2 * D + 0 * M + 1 * M� + 2 * F + 2 * Om Omg); g); � (-3 (-3 + 0 * T) * Cos(0 Cos(0 * D + 1 * M + 0 * M + 2 * F + 2 * Om Omg); g); (0 (0 + 0 * T) * Cos(-2 Cos(-2 * D + 1 * M + 1 * M� + 0 * F + 0 * Om Omg); g); (3 (3 + 0 * T) * Cos(0 Cos(0 * D + -1 * M + 0 * M� + 2 * F + 2 * Om Omg); g); (3 (3 + 0 * T) * Cos(2 Cos(2 * D + 0 * M + 0 * M� + 2 * F + 1 * Om Omg); g); (0 (0 + 0 * T) * Cos(2 Cos(2 * D + 0 * M + 1 * M� + 0 * F + 0 * Om Omg); g); (-3 (-3 + 0 * T) * Cos(-2 Cos(-2 * D + 0 * M + 2 * M� + 2 * F + 2 * Omg Omg); ); (-3 (-3 + 0 * T) * Cos(-2 Cos(-2 * D + 0 * M + 1 * M� + 2 * F + 1 * Omg Omg); ); (3 (3 + 0 * T) * Cos(2 Cos(2 * D + 0 * M + -2 * M� + 0 * F + 1 * Om Omg); g); (3 (3 + 0 * T) * Cos(2 Cos(2 * D + 0 * M + 0 * M� + 0 * F + 1 * Om Omg); g); (0 (0 + 0 * T) * Cos(0 Cos(0 * D + -1 * M + 1 * M� + 0 * F + 0 * Om Omg); g); (3 (3 + 0 * T) * Cos(-2 Cos(-2 * D + -1 * M + 0 * M� + 2 * F + 1 * Omg Omg); ); (3 (3 + 0 * T) * Cos(-2 Cos(-2 * D + 0 * M + 0 * M� + 0 * F + 1 * Om Omg); g); (3 (3 + 0 * T) * Cos(0 Cos(0 * D + 0 * M + 2 * M� + 2 * F + 1 * Om Omg); g); (0 (0 + 0 * T) * Cos(-2 Cos(-2 * D + 0 * M + 2 * M� + 0 * F + 1 * Om Omg); g); (0 (0 + 0 * T) * Cos(-2 Cos(-2 * D + 1 * M + 0 * M� + 2 * F + 1 * Om Omg); g);
DltEps + (5736 (5736 + -3.1 -3.1 * T) * Cos(-2 Cos(-2 * D + 0 * M + 0 * M� + 2 * F + 2 * DltEps DltEps DltEps DltEps DltEps
+ + + + +
(977 (977 + -0.5 * T) * Cos(0 * D + 0 * M + 0 * M� + 2 * F + 2 * Om Omg); g); (-895 (-895 + 0.5 * T) * Cos(0 * D + 0 * M + 0 * M� + 0 * F + 2 * Om Omg); g); (54 (54 + -0.1 * T) T) * Cos(0 * D + 1 * M + 0 * M� + 0 * F + 0 * Omg); Omg); (-7 (-7 + 0 * T) * Cos(0 Cos(0 * D + 0 * M + 1 * M� + 0 * F + 0 * Om Omg); g); (224 (224 + -0.6 * T) * Cos(-2 Cos(-2 * D + 1 * M + 0 * M� + 2 * F + 2 *
DltEps:= DltEps + (0 (0 + 0 * T) * Cos(0 Cos(0 * D + 0 * M + 1 * M� + -2 * F + 0 * O Omg); mg); DltEps:= DltEps + (0 (0 + 0 * T) * Cos(-1 Cos(-1 * D + 0 * M + 1 * M� + 0 * F + 0 * Om Omg); g); DltEps:= DltEps + (0 (0 + 0 * T) * Cos(-2 Cos(-2 * D + 1 * M + 0 * M� + 0 * F + 0 * Om Omg); g);
DltEps:= DltEps + (0 (0 + 0 * T) * Cos(1 Cos(1 * D + 0 * M + 0 * M� + 0 * F + 0 * Om Omg); g); DltEps:= DltEps + (0 (0 + 0 * T) * Cos(0 Cos(0 * D + 0 * M + 1 * M� + 2 * F + 0 * Om Omg); g); DltEps:= DltEps + (0 (0 + 0 * T) * Cos(0 Cos(0 * D + 0 * M + -2 * M� + 2 * F + 2 * Om Omg); g); DltEps:= DltEps + (0 (0 + 0 * T) * Cos(-1 Cos(-1 * D + -1 * M + 1 * M� + 0 * F + 0 * Omg Omg); ); DltEps:= DltEps + (0 (0 + 0 * T) * Cos(0 Cos(0 * D + 1 * M + 1 * M� + 0 * F + 0 * Om Omg); g); DltEps:= DltEps + (0 (0 + 0 * T) * Cos(0 Cos(0 * D + -1 * M + 1 * M� + 2 * F + 2 * Om Omg); g); DltEps:= DltEps + (0 (0 + 0 * T) * Cos(2 Cos(2 * D + -1 * M + -1 * M� + 2 * F + 2 * Omg Omg); ); DltEps:= DltEps + (0 (0 + 0 * T) * Cos(0 Cos(0 * D + 0 * M + 3 * M� + 2 * F + 2 * Om Omg); g); DltEps:= DltEps + (0 (0 + 0 * T) * Cos(2 Cos(2 * D + -1 * M + 0 * M� + 2 * F + 2 * Om Omg); g); DltEps:= DltEps / 36000000; END; TrueObliquity(tgl,bln,thn,jam,tz) BEGIN LOCAL DltEps; LOCAL Data,T,U,Eps0,Q; DltEps:=NutationInObliquity(tgl,bln,thn,jam,tz); Data:=JulianDay(tgl,bln,thn,jam,tz); T:=(Data - 2451545) / 36525; U:= T / 100; Eps0:= (23 + 26 / 60 + 21.448 / 3600); Q:=(-4680.93 * U); Q:=Q+(- 1.55 * U ^ 2 ); Q:=Q+(1999.25 * U ^ 3 ); Q:=Q+(- 51.38 * U ^ 4 ); Q:=Q+(- 249.67 * U ^ 5 ); Q:=Q+(39.05 6 ); Q:=Q+(7.12 * U*^U7^); Q:=Q+(27.87 * U ^ 8 ); Q:=Q+(5.79 * U ^ 9 ); Q:=(Q+2.45 * U ^ 10) / 3600; Eps0:= Eps0+Q+DltEps; END; SunDeclination(tgl,bln,thn,jam,tz) BEGIN LOCAL L,Mk,P,D; LOCAL R; R:=180/(PI); L:=SunApparentLongitude(tgl,bln,thn,jam,tz); P:=EarthHeliocentricLatitude(tgl,bln,thn,jam,tz); Mk:=TrueObliquity(tgl,bln,thn,jam,tz); D:=ASIN(SIN(P/R)*COS(Mk/R)+COS(P/R)*SIN(Mk/R)*SIN(L/R))*(R); END; SunAR(tgl,bln,thn,jam,tz) BEGIN LOCAL L,D,Kar,AR; LOCAL R; R:=180/(PI); L:=SunApparentLongitude(tgl,bln,thn,jam,tz); D:=SunDeclination(tgl,bln,thn,jam,tz); Kar:=ACOS(COS(L/R)/COS(D/R))*(R); IF L >180 THEN AR:=360-Kar; ELSE AR:=Kar; END; END; MMSS(Data) //Kediri, Rabu Pon 25-09-2019 (20:19) By Ali Mustofa //Untuk menampilkan derajat dengan format
// DD� MM MM' ' S SS" S" cont contoh oh -01 -01� 09 09' ' 00" 00" BEGIN LOCAL Z,A,B,C,D,Y,Mnt,Dtk; LOCAL M,N,P,Tanda,Hasil; Z:= HMS?(Data); Y:=Abs(Z); A:=Floor(Y);//Derajat B:=(Y-A)*60; C:=Floor(B);//Menit D:=Round((B-C)*60,2);//Detik If D > 59.5 Then Dtk:=0; End; If D > 59.5 Then Mnt:=C+1; End; If D < 59.5 Then Dtk:=D; End; If D < 59.5 Then Mnt:=C; End; IF Z0 Then Tanda:=""; End; IF A9.5 Then M:=""; End; IF Mnt9.5 Then N:=""; End; IF Dtk9.5 Then P:=""; End; Hasil:=(Tanda)+(N)+""+(Mnt)+"' "+(P)+""+(Dtk)+"'' "; END; MMSSE(Data) //Kediri, Rabu Pon 25-09-2019 (20:19) By Ali Mustofa //Untuk menampilkan derajat dengan format // DD� MM MM' ' S SS" S" cont contoh oh -01 -01� 09 09' ' 00" 00" BEGIN LOCAL Z,A,B,C,D,Y,Mnt,Dtk; LOCAL M,N,P,Tanda,Hasil; Z:= HMS?(Data); Y:=Abs(Z); A:=Floor(Y);//Derajat B:=(Y-A)*60; C:=Floor(B);//Menit D:=Round((B-C)*60,2);//Detik If D > 59.5 Then Dtk:=0; End; If D > 59.5 Then Mnt:=C+1; End; If D < 59.5 Then Dtk:=D; End; If D < 59.5 Then Mnt:=C; End; IF Z0 Then Tanda:=""; End; IF A9.5 Then M:=""; End; IF Mnt9.5 Then N:=""; End; IF Dtk9.5 Then P:=""; End; Hasil:=(Tanda)+(N)+""+(Mnt)+"m "+(P)+""+(Dtk)+"s "; END; SunSemidiameter(tgl,bln,thn,jam,tz) BEGIN LOCAL r,Sdm; r:=EarthRadiusVector(tgl,bln,thn,jam,tz); Sdm:=(959.63/3600)/r; END; EquationOfTime(tgl,bln,thn,jam,tz) BEGIN
LOCAL Data,Tau; LOCAL Alpha,DeltaPsi,Epsilon,L0,R,E; Data:=JulianDay(tgl,bln,thn,jam,tz); Tau:= (Data - 2451545) / 365250; Alpha:= SunAR(tgl,bln,thn,jam,tz); DeltaPsi:= NutationInLongitude(tgl,bln,thn,jam,tz); Epsilon:= TrueObliquity(tgl,bln,thn,jam,tz); L0:= 280.4664567 + 360007.6982779 * Tau + 0.03032028 * Tau ^ 2 + Tau ^ 3 / 49931 Tau ^ 4 / 15300 - Tau ^ 5 / 2000000; L0:= (L0 Mod 360); R:=180/(PI); E:= (L0 - 0.0057183 - Alpha + DeltaPsi * Cos(Epsilon/R))/15; END; EXPORT PROSES() BEGIN LOCAL tgl,bln,thn,jam,tz; LOCAL D,M,Y,S,TZ; INPUT({{D,[0],{30,20,1}}, {M,[0],{30,20,2}}, {Y,[0],{30,20,3}}, {S,[0],{30,20,4}}, {TZ,[0],{30,20,5}} }, {"Data Matahari Akurasi Tinggi"}, {"tgl masehi: ","bln masehi","tahun masehi","jam","timezone"}, {"tanggal masehi","bulan masehi","tahun masehi","format jam shif 9" }, {}, {24,3,1983,?HMS(7),7} ); tgl:=D; bln:=M;thn:=Y; jam:=S;tz:=TZ; LOCAL DataBln,NamaBln; LOCAL JD,BujurEcliptic,BujurApparent,Arm,Dec; LOCAL Mk,Sd,Et; DataBln:={"Januari","Februari","Maret","April","Mei","Juni", "Juli","Agustus","September","Oktober","November","Desember"}; NamaBln:=DataBln(bln); JD:=JulianDay(tgl,bln,thn,jam,tz); BujurEcliptic:=SunGeocentricLongitude(tgl,bln,thn,jam,tz); BujurApparent:=SunApparentLongitude(tgl,bln,thn,jam,tz); Arm:=SunAR(tgl,bln,thn,jam,tz); Dec:=SunDeclination(tgl,bln,thn,jam,tz); Mk:=TrueObliquity(tgl,bln,thn,jam,tz); Sd:=SunSemidiameter(tgl,bln,thn,jam,tz); Et:=EquationOfTime(tgl,bln,thn,jam,tz); print ; PRINT ("Hasil Data Asensiorekta Matahari "); PRINT ("Tanggal = "+(tgl)+" "+(NamaBln)+" "+(thn)); PRINT ("Jam = "+(jam)+" WD Atau "+(jam-7)+" UT"); PRINT (" "); PRINT ("Julian Day = "+(JD)); PRINT ("Bujur Ecliptic = "+DDMMSS(BujurEcliptic)); PRINT ("Bujur Apparent = "+DDMMSS(BujurApparent)); PRINT ("Asensiorekta = "+DDMMSS(Arm)); PRINT ("Deklinasi Matahari = "+DDMMSS(Dec)); PRINT ("True Obliquity = "+DDMMSS(Mk)); PRINT ("Semidiameter = "+MMSS(Sd)); PRINT ("Equation Of Time = "+MMSSE(Et));
END;
View more...
Comments