Пример #1
0
    def test_basic(self):
        """Test a (0, 0) coordinate conversion to geocentric cartesian. This is
        expected to give an x coordinate which is the semi-major axis of the
        globe defined in the global coordinate system."""

        plugin = NeighbourSelection()
        x_points = np.array([0])
        y_points = np.array([0])
        result = plugin.geocentric_cartesian(self.global_orography, x_points, y_points)
        radius = self.global_orography.coord_system().semi_major_axis
        expected = [[radius, 0, 0]]
        self.assertArrayAlmostEqual(result, expected)