We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
shot_index
1 parent 7c1b186 commit 70dc39bCopy full SHA for 70dc39b
1 file changed
src/mdio/segy/geometry.py
@@ -487,11 +487,13 @@ def transform(
487
488
# This might be slow and potentially could be improved with a rewrite
489
# to prevent so many lookups
490
+ shot_index = np.empty(len(index_headers), dtype="uint8")
491
+ index_headers = rfn.append_fields(index_headers, "shot_index", shot_index)
492
if geom_type == ShotGunGeometryType.B:
493
for sail_line in unique_sail_lines:
494
sail_line_idxs = np.where(index_headers["sail_line"][:] == sail_line)
- index_headers["shot_point"][sail_line_idxs] = np.floor(
- index_headers["shot_point"][sail_line_idxs] / max_num_guns
495
+ index_headers["shot_index"][sail_line_idxs] = np.floor(
496
+ index_headers["shot_index"][sail_line_idxs] / max_num_guns
497
)
498
return index_headers
499
0 commit comments