@@ -191,7 +191,25 @@ def segy_import( # noqa: PLR0913
191191 overwrite : OverwriteType = False ,
192192 interactive : InteractiveType = False ,
193193) -> None :
194- """Import SEG-Y file to MDIO format."""
194+ """Convert a SEG-Y file into an MDIO dataset.
195+
196+ In non-interactive mode you must provide both --mdio-template and --segy-spec.
197+ Use --interactive to be guided through selecting a template and building a SEG-Y spec.
198+
199+ \b
200+ Examples:
201+ - Non-interactive (local files):
202+ mdio segy import input.segy output.mdio --mdio-template PostStack3DTime --segy-spec segy_spec.json
203+ - Overwrite existing output:
204+ mdio segy import input.segy output.mdio --mdio-template PostStack3DDepth --segy-spec segy_spec.json --overwrite
205+ - Interactive (prompts for template and spec):
206+ mdio segy import input.segy output.mdio --interactive
207+
208+ \b
209+ Notes:
210+ - Storage options are fsspec-compatible JSON passed to --storage-input/--storage-output.
211+ - The command fails if output exists unless --overwrite is provided.
212+ """
195213 if storage_input is not None :
196214 input_path = UPath (input_path , storage_options = storage_input )
197215
@@ -270,7 +288,7 @@ def segy_export( # noqa: PLR0913
270288 \b
271289 Example (will error until implemented):
272290 - mdio segy export input.mdio output.segy --segy-spec segy_spec.json
273- """ # noqa: D301
291+ """
274292 if storage_input is not None :
275293 input_path = UPath (input_path , storage_options = storage_input )
276294
0 commit comments