コード例 #1
0
 def test_zero_d_zero_ntraces(self):
     dim_names = ["Time"]
     dim_lens = [0]
     segy2netcdf._fill_missing_dims(0, 0, dim_names, dim_lens)
     assert dim_names == ["Time"]
     assert dim_lens == [0]
コード例 #2
0
 def test_no_d(self):
     dim_names = ["Time"]
     dim_lens = [20]
     segy2netcdf._fill_missing_dims(1, 30, dim_names, dim_lens)
     assert dim_names == ["Traces", "Time"]
     assert dim_lens == [30, 20]
コード例 #3
0
 def test_partial_d(self):
     dim_names = ["ShotPoint", "GroupX", "Time"]
     dim_lens = [3, 5, 20]
     segy2netcdf._fill_missing_dims(15, 30, dim_names, dim_lens)
     assert dim_names == ["Traces", "ShotPoint", "GroupX", "Time"]
     assert dim_lens == [2, 3, 5, 20]
コード例 #4
0
 def test_full_d(self):
     dim_names = ["ShotPoint", "GroupX", "Time"]
     dim_lens = [3, 10, 20]
     segy2netcdf._fill_missing_dims(30, 30, dim_names, dim_lens)
     assert dim_names == ["ShotPoint", "GroupX", "Time"]
     assert dim_lens == [3, 10, 20]
コード例 #5
0
 def test_partial_d(self):
     dim_names = ['ShotPoint', 'GroupX', 'Time']
     dim_lens = [3, 5, 20]
     segy2netcdf._fill_missing_dims(15, 30, dim_names, dim_lens)
     assert dim_names == ['Traces', 'ShotPoint', 'GroupX', 'Time']
     assert dim_lens == [2, 3, 5, 20]
コード例 #6
0
 def test_full_d(self):
     dim_names = ['ShotPoint', 'GroupX', 'Time']
     dim_lens = [3, 10, 20]
     segy2netcdf._fill_missing_dims(30, 30, dim_names, dim_lens)
     assert dim_names == ['ShotPoint', 'GroupX', 'Time']
     assert dim_lens == [3, 10, 20]