This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function parab(jdn,e,q,incl,Omega,peri,j0){ | |
/* jdn -текущая юлианская дата j0 - юлианская дата перигелия*/ | |
var t=jdn-j0 | |
var k=0.01720209895 | |
var rad=180/Math.PI | |
function sind(a){return Math.sin(a/rad)} | |
function cosd(a){return Math.cos(a/rad)} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// This script will NOT work without errors in Netscape 2. This | |
// is not only to do with the array.length property in Moon(). | |
// Developed using Navigator 3.04, tested on Navigator 4.6 and | |
// MSIE 5. I do want a Javascript 1.0 version. | |
// | |
// This main function gets the UT (strictly TDT) date and time | |
// from form, does some basic input checking, calls the Moon | |
// function, the nutation function and the ecliptic function, and | |
// writes the resulting outputs to the form in the page. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function planetposition(Omega, w, jdn, lon, T, e, a, i, name, d, albedo){ | |
//Вычисляем положение | |
var Peri=Omega+w; //долгота перигелия | |
var rad=57.29577951; | |
var M=((jdn-2451920.5)/T)*360+lon-Peri; //средняя аномалия | |
//Решение уравнения кеплера - для планет достаточно одной итерации! | |
var ed=57.295779*e; | |
var E1=M+(ed*Math.sin(M/rad)/(1-e*Math.cos(M/rad))); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var kimg=1 | |
//индекся показа линий созвездий | |
var consts=1; | |
var consts2=1; | |
var planetinfo1=1; | |
var planetinfo2=1; | |
var sundelta; | |
var x_circle=300 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//=========================Значение радиана в градусах==================================================== | |
var rad=180/Math.PI | |
//=========================Тригонометрические функции с углами в градусах================================= | |
//-----------------------Синус---------------------- | |
function sind(a){ | |
return (Math.sin(a*Math.PI/180)) | |
} | |
//---------------------Косинус----------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<script src="http://code.jquery.com/jquery-latest.js"></script> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
<title>Планетарий 0.1.1 beta</title> | |
</head> | |
<body> | |
<script type="text/javascript" src="http://astrokot.ru/planetarium/js/atom-full-compiled.js"></script> | |
<script type="text/javascript" src="http://astrokot.ru/planetarium/js/libcanvas-full-compiled.js"></script> |