Exemple #1
0
 def test__fail_unsupported_coord_system(self):
     cs = LambertConformal()
     test_cube = self._make_test_cube(cs=cs)
     with self.assertRaisesRegexp(
             ValueError,
             'Grib saving is not supported for coordinate system:'):
         grid_definition_section(test_cube, self.mock_grib)
Exemple #2
0
 def test__fail_irregular_latlon(self):
     test_cube = self._make_test_cube(x_points=(1, 2, 11, 12),
                                      y_points=(4, 5, 6))
     with self.assertRaisesRegexp(
             TranslationError,
             'irregular latlon grid .* not yet supported'):
         grid_definition_section(test_cube, self.mock_grib)