deltaseis
The Deltares Seismic (DeltaSEIS) package is designed to handle all common formats of seismic data. This includes conventional seismic data, DAS fiber optic and simulated data. It provides selection, editing, processing, analysis, and export methods that can be applied generically to the loaded data. It is designed to connect with other Deltares developments such as iMod and DataFusionTools.
Both the Seismic and Segy_editor classes totally rely on the use of the segyio and obspy packages as well as numpy as scipy for data handling and signal processing.
Installation process
The installation uses package manager pixi, for installation options see https://pixi.sh/latest/
To install pixi on windows, in powershell type:
winget install prefix-dev.pixi
Now clone deltaseis to your local drive using:
git clone https://github.com/Deltares-research/deltaseis.git
Then navigate into that folder with:
cd deltaseis
To create a conda enviroment and install deltaseis in it type:
pixi run install
Update deltaseis
To update deltaseis with the latest version from gitlab, open a shell in the deltaseis folder and:
git pull
And the same as with installation type:
pixi run install
Tutorial
Activate the deltaseis_env in a command prompt and type
pixi run notebook
In the browser that opens up, navigate to deltaseis/tutorials and click on segy_editing.ipynb to start a tutorial on how to edit seismic data files called seg-y using the class Segy_editor
Usage
The same tutorial folder there is a .py script that has the same commands as the notebook, that you can use as a template for using the Segy_editor. In the below example we load a segy file for which we like to change the record length to 55 ms and write a copy that reflects that change:
from deltaseis import Seg_editor
seismic_edit = Segy_editor(path/to/segy_infile)
seismic_edit.set_record_lenght(55)
seismic_edit.write(path/to/segy_outfile)
The Seismic class can be called similarly but has a simple 2D data array as input and performs more advanced processing to the data and not just edits. In the below example applies a time-squared gain and a bandpass filter between 80 and 5000 Hz to the data:
seismic = Seismic(data_array)
seismic.time_squared_gain()
seismic.bandpass_filter(lowcut=80, highcut=5000)
Supported geophysics formats
- Seismic files
- Post-stack seismic data (.seg-y)
- Pre-stack seismic data (seg2, segd, dat)
- Synthetic data from SPECFEM (.semd)
- Distributed Acoustic Sensing (DAS) files (Silixa .tdms)
Features
Todo
Roadmap
Todo
Contributing
You can contribute by testing, raising issues and making pull requests. Some general guidelines:
- Use new branches for developing new features or bugfixes. Use prefixes such as feature/ bugfix/ experimental/ to indicate the type of branch
- Add unit tests (and test data) for new methods and functions. We use pytest.
- Add Numpy-style docstrings
- Use Black formatting with default line lenght (88 characters)
- Update requirement.txt en environment.yml files if required
License
MIT license
Metadata
Release files for deltaseis 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| deltaseis-0.0.5.tar.gz | 56.0 kB | Without provenance | Details for deltaseis-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| deltaseis-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for deltaseis-0.0.5-py3-none-any.whl |
Total release size: 117.0 kB
Release files / deltaseis-0.0.5.tar.gz
| Download URL | deltaseis-0.0.5.tar.gz |
|---|---|
| Size | 56.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dae1bc71f156c79bf86704379b8d9748b9973a255e914370b744702ece8de01d
|
|
BLAKE2b-256 checksum How to use checksums |
58ea93dc8a4e778c0dc9d56f1976e62ddc0268ae14b3f2f8f06cff59bc500afa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / deltaseis-0.0.5-py3-none-any.whl
| Download URL | deltaseis-0.0.5-py3-none-any.whl |
|---|---|
| Size | 61.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f9ce0f11683fca9dc769e854e9f0d5bcfb88417f3c3de1437a1f86b17acd0946
|
|
BLAKE2b-256 checksum How to use checksums |
82fd699f228706a3127fe2d22fa8bfcc51bfa75f0739b937e8c971f2609d0100
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Security for deltaseis 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.