"; } ?> 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); $data = parse_ini_file("example_scenario.ini"); // get the data from the scenario file $initial_zoom = "7"; $initial_lat = $data['latitude']; $initial_lon = $data['longitude']; $timestamp = mktime($data['hour'], $data['minute'], $data['second'], (int)$data['month'] + 1, $data['day'], (int)$data['year'] - 2000); $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)$initial_lat + (float)$land_lat)/2; $map_lon = ((float)$initial_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:

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