Skip to content

Add sfmdioread and sfmdiowrite#329

Draft
markspec wants to merge 3 commits into
ahay:masterfrom
markspec:mdio
Draft

Add sfmdioread and sfmdiowrite#329
markspec wants to merge 3 commits into
ahay:masterfrom
markspec:mdio

Conversation

@markspec
Copy link
Copy Markdown
Contributor

@markspec markspec commented Jun 2, 2026

This PR allows the optional build of sfmdioread and sfmdiowrite. These should be simlar to the sfsegyread and sfsegywrite. with compatible headers. MDIO depends on tensorstore which is build with CMake. This requires that MDIO be prebuilt on the system.

@markspec
Copy link
Copy Markdown
Contributor Author

markspec commented Jun 2, 2026

@BrianMichell, does this look reasonable to you?


/* SEG-Y text (3200-byte EBCDIC) and binary (400-byte) headers stored in the
dataset-level metadata attributes. Each returns false when absent. */
bool mdio_get_text_header(mdio::Dataset& ds, char ahead[SF_EBCBYTES]);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feature has fallen out of sync as of the mdio-python v1.0.0 release, unfortunately. There is a Variable segy_file_header that the current mdio-cpp implementation may have trouble reading.

https://github.com/TGSAI/mdio-python/blob/c3f32a99b29e000a1ac00188679030874a094bac/src/mdio/ingestion/segy/file_headers.py#L25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants