Ejemplo n.º 1
0
    def test_great_circle_distance_radius(self):
        """Test calculation of great circle distance with radious."""
        r = constants.earth_radius

        distance = geodesy.great_circle_distance(0, 0, 180, 0, r=r)

        assert distance == np.pi * r
Ejemplo n.º 2
0
    def test_great_circle_distance(self):
        """Test calculation of great circle distance."""
        distance = geodesy.great_circle_distance(90, 30, 100, 60)

        assert distance == 10