Exemple #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)
Exemple #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())
Exemple #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)
Exemple #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())