segysak.segy.well_known_byte_locs

segysak.segy.well_known_byte_locs(name)

Return common bytes position kwargs_dict for segy_loader and segy_converter.

Returns a dict containing the byte locations for well known SEG-Y variants in the wild.

Parameters

name (str) – Takes one of keys from KNOWN_BYTES

Returns

A dictionary of SEG-Y byte positions.

Return type

dict

Example:

Use the output of this function to unpack arguments into segy_loader

>>> seismic = segy_loader(filepath, **well_known_byte_locs('petrel_3d'))