Пример #1
0
def test_winds_aloft():
    pre = predict(2) # 1 for GFS data, 2 for Winds Aloft
    origin = array([40.7500,-111.8833,1377])
    V = pre.flight_prediction(origin)
    Fpos= eq.geodetic(V, origin)
    print "Initial Position: \t", origin
    print "Final Position:   \t", Fpos
    print "Vector:           \t", eq.to_vector(V), V 
Пример #2
0
def test_pred_modular():
    print "\nMODULAR PREDICTION TEST: "
    pre = predict(1,30000) # 1 for GFS data, 2 for Winds Aloft
    origin = array([40.7500,-111.8833,1300])
    V = pre.prediction(origin)

    cart = eq.cartesian(V, origin)
    print "Cartesian: \t", cart 
    print "Initial Position: \t", origin
    print "Final Position:   \t", V
    print "Vector:           \t", eq.to_vector(cart, origin)