Skip to main content

Create xarray.DataArrays from various subsurface data formats.

Project description

gio

Tests Build docs PyPI version 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/agilescientific/gio/archive/develop.zip

Basic usage

In general, there's a reader for each supported file format. The reader produces an xarray.DataArray, or xarray.Dataset if the format supports multiple surfaces in one file.

import gio

da = gio.read_surfer(fname)
da.plot()

Documentation

See the documentation for more examples, and for help developing gio or making contributions back to this project.

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.2.0.tar.gz (4.6 MB view details)

Uploaded Source

Built Distribution

gio-0.2.0-py3-none-any.whl (32.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gio-0.2.0.tar.gz
  • Upload date:
  • Size: 4.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for gio-0.2.0.tar.gz
Algorithm Hash digest
SHA256 9214ec811b40757a355fc85eb7549f86fde0ec4e3a5fb9464d11f428a86d3540
MD5 b6282f5ef72dcebe4a979d419b2f3ce4
BLAKE2b-256 23cd4c09b6d36ec00829747f9ab442ad481ef4c2fb0a2e6bc9bd633ea9ddff91

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gio-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 32.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for gio-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1b02de0ae7d9d5c80e1dd36056bdbeb4fc7477ff82562516576beb68abdbcd9a
MD5 460d0bb77ee4fe487d31a0b32d48c05f
BLAKE2b-256 104e6346970bd44a38f43ab2a60ddefdd39423e4438780b563864bfbb88ea58d

See more details on using hashes here.

Supported by

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