Skip to content

Instantly share code, notes, and snippets.

@seanmcleod
seanmcleod / MH370BackTrack.py
Created April 15, 2014 09:48
Python program to render possible paths for MH-370 backwards from last ping using BFO Doppler data and ping rings.
import math
import matplotlib.pyplot as plt
from matplotlib.patches import Circle
satelliteInfo0011 = { 'Y': 0.0, 'Vz': 159.58, 'LOSSpeed': 250.43, 'PreviousPingTimeOffset': 91.0, 'PingRadius': 2652, 'Color': 'b', 'Elevation': 39.33 }
satelliteInfo2240 = { 'Y': 233.91 - 451.20, 'Vz': 123.31, 'LOSSpeed': 175.49, 'PreviousPingTimeOffset': 60.0, 'PingRadius': 2206, 'Color': 'r', 'Elevation': 47.54 }
satelliteInfo2140 = { 'Y': 233.91 - 557.62, 'Vz': 88.38, 'LOSSpeed': 118.34, 'PreviousPingTimeOffset': 60.0, 'PingRadius': 1965, 'Color': 'g', 'Elevation': 52.01 }
satelliteInfo2040 = { 'Y': 233.91 - 625.88, 'Vz': 47.42, 'LOSSpeed': 57.02, 'PreviousPingTimeOffset': 60.0, 'PingRadius': 1806, 'Color': 'c', 'Elevation': 54.98 }
satelliteInfo1940 = { 'Y': 233.91 - 651.30, 'Vz': 3.22, 'LOSSpeed': 4.97, 'PreviousPingTimeOffset': 78.0, 'PingRadius': 1760, 'Color': 'm', 'Elevation': 55.80 }
@seanmcleod
seanmcleod / Geo.py
Created April 24, 2014 22:09
Python program to render possible paths for MH-370 from 19:40UTC ping arc and filter based on Doppler data
import math
earthRadius = 6371.0
def sphericalToECEF(latlon):
lat, lon = latlon
theta = lon
phi = 90 - lat