Skip to main content

Standalone package to read/write seg2 files in python

Project description

PYSEG2

Read/Write seg2 files in python This program is stand alone but it can export obspy streams in seg2 files.

Usage :

from pyseg2 import Seg2file

seg2 = Seg2File()
with open('./input_file.seg2', 'rb') as fid:
    seg2.load(fid)

seg2.seg2traces = seg2.seg2traces[:2]

with open('output_file.seg2', 'wb') as fil:
    fil.write(seg2.pack())

seg2re = Seg2File()
with open('output_file.seg2', 'rb') as fid:
    seg2re.load(fid)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyseg2-1.4.7-py3-none-any.whl (25.1 kB view details)

Uploaded Python 3

File details

Details for the file pyseg2-1.4.7-py3-none-any.whl.

File metadata

  • Download URL: pyseg2-1.4.7-py3-none-any.whl
  • Upload date:
  • Size: 25.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for pyseg2-1.4.7-py3-none-any.whl
Algorithm Hash digest
SHA256 470de9651d0c166f40a5fa2169b5b1b02eeaa7aa5e35987dc9dc39e073f587ee
MD5 f5409f5a3c80859eaaf46bef64756588
BLAKE2b-256 063141c2397c38e6a0f9098787b3bbe854b6565c9f788c46d3992bd00aa42d33

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page