You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`0` / `false`| Do not save SEG-Y file headers (default). |
84
+
|`1` / `true`| Save SEG-Y file headers and raise `ValueError` if the text header is not exactly 40x80 ASCII-printable characters (rejects e.g. `U+FFFD` from a lossy EBCDIC decode). |
85
+
|`2`| Save SEG-Y file headers; if the text header is malformed, log a warning and correct it (non-ASCII or non-printable characters become spaces and rows pad to 80x40). |
75
86
76
-
When enabled, preserves the original SEG-Y textual file header during import.
77
-
This is useful for maintaining full SEG-Y standard compliance and preserving survey metadata.
87
+
```{note}
88
+
On export, `mdio_to_segy` always defensively validates the stored text header
89
+
and, if it cannot be re-encoded as ASCII (for example because the store was
90
+
written by an older version of MDIO that accepted lossy EBCDIC decodes),
91
+
repairs it on the fly and emits a warning. Re-ingest the source SEG-Y with
92
+
mode `1` or `2` to silence the warning permanently.
0 commit comments