@@ -28,25 +28,25 @@ def _validate_coordinates_headers_trace_mask(dataset: Dataset, headers: Structur
2828 validate_variable (
2929 dataset ,
3030 name = "headers" ,
31- dims = [("energy_source_point_num " , 256 ), ("cable" , 512 ), ("channel" , 24 )],
31+ dims = [("shot_point " , 256 ), ("cable" , 512 ), ("channel" , 24 )],
3232 coords = ["gun" , "source_coord_x" , "source_coord_y" , "group_coord_x" , "group_coord_y" ],
3333 dtype = headers ,
3434 )
3535
3636 validate_variable (
3737 dataset ,
3838 name = "trace_mask" ,
39- dims = [("energy_source_point_num " , 256 ), ("cable" , 512 ), ("channel" , 24 )],
39+ dims = [("shot_point " , 256 ), ("cable" , 512 ), ("channel" , 24 )],
4040 coords = ["gun" , "source_coord_x" , "source_coord_y" , "group_coord_x" , "group_coord_y" ],
4141 dtype = ScalarType .BOOL ,
4242 )
4343
4444 # Verify dimension coordinate variables
4545 inline = validate_variable (
4646 dataset ,
47- name = "energy_source_point_num " ,
48- dims = [("energy_source_point_num " , 256 )],
49- coords = ["energy_source_point_num " ],
47+ name = "shot_point " ,
48+ dims = [("shot_point " , 256 )],
49+ coords = ["shot_point " ],
5050 dtype = ScalarType .INT32 ,
5151 )
5252 assert inline .metadata is None
@@ -82,15 +82,15 @@ def _validate_coordinates_headers_trace_mask(dataset: Dataset, headers: Structur
8282 validate_variable (
8383 dataset ,
8484 name = "gun" ,
85- dims = [("energy_source_point_num " , 256 ), ("cable" , 512 ), ("channel" , 24 )],
85+ dims = [("shot_point " , 256 ), ("cable" , 512 ), ("channel" , 24 )],
8686 coords = ["gun" ],
8787 dtype = ScalarType .UINT8 ,
8888 )
8989
9090 source_coord_x = validate_variable (
9191 dataset ,
9292 name = "source_coord_x" ,
93- dims = [("energy_source_point_num " , 256 ), ("cable" , 512 ), ("channel" , 24 )],
93+ dims = [("shot_point " , 256 ), ("cable" , 512 ), ("channel" , 24 )],
9494 coords = ["source_coord_x" ],
9595 dtype = ScalarType .FLOAT64 ,
9696 )
@@ -99,7 +99,7 @@ def _validate_coordinates_headers_trace_mask(dataset: Dataset, headers: Structur
9999 source_coord_y = validate_variable (
100100 dataset ,
101101 name = "source_coord_y" ,
102- dims = [("energy_source_point_num " , 256 ), ("cable" , 512 ), ("channel" , 24 )],
102+ dims = [("shot_point " , 256 ), ("cable" , 512 ), ("channel" , 24 )],
103103 coords = ["source_coord_y" ],
104104 dtype = ScalarType .FLOAT64 ,
105105 )
@@ -108,7 +108,7 @@ def _validate_coordinates_headers_trace_mask(dataset: Dataset, headers: Structur
108108 group_coord_x = validate_variable (
109109 dataset ,
110110 name = "group_coord_x" ,
111- dims = [("energy_source_point_num " , 256 ), ("cable" , 512 ), ("channel" , 24 )],
111+ dims = [("shot_point " , 256 ), ("cable" , 512 ), ("channel" , 24 )],
112112 coords = ["group_coord_x" ],
113113 dtype = ScalarType .FLOAT64 ,
114114 )
@@ -117,7 +117,7 @@ def _validate_coordinates_headers_trace_mask(dataset: Dataset, headers: Structur
117117 group_coord_y = validate_variable (
118118 dataset ,
119119 name = "group_coord_y" ,
120- dims = [("energy_source_point_num " , 256 ), ("cable" , 512 ), ("channel" , 24 )],
120+ dims = [("shot_point " , 256 ), ("cable" , 512 ), ("channel" , 24 )],
121121 coords = ["group_coord_y" ],
122122 dtype = ScalarType .FLOAT64 ,
123123 )
@@ -133,8 +133,8 @@ def test_configuration_depth(self) -> None:
133133
134134 # Template attributes for prestack shot
135135 assert t ._trace_domain == "depth"
136- assert t ._coord_dim_names == ["energy_source_point_num " , "cable" , "channel" ]
137- assert t ._dim_names == ["energy_source_point_num " , "cable" , "channel" , "depth" ]
136+ assert t ._coord_dim_names == ["shot_point " , "cable" , "channel" ]
137+ assert t ._dim_names == ["shot_point " , "cable" , "channel" , "depth" ]
138138 assert t ._coord_names == ["gun" , "source_coord_x" , "source_coord_y" , "group_coord_x" , "group_coord_y" ]
139139 assert t ._var_chunk_shape == [1 , 1 , 512 , 4096 ]
140140
@@ -147,7 +147,7 @@ def test_configuration_depth(self) -> None:
147147 attrs = t ._load_dataset_attributes ()
148148 assert attrs .attributes == {
149149 "surveyDimensionality" : "3D" ,
150- "ensembleType" : "shot " ,
150+ "ensembleType" : "shot_point " ,
151151 "processingStage" : "pre-stack" ,
152152 }
153153 assert t .trace_variable_name == "amplitude"
@@ -158,8 +158,8 @@ def test_configuration_time(self) -> None:
158158
159159 # Template attributes for prestack shot
160160 assert t ._trace_domain == "time"
161- assert t ._coord_dim_names == ["energy_source_point_num " , "cable" , "channel" ]
162- assert t ._dim_names == ["energy_source_point_num " , "cable" , "channel" , "time" ]
161+ assert t ._coord_dim_names == ["shot_point " , "cable" , "channel" ]
162+ assert t ._dim_names == ["shot_point " , "cable" , "channel" , "time" ]
163163 assert t ._coord_names == ["gun" , "source_coord_x" , "source_coord_y" , "group_coord_x" , "group_coord_y" ]
164164 assert t ._var_chunk_shape == [1 , 1 , 512 , 4096 ]
165165
@@ -172,7 +172,7 @@ def test_configuration_time(self) -> None:
172172 attrs = t ._load_dataset_attributes ()
173173 assert attrs .attributes == {
174174 "surveyDimensionality" : "3D" ,
175- "ensembleType" : "shot " ,
175+ "ensembleType" : "shot_point " ,
176176 "processingStage" : "pre-stack" ,
177177 }
178178
@@ -204,7 +204,7 @@ def test_build_dataset_depth(self, structured_headers: StructuredType) -> None:
204204
205205 assert dataset .metadata .name == "Gulf of Mexico 3D Shot Depth"
206206 assert dataset .metadata .attributes ["surveyDimensionality" ] == "3D"
207- assert dataset .metadata .attributes ["ensembleType" ] == "shot "
207+ assert dataset .metadata .attributes ["ensembleType" ] == "shot_point "
208208 assert dataset .metadata .attributes ["processingStage" ] == "pre-stack"
209209
210210 _validate_coordinates_headers_trace_mask (dataset , structured_headers , "depth" )
@@ -213,7 +213,7 @@ def test_build_dataset_depth(self, structured_headers: StructuredType) -> None:
213213 seismic = validate_variable (
214214 dataset ,
215215 name = "amplitude" ,
216- dims = [("energy_source_point_num " , 256 ), ("cable" , 512 ), ("channel" , 24 ), ("depth" , 2048 )],
216+ dims = [("shot_point " , 256 ), ("cable" , 512 ), ("channel" , 24 ), ("depth" , 2048 )],
217217 coords = ["gun" , "source_coord_x" , "source_coord_y" , "group_coord_x" , "group_coord_y" ],
218218 dtype = ScalarType .FLOAT32 ,
219219 )
@@ -237,7 +237,7 @@ def test_build_dataset_time(self, structured_headers: StructuredType) -> None:
237237
238238 assert dataset .metadata .name == "North Sea 3D Shot Time"
239239 assert dataset .metadata .attributes ["surveyDimensionality" ] == "3D"
240- assert dataset .metadata .attributes ["ensembleType" ] == "shot "
240+ assert dataset .metadata .attributes ["ensembleType" ] == "shot_point "
241241 assert dataset .metadata .attributes ["processingStage" ] == "pre-stack"
242242
243243 _validate_coordinates_headers_trace_mask (dataset , structured_headers , "time" )
@@ -246,7 +246,7 @@ def test_build_dataset_time(self, structured_headers: StructuredType) -> None:
246246 seismic = validate_variable (
247247 dataset ,
248248 name = "amplitude" ,
249- dims = [("energy_source_point_num " , 256 ), ("cable" , 512 ), ("channel" , 24 ), ("time" , 2048 )],
249+ dims = [("shot_point " , 256 ), ("cable" , 512 ), ("channel" , 24 ), ("time" , 2048 )],
250250 coords = ["gun" , "source_coord_x" , "source_coord_y" , "group_coord_x" , "group_coord_y" ],
251251 dtype = ScalarType .FLOAT32 ,
252252 )
0 commit comments