Wikisage, de vrije encyclopedie van de tweede generatie, is digitaal erfgoed

Wikisage is op 1 na de grootste internet-encyclopedie in het Nederlands. Iedereen kan de hier verzamelde kennis gratis gebruiken, zonder storende advertenties. De Koninklijke Bibliotheek van Nederland heeft Wikisage in 2018 aangemerkt als digitaal erfgoed.

  • Wilt u meehelpen om Wikisage te laten groeien? Maak dan een account aan. U bent van harte welkom. Zie: Portaal:Gebruikers.
  • Bent u blij met Wikisage, of wilt u juist meer? Dan stellen we een bescheiden donatie om de kosten te bestrijden zeer op prijs. Zie: Portaal:Donaties.
rel=nofollow

Sjabloon:Zonsondergang: verschil tussen versies

Uit Wikisage
Naar navigatie springen Naar zoeken springen
(mee bezig)
 
(invoer klaar)
Regel 50: Regel 50:
  t = N + ((18 - lngHour) / 24)
  t = N + ((18 - lngHour) / 24)


t = {{#expr:{{Dag van het jaar|{{{1}}}|{{{2}}}|{{{3}}}}}+1 + ((18 -  
t = {{#expr: {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24) }}
 
(35.223611 / 15)) /24) }}




Regel 102: Regel 100:
sinDec = 0.39782 * sin(L)
sinDec = 0.39782 * sin(L)
cosDec = cos(asin(sinDec))
cosDec = cos(asin(sinDec))
--->
 
sinDec = {{#expr: 0.39782 * sin(((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289) + (1.916 * sin((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289)) + (0.020 * sin(2 * ((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289))) + 282.634) }}
sinDec = {{#expr: 0.39782 * sin(((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289) + (1.916 * sin((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289)) + (0.020 * sin(2 * ((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289))) + 282.634) }}


Regel 115: Regel 113:
if (cosH < -1)
if (cosH < -1)
  the sun never sets on this location (on the specified date)
  the sun never sets on this location (on the specified date)
cosH = (cos({{{zenith|96}}}) - (sinDec * sin({{{latitude|31.779167}}}))) / (cosDec * cos({{{latitude|31.779167}}}))
cosH = {{#expr: (cos({{{zenith|96}}}) - ((0.39782 * sin(((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289) + (1.916 * sin((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289)) + (0.020 * sin(2 * ((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289))) + 282.634))* sin({{{latitude|31.779167}}}))) / ((cos(asin(0.39782 * sin(((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289) + (1.916 * sin((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289)) + (0.020 * sin(2 * ((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289))) + 282.634)))) * cos({{{latitude|31.779167}}})) }}


7b. finish calculating H and convert into hours
7b. finish calculating H and convert into hours
Regel 124: Regel 126:
H = H / 15
H = H / 15
H = {{#expr: acos( (cos({{{zenith|96}}}) - ((0.39782 * sin(((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289) + (1.916 * sin((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289)) + (0.020 * sin(2 * ((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289))) + 282.634))* sin({{{latitude|31.779167}}}))) / ((cos(asin(0.39782 * sin(((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289) + (1.916 * sin((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289)) + (0.020 * sin(2 * ((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289))) + 282.634)))) * cos({{{latitude|31.779167}}})) ) }}


8. calculate local mean time of rising/setting
8. calculate local mean time of rising/setting
T = H + RA - (0.06571 * t) - 6.622
T = H + RA - (0.06571 * t) - 6.622
T = (H) + (RA) - (0.06571 * (t)) - 6.622
T = {{#expr: (acos( (cos({{{zenith|96}}}) - ((0.39782 * sin(((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289) + (1.916 * sin((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289)) + (0.020 * sin(2 * ((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289))) + 282.634))* sin({{{latitude|31.779167}}}))) / ((cos(asin(0.39782 * sin(((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289) + (1.916 * sin((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289)) + (0.020 * sin(2 * ((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289))) + 282.634)))) * cos({{{latitude|31.779167}}})) )) + (((atan(0.91764 * tan(((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289) + (1.916 * sin((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289)) + (0.020 * sin(2 * ((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289))) + 282.634))) + (((floor((atan(0.91764 * tan(((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289) + (1.916 * sin((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289)) + (0.020 * sin(2 * ((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289))) + 282.634)))/90)) * 90) - ((floor((atan(0.91764 * tan(((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289) + (1.916 * sin((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289)) + (0.020 * sin(2 * ((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289))) + 282.634)))/90)) * 90)))/15) - (0.06571 * ({{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:d|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24))) - 6.622 }}


9. adjust back to UTC
9. adjust back to UTC
UT = T - lngHour
UT = T - lngHour
NOTE: UT potentially needs to be adjusted into the range [0,24) by  
NOTE: UT potentially needs to be adjusted into the range [0,24) by adding/subtracting 24
 
--->
adding/subtracting 24
UT = {{#expr: ((acos( (cos({{{zenith|96}}}) - ((0.39782 * sin(((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289) + (1.916 * sin((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289)) + (0.020 * sin(2 * ((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289))) + 282.634))* sin({{{latitude|31.779167}}}))) / ((cos(asin(0.39782 * sin(((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289) + (1.916 * sin((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289)) + (0.020 * sin(2 * ((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289))) + 282.634)))) * cos({{{latitude|31.779167}}})) )) + (((atan(0.91764 * tan(((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289) + (1.916 * sin((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289)) + (0.020 * sin(2 * ((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289))) + 282.634))) + (((floor((atan(0.91764 * tan(((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289) + (1.916 * sin((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289)) + (0.020 * sin(2 * ((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289))) + 282.634)))/90)) * 90) - ((floor((atan(0.91764 * tan(((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289) + (1.916 * sin((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289)) + (0.020 * sin(2 * ((0.9856 * {{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:n|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24)) - 3.289))) + 282.634)))/90)) * 90)))/15) - (0.06571 * ({{Dag van het jaar|{{{1|{{#time:Y|{{LOCALTIMESTAMP}}}}}}}|{{{2|{{#time:n|{{LOCALTIMESTAMP}}}}}}}|{{{3|{{#time:d|{{LOCALTIMESTAMP}}}}}}}}}+1 + ((18 - (35.223611 / 15)) /24))) - 6.622) - ({{{longitude|35.223611}}} /15)}}
 
<!---
10. convert UT value to local time zone of latitude/longitude
10. convert UT value to local time zone of latitude/longitude
localT = UT + localOffset
localT = UT + localOffset

Versie van 14 jul 2012 20:08

UT = -20.687040062207