Minimal Python implementation of SegyIO
Project description
pysegy
pysegy is a minimal Python library for working with SEGY Rev 1 data. The
project provides helpers to read and write files as well as utilities to scan
large surveys without loading every trace in memory.
Capabilities
- Read complete SEGY files with
segy_readand access both binary and trace headers. - Write new data sets using
segy_writefrom NumPy arrays. - Lazily inspect large archives via
segy_scanand theSegyScanobject. - Retrieve individual header fields with automatic scaling through
get_header. - Compatible with any
fsspecfilesystem for local or remote storage.
Installation
Install the project in editable mode from the repository root:
python -m pip install -e .
Or to install the latest pypi release
pip install pysegy
Testing
Run the unit tests with pytest:
pytest -vs
The tests run automatically on GitHub Actions with coverage reports uploaded to Codecov.
Inspiration
This project started as a lightweight port of the Julia package SegyIO.jl. The goal is to provide a similar user experience for Python while keeping the code base small and easy to understand.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pysegy-0.4.4.dev0.tar.gz.
File metadata
- Download URL: pysegy-0.4.4.dev0.tar.gz
- Upload date:
- Size: 8.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52a9b91b86c8f28820415c8f9d058a2d12922dacd9203d87b37f83c4fc986dc6
|
|
| MD5 |
26010ef23b13f35db0bed4b32eb90cb1
|
|
| BLAKE2b-256 |
33168393896b4f6e2c9a521219ad1aed49d7da1dcdc3301f080cba0e4fde635f
|
File details
Details for the file pysegy-0.4.4.dev0-py3-none-any.whl.
File metadata
- Download URL: pysegy-0.4.4.dev0-py3-none-any.whl
- Upload date:
- Size: 27.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a807a7378088c5167d6980582b180f3eeae9c59685f12b54440f74ad287c19dc
|
|
| MD5 |
7e331eb4fe286f43741150d08f1166d1
|
|
| BLAKE2b-256 |
72b1c62074772c084fda577b89ab104e97161dfdfbf7cb3667debafa809433ab
|