Create xarray.DataArrays from various subsurface data formats.
Project description
gio
Geoscience I/O for grids and horizons.
The goal of this project is to load and save various geoscience surface data formats (2D and 3D seismic horizons, grids, etc). The interchange formats are the xarray.DataArray (and xarray.Dataset where we need a collection of arrays). This format is convenient because it allows us to store a NumPy array with Pandas-like indexing (as opposed to ordinary NumPy positional indexing).
We've started with:
- OpendTect horizons
- ZMAP grids
- Surfer grids
- Petrel horizons
What formats would you like to see? Make an issue.
Installation
This library is on PyPI, so you can install it with:
pip install gio
To get the latest unstable release, you can install it from GitHub:
python -m pip install --upgrade https://github.com/agile-geoscience/gio/archive/develop.zip
Examples
import gio
da = gio.read_surfer(fname)
da.plot()
See more examples in the notebooks folder.
Contributing
Please get involved! See CONTRIBUTING.md.
Testing
You can run the tests (requires pytest and pytest-cov) with
python run_tests.py
Building
This repo uses PEP 517-style packaging. Read more about this and about Python packaging in general.
Building the project requires build, so first:
pip install build
Then to build gio locally:
python -m build
The builds both .tar.gz and .whl files, either of which you can install with pip.
© 2022 Agile Scientific, openly licenced under Apache 2.0
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 gio-0.1.2.tar.gz.
File metadata
- Download URL: gio-0.1.2.tar.gz
- Upload date:
- Size: 2.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17543348a86e2456c15e912c84adedee10e5b02cc346319a88f6704ecb884205
|
|
| MD5 |
653100a0f14a1c60d5efc86d4ce208e0
|
|
| BLAKE2b-256 |
a6b05ff459d2752f39d1b8f6ca8266588d586557063af19ed3bbb5369285326c
|
File details
Details for the file gio-0.1.2-py3-none-any.whl.
File metadata
- Download URL: gio-0.1.2-py3-none-any.whl
- Upload date:
- Size: 17.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca1f8eb9fb28baa177b4fdbdccbce94904dd07d37bda17e8795fe77cd0573bee
|
|
| MD5 |
dfa332b688d32a3da2d7437e52204a9c
|
|
| BLAKE2b-256 |
4ab0617c7267b169c7fd6aaf49c70100cf71c22c363fab441a76977f90192db7
|