Example #1
0
 def test_downsample_mesh(self):
     # Use the simple fault case with a tolerance of 1.0 degree
     numpy.testing.assert_array_almost_equal(
         downsample_mesh(SFLT1.mesh, 1.0).lons[0, :], AS_ARRAY[:, 0], 5)
     numpy.testing.assert_array_almost_equal(
         downsample_mesh(SFLT1.mesh, 1.0).lats[0, :], AS_ARRAY[:, 1], 5)
     numpy.testing.assert_array_almost_equal(
         downsample_mesh(SFLT1.mesh, 1.0).depths[0, :], AS_ARRAY[:, 2], 5)
Example #2
0
 def test_downsample_mesh(self):
     # Use the simple fault case with a tolerance of 1.0 degree
     numpy.testing.assert_array_almost_equal(
         downsample_mesh(SFLT1.mesh, 1.0).lons[0, :],
         AS_ARRAY[:, 0],
         5)
     numpy.testing.assert_array_almost_equal(
         downsample_mesh(SFLT1.mesh, 1.0).lats[0, :],
         AS_ARRAY[:, 1],
         5)
     numpy.testing.assert_array_almost_equal(
         downsample_mesh(SFLT1.mesh, 1.0).depths[0, :],
         AS_ARRAY[:, 2],
         5)