Skip to main content

Create xarray.DataArrays from various subsurface data formats.

Project description

gio

Tests 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gio-0.1.3.tar.gz (2.0 MB view details)

Uploaded Source

Built Distribution

gio-0.1.3-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

Details for the file gio-0.1.3.tar.gz.

File metadata

  • Download URL: gio-0.1.3.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

Hashes for gio-0.1.3.tar.gz
Algorithm Hash digest
SHA256 9d7905a48befe2b738c802bc8c93076201272d2001244c1276b12cd43b167c77
MD5 53502b8f8a9c7a2a5227f8e49b692c70
BLAKE2b-256 807599b7cf278cd436285b2712f7722ec21f1b7fba4e20843b220952798cfb7b

See more details on using hashes here.

File details

Details for the file gio-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: gio-0.1.3-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

Hashes for gio-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7726d21a6a4ce0825a1bfed9052f97aff9b297c7d4270d08810412153378dcad
MD5 a4637e365b088edb7867f20c403a0559
BLAKE2b-256 4a7f7e8475db09774b282c2ca866727970e820bd0e194fce8a8a16f954293e63

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page