def test_flight_path_angle(): # Data from Curtis, example 2.5 nu = 109.5 # deg ecc = 0.6 expected_gamma = 35.26 # deg gamma = angles.fp_angle(np.deg2rad(nu), ecc) assert_almost_equal(gamma, np.deg2rad(expected_gamma), decimal=3)
def test_flight_path_angle(): # Data from Curtis, example 2.5 nu = 109.5 * u.deg ecc = 0.6 * u.one expected_gamma = 35.26 * u.deg gamma = angles.fp_angle(np.deg2rad(nu), ecc) assert_almost_equal(gamma.to(u.rad).value, expected_gamma.to(u.rad).value, decimal=3)
def test_flight_path_angle(): # Data from Curtis, example 2.5 nu = 109.5 * u.deg ecc = 0.6 * u.one expected_gamma = 35.26 * u.deg gamma = angles.fp_angle(np.deg2rad(nu), ecc) assert_quantity_allclose(gamma, expected_gamma, rtol=1e-3)