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.0-py3-none-any.whl (30.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pysegd-4.0.0-py3-none-any.whl
  • Upload date:
  • Size: 30.8 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6e4846f7e0d49c7e5262e9f26bdd00c0a533b8b25da772ed84f0acfe24171062
MD5 520301182913727f46d0c6f13aa4b4d8
BLAKE2b-256 06451d031d40993259148725dfbc7b58e93d1d2e201406e794a46534f106c357

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