Skip to content

Conversation

@tasansal
Copy link
Collaborator

@tasansal tasansal commented Oct 15, 2025

See below example. X/Y coordinates are automatically added via segy_to_mdio but for others users can specify.

Also updated the docs here: PR Docs

from mdio.builder.templates.seismic_3d_prestack_shot import Seismic3DPreStackShotTemplate
from mdio.builder.schemas.v1.units import LengthUnitEnum
from mdio.builder.schemas.v1.units import LengthUnitModel
from mdio.builder.schemas.v1.units import TimeUnitEnum
from mdio.builder.schemas.v1.units import TimeUnitModel


UNITS_METER = LengthUnitModel(length=LengthUnitEnum.METER)
UNITS_SECOND = TimeUnitModel(time=TimeUnitEnum.SECOND)

t = Seismic3DPreStackShotTemplate(data_domain="time")
t.add_units({"source_coord_x": UNITS_METER, "source_coord_y": UNITS_METER})  # spatial domain units
t.add_units({"group_coord_x": UNITS_METER, "group_coord_y": UNITS_METER})  # spatial domain units
t.add_units({"time": UNITS_SECOND})  # data domain units

@tasansal tasansal self-assigned this Oct 15, 2025
@tasansal tasansal added the enhancement New feature or request label Oct 15, 2025
@tasansal tasansal merged commit fe87a83 into main Oct 15, 2025
16 checks passed
@tasansal tasansal deleted the add-vertical-units branch October 15, 2025 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants