Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/equinor/pyvds
Read VDS files with segyio-like syntax
https://github.com/equinor/pyvds
Last synced: 3 months ago
JSON representation
Read VDS files with segyio-like syntax
- Host: GitHub
- URL: https://github.com/equinor/pyvds
- Owner: equinor
- License: apache-2.0
- Created: 2021-07-30T10:07:41.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-07-10T07:31:01.000Z (4 months ago)
- Last Synced: 2024-07-10T09:27:46.415Z (4 months ago)
- Language: Python
- Size: 53.7 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-open-geoscience - pyVDS
README
# pyVDS
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![CircleCI](https://circleci.com/gh/equinor/pyvds/tree/master.svg?style=shield)](https://circleci.com/gh/equinor/pyvds/tree/master)
[![PyPi Version](https://img.shields.io/pypi/v/pyvds.svg)](https://pypi.org/project/pyvds/)Convenience wrapper around Bluware's OpenVDS+ Python bindings which enables
reading of VDS files with a syntax familiar to users of segyio.---
### Installation
Requires [**openvds** package from Bluware](https://community.opengroup.org/osdu/platform/domain-data-mgmt-services/seismic/open-vds).
**N.B. This is licensed under CC-BY-ND 4.0**
- Wheels from [PyPI](https://pypi.org/project/pyvds/): `pip install pyvds`
- Source from [Github](https://github.com/equinor/pyvds): `git clone https://github.com/equinor/pyvds.git`---
### Usage
#### Use segyio-like interface to read VDS files ####
```python
import pyvds
with pyvds.open("in.vds")) as vdsfile:
il_slice = vdsfile.iline[vdsfile.ilines[LINE_IDX]]
xl_slice = vdsfile.xline[LINE_NUMBER]
zslice = vdsfile.depth_slice[SLICE_IDX]
trace = vdsfile.trace[TRACE_IDX]
trace_header = vdsfile.header[TRACE_IDX]
text_file_header = vdsfile.text[0]
```#### Read a VDS file with underlying functions ####
```python
from pyvds.accessors import VdsReader
with VdsReader("in.vds") as reader:
inline_slice = reader.read_inline_number(LINE_NUMBER)
crossline_slice = reader.read_crossline(LINE_IDX)
z_slice = reader.read_zslice_coord(SLICE_COORD)
sub_vol = reader.read_subvolume(min_il=min_il, max_il=max_il,
min_xl=min_xl, max_xl=max_xl,
min_z=min_z, max_z=max_z)
```---
### Creating VDS files
Example of creating wavelet compressed VDS file from SEG-Y:
```
.\SEGYImport.exe --vdsfile --compression-method wavelet --tolerance 1
```
SEGYImport may be obtained from [Bluware's OpenVDSPlus distribution](https://bluware.jfrog.io/native/Releases-OpenVDSPlus/2.1)