Skip to main content

PySegd

Read/write SEG-D files in Python.

This project is rewritten and expanded after the version from read_segd,
licensed under the GNU Lesser General Public License v3 (LGPL v3), as a starting point.

Main Changes (2022, M.L.)

  • Dropped support for Python 2.
  • Removed dependency on ObsPy, making the library standalone.
    Traces can still be converted to ObsPy objects easily.
  • Completely rewrote the program using object-oriented syntax.
    Header fields and data arrays are decoded only on request, while remaining transparent for the user.

August 2022, M.L.

  • Implemented the writing of SEG-D files.

How It Works

  • The file is read using a SegdFile object organized as follows:
    • SegDFile
      • BlockDecoders
        • TypeDecoders
  • The BlockDecoders are subclasses of the BlockDecoder class, which contains the structure for a given block of the file.
  • The TypeDecoders are attributes that handle a specific variable. They internally manage fields of the file header or data in binary or unpacked format.
  • When the user accesses a specific field, the decoder decodes the bytes on demand and returns the unpacked version, making the process transparent to the user.

License

This project is licensed under the GNU Lesser General Public License v3.0.
It is derived from the project read_segd, originally licensed under the GNU Lesser General Public License v3 (LGPL v3).
The original copyright is held by Claudio Satriano.

For more details, see the LICENSE file included in this repository.

Metadata

Release files for pysegd 4.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for pysegd 4.0.1
File Interpreter ABI Platform
pysegd-4.0.1-py3-none-any.whl Python 3 none any Details

Release files / pysegd-4.0.1-py3-none-any.whl

Download URL pysegd-4.0.1-py3-none-any.whl
Size 30.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a99ced3981a8519682c09b8c3a9b59620f5165c789c9f554df246964fd34b07c
BLAKE2b-256 checksum
How to use checksums
1b20df5d73e90998c82c6d18f5f2b8365bc84ec21823f55e3bb9d7a7416f9e7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Release history Release notifications | RSS feed

This release

4.0.1 This release

1 release file

4.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page