|
OpenZGY/Python API and Internals (ALPHA)
Access seismic data stored in ZGY format.
|
Public Member Functions | |
| def | __init__ (self, buf=None, oh=None, ih=None) |
| def | size (cls, oh=None, ih=None) |
| def | read (cls, f, oh, ih) |
| def | dump (self, *file=None) |
The string list holds 5 null terminated strings: srcname, srcdesc, hprjsys, hunit.name, vunit.name. The reader will ignore trailing garbage. This is the one place we might add additional information without breaking existing readers.
| def openzgy.impl.meta.StringListV2.__init__ | ( | self, | |
buf = None, |
|||
oh = None, |
|||
ih = None |
|||
| ) |
Unpack a byte buffer into a new instance of this header. Caller is responsible for all I/O, so we don't need an iocontext.
| def openzgy.impl.meta.StringListV2.size | ( | cls, | |
oh = None, |
|||
ih = None |
|||
| ) |
On read the size is stored in the offsetheader, which may have gotten it from the infoheader. On write the size depends on the strings written and we might not be able to trust the offsetheader.
1.8.17