def test_site_distance(self): altitude = georef.bin_altitude(np.arange(10., 101., 10.) * 1000., 2., 0, 6370040.) distance = georef.site_distance(np.arange(10., 101., 10.) * 1000., 2., altitude, 6370040.) distref = np.array([9993.49302358, 19986.13717891, 29977.90491409, 39968.76869178, 49958.70098959, 59947.6743006, 69935.66113377, 79922.63401441, 89908.5654846, 99893.4281037]) np.testing.assert_allclose(distref, distance)
def test_site_distance(self): altitude = georef.bin_altitude(np.arange(10., 101., 10.) * 1000., 2., 0, 6370040.) distance = georef.site_distance(np.arange(10., 101., 10.) * 1000., 2., altitude, 6370040.) distref = np.array([9993.49302358, 19986.13717891, 29977.90491409, 39968.76869178, 49958.70098959, 59947.6743006, 69935.66113377, 79922.63401441, 89908.5654846, 99893.4281037]) np.testing.assert_allclose(distref, distance)