7,30c7 < date_default_timezone_set('UTC'); < < $bodies=["Mercury","Venus","Earth","Mars","Jupiter","Saturn","Uranus","Neptune","Pluto","Moon","Sun", < "Phobos", < "Deimos", < "Io", < "Europa", < "Ganymede", < "Callisto", < "Mimas", < "Enceladus", < "Tethys", < "Dione", < "Rhea", < "Titan", < "Hyperion", < "Iapetus", < "Ariel", < "Umbriel", < "Titania", < "Oberon", < "Miranda"]; < < $more=""; --- > $bodies=["Mercury","Venus","Earth","Mars","Jupiter","Saturn","Uranus","Neptune","Pluto","Moon","Sun"]; 37,44d13 < $sb=""; < if (isset($_GET['observer'])) { < if (urldecode($_GET['observer']) != "") { < $sb="\n #epoch { display: none; } \n"; < } < } < < 49,103d17 < < < 105c19 < --- > 107c21 <

RJM Programming - October, 2018

--- >

RJM Programming - October, 2018

109,110c23,24 < Celestial BodyAstrometric geocentric
Right Ascension ... for now or ...
Declination ... for now or ...
< --- > Celestial BodyAstrometric geocentric
Right Ascension ... for now or ...
Declination > 112d25 < 121,136c34,36 < if (file_exists('../Python/thisone.py')) { < unlink('../Python/thisone.py'); < } < if (isset($_GET['epoch']) || isset($_GET['observer'])) { < if (urldecode($_GET['observer']) != "") { < $more="
"; < file_put_contents("../Python/thisone.py", "import ephem\n" . urldecode($_GET['observer']) . "\n"); < $htmlis=str_replace("", urldecode($_GET['observer']) . "", $htmlis); < exec("cat .." . '/' . "Python" . '/' . "Jupiter.py | grep -v '==' | grep -v 'import ephem' | sed '" . '/' . ".dec" . '/' . "s" . '/' . "" . '/' . ".az" . '/' . "g' | sed '" . '/' . ".ra" . '/' . "s" . '/' . "" . '/' . ".alt" . '/' . "g' | sed '" . '/' . "Jupiter" . '/' . "s" . '/' . "" . '/' . "" . urldecode($_GET['body']) . "" . '/' . "g' | sed \"" . '/' . "compute()" . '/' . "s" . '/' . "" . '/' . "compute(iam)" . '/' . "g\" | tr '!' '/' >> .." . '/' . "Python" . '/' . "thisone.py"); < $htmlis=str_replace(">Right Ascension<", ">Altitude<", $htmlis); < $htmlis=str_replace(">Declination<", ">Azimuth<", $htmlis); < $htmlis=str_replace(">Astrometric geocentric<", ">Horizontal coordinate system<", $htmlis); < $htmlis=str_replace(":none;", ":block;", $htmlis); < $htmlis=str_replace(">Please select a Celestial Body below ...<", ">Celestial Bodies ...<", $htmlis); < } else if (urldecode($_GET['epoch']) != "") { < exec("cat .." . '/' . "Python" . '/' . "Jupiter.py | sed '" . '/' . "Jupiter" . '/' . "s" . '/' . "" . '/' . "" . urldecode($_GET['body']) . "" . '/' . "g' | sed \"" . '/' . "compute()" . '/' . "s" . '/' . "" . '/' . "compute(" . str_replace('/','!',urldecode($_GET['epoch'])) . ")" . '/' . "g\" | tr '!' '/' >> .." . '/' . "Python" . '/' . "thisone.py"); --- > if (isset($_GET['epoch'])) { > if (urldecode($_GET['epoch']) != "") { > exec("cat .." . '/' . "Python" . '/' . "Jupiter.py | sed '" . '/' . "Jupiter" . '/' . "s" . '/' . "" . '/' . "" . urldecode($_GET['body']) . "" . '/' . "g' | sed \"" . '/' . "compute()" . '/' . "s" . '/' . "" . '/' . "compute(" . str_replace('/','!',urldecode($_GET['epoch'])) . ")" . '/' . "g\" | tr '!' '/' > .." . '/' . "Python" . '/' . "thisone.py"); 139c39 < exec("cat .." . '/' . "Python" . '/' . "Jupiter.py | sed '" . '/' . "Jupiter" . '/' . "s" . '/' . "" . '/' . "" . urldecode($_GET['body']) . "" . '/' . "g' >> .." . '/' . "Python" . '/' . "thisone.py"); --- > exec("cat .." . '/' . "Python" . '/' . "Jupiter.py | sed '" . '/' . "Jupiter" . '/' . "s" . '/' . "" . '/' . "" . urldecode($_GET['body']) . "" . '/' . "g' > .." . '/' . "Python" . '/' . "thisone.py"); 142c42 < exec("cat .." . '/' . "Python" . '/' . "Jupiter.py | sed '" . '/' . "Jupiter" . '/' . "s" . '/' . "" . '/' . "" . urldecode($_GET['body']) . "" . '/' . "g' >> .." . '/' . "Python" . '/' . "thisone.py"); --- > exec("cat .." . '/' . "Python" . '/' . "Jupiter.py | sed '" . '/' . "Jupiter" . '/' . "s" . '/' . "" . '/' . "" . urldecode($_GET['body']) . "" . '/' . "g' > .." . '/' . "Python" . '/' . "thisone.py"); 150,151c50,51 < $htmlis=str_replace("", "   " . explode(" ",$ar_dec)[0] . "", $htmlis); < $htmlis=str_replace("", "   " . explode(" ",$ar_dec)[1] . $more . "", $htmlis); --- > $htmlis=str_replace("", "" . explode(" ",$ar_dec)[0] . "", $htmlis); > $htmlis=str_replace("", "" . explode(" ",$ar_dec)[1] . "", $htmlis);