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

Public Member Functions

def __init__ (self, buf=None)
 
def pack (self)
 
def size (self)
 
def read (cls, f)
 
def dump (self, *file=None)
 
def calculate (self, ih=None)
 

Constructor & Destructor Documentation

◆ __init__()

def openzgy.impl.meta.OffsetHeaderV2.__init__ (   self,
  buf = 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

◆ calculate()

def openzgy.impl.meta.OffsetHeaderV2.calculate (   self,
  ih = None 
)
Calculate offsets and sizes for the various headers and tables.
Some information requires the InfoHeader to be already known.
If it isn't we will just calculate as much as we can.

In general the size of a header as written to file might be
larger than the size that the header expects to unpack.
This allows adding more data fields at the end of the header.
Older readers will just unpack the fields they know about.

For ZGY V2 and V3 this is moot, as all the offsets are implicit
with all the headers written sequentially. So the size needs
to match exactly or the headers following this will be corrupt.

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