예제 #1
0
    def test_azimuth_y(self):
        d = Domain(4326, "-te 25 70 35 72 -ts 500 500")
        au = d.azimuth_y()

        self.assertEqual(np.round(au[0, 0]), 0)
        self.assertEqual(np.round(au[10, 10]), 0)
예제 #2
0
 def test_azimuth_y(self, mock_get_geolocation_grids):
     d = Domain(4326, "-te -4 -5 +6 +7 -ts 3 2")
     self.assertTrue((d.azimuth_y() == np.array([[0., 0., 0.],
                                                 [0., 0., 0.]])).all())
예제 #3
0
    def test_azimuth_y(self):
        d = Domain(4326, "-te 25 70 35 72 -ts 500 500")
        au = d.azimuth_y()

        self.assertEqual(np.round(au[0, 0]), 0)
        self.assertEqual(np.round(au[10, 10]), 0)
예제 #4
0
 def test_azimuth_y(self, mock_get_geolocation_grids):
     d = Domain(4326, "-te -4 -5 +6 +7 -ts 3 2")
     self.assertTrue((d.azimuth_y()==np.array([[ 0.,  0.,  0.], [ 0.,  0.,  0.]])).all())