obspy.io.segy.segy.SEGYBinaryFileHeader

class SEGYBinaryFileHeader(header=None, endian='>')[source]

Bases: object

Parses the binary file header at the given starting position.

Public Methods

write

Writes the header to an open file like object.

Private Methods

Warning

Private methods are mainly for internal/developer use and their API might change without notice.

SEGYBinaryFileHeader._create_empty_binary_file_header()[source]

Just fills all necessary class attributes with zero.

SEGYBinaryFileHeader._read_binary_file_header(header)[source]

Reads the binary file header and stores every value in a class attribute.

SEGYBinaryFileHeader._repr_pretty_(p, cycle)[source]

Special Methods

SEGYBinaryFileHeader.__delattr__(name, /)

Implement delattr(self, name).

SEGYBinaryFileHeader.__dir__()

Default dir() implementation.

SEGYBinaryFileHeader.__eq__(value, /)

Return self==value.

SEGYBinaryFileHeader.__format__(format_spec, /)

Default object formatter.

SEGYBinaryFileHeader.__ge__(value, /)

Return self>=value.

SEGYBinaryFileHeader.__getattribute__(name, /)

Return getattr(self, name).

SEGYBinaryFileHeader.__gt__(value, /)

Return self>value.

SEGYBinaryFileHeader.__hash__()

Return hash(self).

SEGYBinaryFileHeader.__init__(header=None, endian='>')[source]
SEGYBinaryFileHeader.__init_subclass__()

This method is called when a class is subclassed.

The default implementation does nothing. It may be overridden to extend subclasses.

SEGYBinaryFileHeader.__le__(value, /)

Return self<=value.

SEGYBinaryFileHeader.__lt__(value, /)

Return self<value.

SEGYBinaryFileHeader.__ne__(value, /)

Return self!=value.

SEGYBinaryFileHeader.__new__(**kwargs)
SEGYBinaryFileHeader.__reduce__()

Helper for pickle.

SEGYBinaryFileHeader.__reduce_ex__(protocol, /)

Helper for pickle.

SEGYBinaryFileHeader.__repr__()

Return repr(self).

SEGYBinaryFileHeader.__setattr__(name, value, /)

Implement setattr(self, name, value).

SEGYBinaryFileHeader.__sizeof__()

Size of object in memory, in bytes.

SEGYBinaryFileHeader.__str__()[source]

Convenience method to print the binary file header.

SEGYBinaryFileHeader.__subclasshook__()

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).