Skip to main content

gio

Build and test PyPI status PyPI versions PyPI license

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

Release files for gio 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gio 0.1.2
File Size Uploaded
gio-0.1.2.tar.gz 2.0 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for gio 0.1.2
File Interpreter ABI Platform
gio-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 2.0 MB

Release files / gio-0.1.2.tar.gz

Download URL gio-0.1.2.tar.gz
Size 2.0 MB
Tags Source
SHA-256 checksum
How to use checksums
17543348a86e2456c15e912c84adedee10e5b02cc346319a88f6704ecb884205
BLAKE2b-256 checksum
How to use checksums
a6b05ff459d2752f39d1b8f6ca8266588d586557063af19ed3bbb5369285326c
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / gio-0.1.2-py3-none-any.whl

Download URL gio-0.1.2-py3-none-any.whl
Size 17.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ca1f8eb9fb28baa177b4fdbdccbce94904dd07d37bda17e8795fe77cd0573bee
BLAKE2b-256 checksum
How to use checksums
4ab0617c7267b169c7fd6aaf49c70100cf71c22c363fab441a76977f90192db7
Upload date
Uploaded using Trusted Publishing?
What is 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
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page