The Ultimate Python SEG-Y I/O with Cloud Support and Schemas
Project description
SEG-Y
🚧👷🏻 This project is under active development, expect breaking changes the to API 👷🏻🚧 - March, 2024
This is an efficient and comprehensive SEG-Y parsing library.
See the documentation for more information.
This is not an official TGS product.
Features
The library utilizes numpy
and fsspec
, includes the reading from various local
and remote resources at a high speed. It also allows the users to build their own
SEG-Y specifications.
Installing segy
Clone the repo and install it using pip:
Simplest way to install segy
is via pip from PyPI:
$ pip install segy
or install segy
via conda from conda-forge:
$ conda install -c conda-forge segy
Extras must be installed separately on
Conda
environments.
For details, please see the installation instructions in the documentation.
Using segy
Please see the Command-line Usage for details.
For Python API please see the API Reference for details.
Reading Capabilities
It supports reading from local and cloud files (object store). It can read:
- Sequential traces (fastest)
- Disjoint sequential regions (fast)
- Random traces (slow)
The library will also try to infer the endianness and the revision of the SEG-Y file automatically. If it can't, users can override the endianness, revision, and more parameters using the settings.
High Performance
The performance is high and to be proven with upcoming benchmarks. The initial subjective benchmarks is very acceptable.
Flexibility
The library provides a fully flexible, schematized SEG-Y structure, including data models and JSON schema parsing and validation.
Predefined SEG-Y Standards
It supports predefined SEG-Y "standards" for various versions. However, some versions are still in progress and not all validation logic is implemented yet:
- ✅ Rev 0 (1975)
- ✅ Rev 1 (2002)
- ✅ Rev 2 (2017)
- 🔲 Rev 2.1 (2023)
Custom SEG-Y Standards
You can build your own SEG-Y "standard" with composition of specs for:
- Text header (file + extended)
- Binary header
- Traces (header + extended header + samples)
Contributing to segy
Contributions are very welcome. To learn more, see the Contributor Guide.
Licensing
Distributed under the terms of the Apache 2.0 license.
segy
is free and open source software.
Issues
If you encounter any problems, please file an issue along with a detailed description.
Credits
This project was established at TGS. Current maintainer is Altay Sansal with the support of many more great colleagues.
The CI/CD tooling is loosely based on Hypermodern Python Cookiecutter with more modern tooling applied elsewhere.
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
File details
Details for the file segy-0.2.1.tar.gz
.
File metadata
- Download URL: segy-0.2.1.tar.gz
- Upload date:
- Size: 42.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00339f8aa5e4cada1b75aaf511ef6c74605abd260dec32f809927e8c85d595ea |
|
MD5 | 432a99711cd345759f7c95bf3767177d |
|
BLAKE2b-256 | 6ece107c54741221871f3d90be1ed90d3183d56e6691eb4796af0ede6e2ea0f1 |
Provenance
File details
Details for the file segy-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: segy-0.2.1-py3-none-any.whl
- Upload date:
- Size: 50.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28af7b91001938f344e4099398bc7f84eee28a1ed3fc48f04de4bd69541ad202 |
|
MD5 | de384fb35390691e811e3114e40063b0 |
|
BLAKE2b-256 | 44845beaac62a3472d7482728e0f0ce35f18651ead34e04038d6b243177b5fe2 |