Blaue Stunde berechnen



if (eval(form.Year.value)<=1900 || eval(form.Year.value)>=2100 ) { alert("Dies Script erlaubt nur Berechnungen"+ return; }

JD0 = CalcJD( eval(form.Day.value), eval(form.Month.value), eval(form.Year.value) ); JD = JD0 +( eval(form.Hour.value) -eval(form.Zone.value.replace(/,/,'.')) +eval(form.Minute.value)/60. + eval(form.Second.value.replace(/,/,'.'))/3600.) /24.; TDT = JD+eval(form.DeltaT.value.replace(/,/,'.'))/24./3600.;

lat = eval(form.Lat.value.replace(/,/,'.'))*DEG; // geodetic latitude of observer on WGS84 lon = eval(form.Lon.value.replace(/,/,'.'))*DEG; // latitude of observer height = 0 * 0.001; // altiude of observer in meters above WGS84 ellipsoid (and converted to kilometers)

var gmst = GMST(JD); var lmst = GMST2LMST(gmst, lon);

observerCart = Observer2EquCart(lon, lat, height, gmst); // geocentric cartesian coordinates of observer

sunCoor = SunPosition(TDT, lat, lmst*15.*DEG); // Calculate data for the Sun at given time moonCoor = MoonPosition(sunCoor, TDT, observerCart, lmst*15.*DEG); // Calculate data for the Moon at given time

form.JD.value = round100000(JD); form.GMST.value = HHMMSS(gmst); form.LMST.value = HHMMSS(lmst);

if (eval(form.Minute.value)<10) form.Minute.value = "0"+eval(form.Minute.value); if (eval(form.Month.value)<10) form.Month.value = "0"+eval(form.Month.value); form.SunLon.value = round1000(sunCoor.lon*RAD); form.SunRA.value = HHMM(sunCoor.ra*RAD/15); form.SunDec.value = round1000(sunCoor.dec*RAD); form.SunAz.value = round100(sunCoor.az*RAD); form.SunAlt.value = round10(sunCoor.alt*RAD+Refraction(sunCoor.alt)); // including refraction form.SunSign.value = sunCoor.sign; form.SunDiameter.value = round100(sunCoor.diameter*RAD*60.); // angular diameter in arc seconds form.SunDistance.value = round10(sunCoor.distance); // Calculate distance from the observer (on the surface of earth) to the center of the sun sunCart = EquPolar2Cart(sunCoor.ra, sunCoor.dec, sunCoor.distance); form.SunDistanceObserver.value = round10( Math.sqrt( sqr(sunCart.x-observerCart.x) + sqr(sunCart.y-observerCart.y) + sqr(sunCart.z-observerCart.z) )); // JD0: JD of 0h UTC time sunRise = SunRise(JD0, eval(form.DeltaT.value.replace(/,/,'.')), lon, lat, eval(form.Zone.value.replace(/,/,'.')), 0); form.SunTransit.value = HHMM(sunRise.transit); form.SunRise.value = HHMM(sunRise.rise); form.SunSet.value = HHMM(sunRise.set); form.SunCivilTwilightMorning.value = HHMM(sunRise.cicilTwilightMorning); form.SunCivilTwilightEvening.value = HHMM(sunRise.cicilTwilightEvening); form.SunNauticalTwilightMorning.value = HHMM(sunRise.nauticalTwilightMorning); form.SunNauticalTwilightEvening.value = HHMM(sunRise.nauticalTwilightEvening); form.SunAstronomicalTwilightMorning.value = HHMM(sunRise.astronomicalTwilightMorning); form.SunAstronomicalTwilightEvening.value = HHMM(sunRise.astronomicalTwilightEvening); form.MoonLon.value = round1000(moonCoor.lon*RAD); form.MoonLat.value = round1000(moonCoor.lat*RAD); form.MoonRA.value = HHMM(moonCoor.ra*RAD/15.); form.MoonDec.value = round1000(moonCoor.dec*RAD); form.MoonAz.value = round100(moonCoor.az*RAD); form.MoonAlt.value = round10(moonCoor.alt*RAD+Refraction(moonCoor.alt)); // including refraction form.MoonAge.value = round1000(moonCoor.moonAge*RAD); form.MoonPhaseNumber.value = round1000(moonCoor.phase); form.MoonPhase.value = moonCoor.moonPhase; form.MoonSign.value = moonCoor.sign; form.MoonDistance.value = round10(moonCoor.distance); form.MoonDiameter.value = round100(moonCoor.diameter*RAD*60.); // angular diameter in arc seconds // Calculate distance from the observer (on the surface of earth) to the center of the moon moonCart = EquPolar2Cart(moonCoor.raGeocentric, moonCoor.decGeocentric, moonCoor.distance); form.MoonDistanceObserver.value = round10( Math.sqrt( sqr(moonCart.x-observerCart.x) + sqr(moonCart.y-observerCart.y) + sqr(moonCart.z-observerCart.z) )); moonRise = MoonRise(JD0, eval(form.DeltaT.value.replace(/,/,'.')), lon, lat, eval(form.Zone.value.replace(/,/,'.')), 0); form.MoonTransit.value = HHMM(moonRise.transit); form.MoonRise.value = HHMM(moonRise.rise); form.MoonSet.value = HHMM(moonRise.set); } function InitDate(form) { var now=new Date(); form.Hour.value = now.getHours(); form.Minute.value = now.getMinutes(); if (form.Minute.value<10) form.Minute.value = "0"+form.Minute.value; form.Second.value = now.getSeconds(); if (form.Second.value<10) form.Second.value = "0"+form.Second.value; form.Day.value = now.getDate(); form.Month.value = now.getMonth()+1; if (form.Month.value<10) form.Month.value = "0"+form.Month.value; if (now.getYear()<1900) form.Year.value = now.getYear()+1900; // MSIE returns 2004, but NS years since 1900 else form.Year.value = now.getYear(); form.Zone.value = -now.getTimezoneOffset()/60.; } function Init(form) { InitDate(form); form.DeltaT.value = "65"; // deltaT - difference among 'earth center' versus 'observered' time (TDT-UT), in seconds form.JD.value = empty; form.GMST.value = empty; form.LMST.value = empty; form.Lon.value = "10.0"; form.Lat.value = "50.0"; form.SunLon.value = empty; // SunLat is assumed to be 0 form.SunRA.value = empty; form.SunDec.value = empty; form.SunAz.value = empty; form.SunAlt.value = empty; form.SunDistance.value = empty; form.SunDistanceObserver.value = empty; form.SunDiameter.value = empty; form.SunSign.value = empty; form.SunTransit.value = empty; form.SunRise.value = empty; form.SunSet.value = empty; form.SunCivilTwilightMorning.value = empty; form.SunCivilTwilightEvening.value = empty; form.SunNauticalTwilightMorning.value = empty; form.SunNauticalTwilightEvening.value = empty; form.SunAstronomicalTwilightMorning.value = empty; form.SunAstronomicalTwilightEvening.value = empty; form.MoonLon.value = empty; form.MoonLat.value = empty; form.MoonRA.value = empty; form.MoonDec.value = empty; form.MoonAz.value = empty; form.MoonAlt.value = empty; form.MoonDistance.value = empty; form.MoonDistanceObserver.value = empty; form.MoonDiameter.value = empty; form.MoonPhase.value = empty; form.MoonAge.value = empty; form.MoonSign.value = empty; form.MoonTransit.value = empty; form.MoonRise.value = empty; form.MoonSet.value = empty; //form.Lat.value=47.3686111; } function ViewSource() { window.location = "view-source:"+window.location.href; } //document.write("

Java-Script ist online: View Source

"); document.write("

JavaScript ist online: View Source

");

Your browser does not support JavaScript. You cannot use this tool.

Geografische Breite Grad
Tag.Monat.Jahr .
.
Stunde:Minute:Sekunde ::
Zeitdifferenz zu Weltzeit h
1 h =Winterzeit, 2 h = Sommerzeit
deltaT sek

Julianisches Datum Tage
Greenwich Sternzeit GMST h
Lokale Sternzeit LMST h
Entfernung der Sonne (Erdmittelpunkt) km
Entfernung der Sonne (vom Beobachter) km
Rektaszension der Sonne h
Deklination der Sonne Grad
Azimut der Sonne Grad
Durchmesser der Sonne
Sonnenaufgang h
Sonnenkulmination h
Sonnenuntergang h
Tierkreiszeichen
Entfernung des Mondes (Erdmittelpunkt) km
Entfernung des Mondes (vom Beobachter) km
Eklipt. Breite des Mondes Grad
Rektaszension des Mondes h
Deklination des Mondes Grad
Azimut des Mondes Grad
Durchmesser des Mondes
Mondaufgang h
Mondkulmination h
Monduntergang h
Mondphase
Mondalter Grad
Mondphase
Mondzeichen

Gefallen Dir unsere Beiträge?
Vielen Dank fürs teilen!

Send this to a friend


Fatal error: Uncaught JSMin_UnterminatedRegExpException: JSMin: Unterminated RegExp at byte 578: / Do not remove following text: in /homepages/33/d622048370/htdocs/clickandbuilds/WordPress/MyCMS2/wp-content/plugins/autoptimize/classes/external/php/minify-2.3.1-jsmin.php:262 Stack trace: #0 /homepages/33/d622048370/htdocs/clickandbuilds/WordPress/MyCMS2/wp-content/plugins/autoptimize/classes/external/php/minify-2.3.1-jsmin.php(150): JSMin->action(3) #1 /homepages/33/d622048370/htdocs/clickandbuilds/WordPress/MyCMS2/wp-content/plugins/autoptimize/classes/external/php/minify-2.3.1-jsmin.php(84): JSMin->min() #2 /homepages/33/d622048370/htdocs/clickandbuilds/WordPress/MyCMS2/wp-content/plugins/autoptimize/classlesses/autoptimizeSpeedupper.php(17): JSMin::minify(' <!-- \r\n --...') #3 /homepages/33/d622048370/htdocs/clickandbuilds/WordPress/MyCMS2/wp-includes/class-wp-hook.php(286): ao_js_snippetcacher(' <!-- \r\n --...', '/homepages/33/d...') #4 /homepages/33/d622048370/htdocs/clickandbuilds/WordPress/MyCMS2/wp-inclu in /homepages/33/d622048370/htdocs/clickandbuilds/WordPress/MyCMS2/wp-content/plugins/autoptimize/classes/external/php/minify-2.3.1-jsmin.php on line 262