equinor / segyio

Fast Python library for SEGY files.
Other
476 stars 214 forks source link

Feature request: support custom trace headers. #430

Closed ghost closed 3 years ago

ghost commented 4 years ago

I would like to see support for custom trace headers. EG, a 2 byte trace header in the offset region 180-240. Is this a feature that could ever be implemented in segyio?

jokva commented 4 years ago

180-240 is a bit more than two bytes, so I'm not 100% sure that I get what you mean.

With the current approach to header words, this is not really easily supported - it's a pretty hard assumption currently that header words are at the positions (but not necessarily with the semantics) specified by the standard. This is a problem now and again (but honestly because the file is super broken), and would be addressed with a major revision of segyio.

GGDRriedel commented 4 years ago