diff --git a/index.php b/index.php index 28ac898..b19db5c 100644 --- a/index.php +++ b/index.php @@ -65,7 +65,7 @@ $time_into_model = (int)(($burst_timestamp - mktime($gribhour, 0, 0, $gribmonth, $gribday, $gribyear)) / 3600); $time_into_model = $time_into_model - ($time_into_model % 3); ?> -

Launch: " . $initial_lat . ", " . $initial_lon . " - " . $launchdate; ?> GMT
+

Launch: " . $initial_lat . ", " . $initial_lon . " - " . $launchdate; ?> GMT
Landing: " . $land_lat . ", " . $land_lon . " - " . $landdate; ?> GMT
Duration:
Distance:

@@ -110,7 +110,7 @@ launchIcon.image = "icons/arrow.png"; markerOptions = { icon:launchIcon }; var launchMarker = new GMarker(new GLatLng(), markerOptions); GEvent.addListener(launchMarker, "click", function() { - launchMarker.openInfoWindowHtml("Launch Site
"; ?>"); + launchMarker.openInfoWindowHtml("Launch Site
"); }); map.addOverlay(launchMarker) @@ -155,7 +155,7 @@ apogeeIcon.image = "icons/balloon.png"; markerOptions = { icon:apogeeIcon }; var apogeeMarker = new GMarker(new GLatLng(), markerOptions); GEvent.addListener(apogeeMarker, "click", function() { - apogeeMarker.openInfoWindowHtml("Balloon Burst
" . $apogee_lat . ", " . $apogee_lon . " - " . $bursttime ?>"); + apogeeMarker.openInfoWindowHtml("Balloon Burst
" . $apogee_lat . ", " . $apogee_lon . " - " . $bursttime ?>"); }); map.addOverlay(apogeeMarker) diff --git a/index2.php b/index2.php deleted file mode 100644 index c2f283a..0000000 --- a/index2.php +++ /dev/null @@ -1,205 +0,0 @@ -"; - } -?> - - - - CU Spaceflight - Landing Prediction (Beta) - - - - - -

CU Spaceflight - Landing Prediction


- -"; - $land_timestamp = (float)$data[0]; - $land_lat = $data[1]; - $land_lon = $data[2]; - if ((int)$data[3] > $maxalt) { - $maxalt = (int)$data[3]; - $apogee_lat = $data[1]; - $apogee_lon = $data[2]; - $burst_timestamp = (float)$data[0]; - } - } - fclose($file); - - $initial_zoom = "7"; - $initial_lat = $_POST['lat']; - $initial_lon = $_POST['lon']; - - $lat1 = deg2rad($initial_lat); - $lat2 = deg2rad($land_lat); - $lon1 = deg2rad($initial_lon); - $lon2 = deg2rad($land_lon); - //$dist = 2*asin(sqrt((sin(($lat1-$lat2)/2))^2 + cos($lat1)*cos($lat2)*(sin(($lon1-$lon2)/2))^2)); - $distkm = 6366.71 * acos(sin($lat1)*sin($lat2)+cos($lat1)*cos($lat2)*cos($lon1-$lon2)); - - $map_lat = ((float)$_POST['lat'] + (float)$land_lat)/2; - $map_lon = ((float)$_POST['lon'] + (float)$land_lon)/2; - - $launchdate = gmstrftime("%b %d %Y %H:%M", $timestamp); - $launchtime = gmstrftime("%H:%M", $timestamp); - $landdate = gmstrftime("%b %d %Y %H:%M", $land_timestamp); - $landtime = gmstrftime("%H:%M", $land_timestamp); - $bursttime = gmstrftime("%H:%M", $burst_timestamp); - $duration = gmstrftime("%H:%M", $land_timestamp - $timestamp); - $time_into_model = (int)(($burst_timestamp - mktime($gribhour, 0, 0, $gribmonth, $gribday, $gribyear)) / 3600); - $time_into_model = $time_into_model - ($time_into_model % 3); -?> -

Launch: " . $initial_lat . ", " . $initial_lon . " - " . $launchdate; ?> GMT
-Landing: " . $land_lat . ", " . $land_lon . " - " . $landdate; ?> GMT
-Duration:
-Distance:

-

KML File

- - -
-
-

- GFS wind speed data overlay (knots): -
mBar (approx. altitude): - -

- - -
-
- - - - - -