Skip to main content

No project description provided

Project description

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.

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.

pysegd-4.0.1-py3-none-any.whl (30.9 kB view details)

Uploaded Python 3

File details

Details for the file pysegd-4.0.1-py3-none-any.whl.

File metadata

  • Download URL: pysegd-4.0.1-py3-none-any.whl
  • Upload date:
  • Size: 30.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for pysegd-4.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a99ced3981a8519682c09b8c3a9b59620f5165c789c9f554df246964fd34b07c
MD5 72e8f78a06ecd91cf60d2fd4ae9b4c59
BLAKE2b-256 1b20df5d73e90998c82c6d18f5f2b8365bc84ec21823f55e3bb9d7a7416f9e7a

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