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