# TNET Services, Inc.
#
# Copyright: (c) 1992-2007 Copyright TNET Services, Inc.
############################################################################
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
#
# Star Chart
#21 Sep 10 Initial Release
#22 Sep 10 v2 added sky forecast for EU and other locations
# added default initial star chart
#24 Sep 10 v3 added Earth Satellite Vehicle Viewing
# added TNETs Facts
# 5 Oct 10 v4 added $location setting for regional title
# cleaned up $showconstnamessky setting
# added Moon conditions
# added Meteor Shower and Tonight's Sky
# added Sunspot image
# added Stellar Neighbors clickable map
# 3 Nov 10 v5 added sunspot graph
# added color key for EU sky forecast
############################################################################
# This document uses Tab 4 Settings
############################################################################
require_once("Settings.php");
require_once("common.php");
/////////////////////////////////////////////////////////////////////////////
//SETTINGS START HERE////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// For Star Chart setup
$location="Lincoln NE"; //title for your broad viewing location or area
// To set default view for sky chart, change parameter below from "none" to "inline" for only one direction.
$defviewn= "none"; //NORTH is your default view
$defviewe= "none"; //EAST is your default view
$defviews= "none"; //SOUTH is your default view
$defvieww= "none"; //WEST is your default view
$defviewu= "inline"; //UP is your default view
//
$fov=120; //how much sky do you want to see in the star chart.
$showconstnamessky="showconstnames=1&"; //To add Constellation names when viewing chart using the "Up" button,
// add showconstnames=1& between the quotes above.
$spacewxpg= "wxspacewx.php"; //the name of your Space Wx page. If you don't have one place this
// address, or your own preference, between the quotes https://www.swpc.noaa.gov/primer/primer.html
//
// For Sky forecasts
// Only use one $city location. Comment out the one not used.
// For North American locations, goto https://cleardarksky.com/csk/, click Country/State/City,
// then goto bottom of pg for code. Only copy code from inside quotes on
|
Meteor Showers |
Tonight's Sky |
|
|
|
0.0)?'North':'South';
$lon = $SITE['longitude'];
$londir = ($lon < 0.0)?'West':'East';
$lat = abs($lat);
$lon = abs($lon);
?>
Your Sky planets and constellations on
See Icon meanings
Sun/Moon Data for : |
Sunspot Activity
|
Sunset:
Sunrise:
DIY Sunspot Viewer
|
|
illuminated -
Moonrise:
New Moon:
Full Moon:
|
Phenomenal FREE Planetarium software with Satellite Tracking Stellarium
Forecasts courtesy of: ClearSky and
7timer
Worse |
|
|
|
|
|
Better |
|
|
|
|
|
Best |
Sky (including Wind) |
Worse |
|
|
|
|
|
Best |
|
|
|
|
|
Worse |
Ground |
Stellar Neighbors
Click on any star for more details.
Hyperphysics
Space Track-Satellite Passes
Notes about viewing ESVs:
When using lookangles, choose passes with high magnitudes; less than 6.0. ("Looks" are local time.)
Best viewing is when ESV is in Earth's penumbra; on the map, it's the solid line during night.
Dotted line on map denotes ESV is dark, in Earth's umbra (shadow).
Objects in orbit have to maintain a speed of at least 17,500mph, therefore ESVs traverse the sky noticeably different than aircraft.
ESVs appearing to blink are either tumbling rocket bodies, or spinning payloads with deployed solar arrays.
High-Eccentricity objects have a more ellongated orbit. Ground trace looks like a backwards C.
Regression-Ground traces will move West with each orbit due to Earth's rotation.
\n";
foreach ($EnglishMonths as $i => $monthEN) {
$utcstr = preg_replace('|'.$SITE['monthNames'][$i].'|i',$monthEN,$utcstr);
}
echo "\n";
}
$utc = strtotime($utcstr);
$lclstr = date($timeFormat,$utc);
if (isset($SITE['monthNames'])) {
// convert From English for return (will only work if long-format month names in $timeFormat)
echo "\n";
foreach ($EnglishMonths as $i => $monthEN) {
$lclstr = preg_replace('|'.$monthEN.'|i',$SITE['monthNames'][$i],$lclstr);
}
echo "\n";
}
return ($lclstr);
}
# locally used functions
//=========================================================================
// change the hh:mm AM/PM to h:mmam/pm format or format spec by $timeOnlyFormat
function adjustWDtime ( $WDtime ) {
global $timeOnlyFormat,$DebugMode;
if ($WDtime == "00:00: AM") { return ''; }
$t = explode(':',$WDtime);
if (preg_match('/pm/i',$WDtime)) { $t[0] = $t[0] + 12; }
if ($t[0] > 23) {$t[0] = 12; }
if (preg_match('/^12.*am/i',$WDtime)) { $t[0] = 0; }
$t2 = join(':',$t); // put time back to gether;
$t2 = preg_replace('/[^\d\:]/is','',$t2); // strip out the am/pm if any
$r = date($timeOnlyFormat , strtotime($t2));
if ($DebugMode) {
$r = "" . $r;
$r = '