OpenZGY/Python API and Internals (ALPHA)
Access seismic data stored in ZGY format.
Public Member Functions | List of all members
openzgy.impl.meta.StringListV2 Class Reference
Inheritance diagram for openzgy.impl.meta.StringListV2:
openzgy.impl.meta.StringListV3

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)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

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.

Member Function Documentation

◆ size()

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.

The documentation for this class was generated from the following file: