Skip to main content

XTGeo is a Python library for 3D grids, surfaces, wells, etc

Project description

XTGeo builds linting Codacy Badge codecov Code style: black PyPI version Documentation Status PyPI - Python Version PyPI - License

Introduction

XTGeo is a LGPL licensed Python library with C backend to support manipulation of (oil industry) subsurface reservoir modelling. Typical users are geoscientist and reservoir engineers working with reservoir modelling, in relation with RMS. XTGeo is developed in Equinor.

Detailed documentation for XTGeo at Read the Docs

Feature summary

  • Python 3.6+ support (earlier versions with 2.7+ and 3.5+ support)
  • Focus on high speed, using numpy and pandas with C backend
  • Regular surfaces, i.e. 2D maps with regular sampling and rotation
  • 3D grids (corner-point), supporting several formats such as RMS and Eclipse
  • Support of seismic cubes, using segyio as backend for SEGY format
  • Support of well data, line and polygons (still somewhat immature)
  • Operations between the data types listed above; e.g. slice a surface with a seismic cube
  • Optional integration with ROXAR API python for several data types (see note later)
  • Linux is main development platform, but Windows and MacOS (64 bit) are supported and PYPI wheels for all three platforms are provided.

Installation

For Linux, Windows and MacOS 64bit, PYPI installation is enabled:

pip install xtgeo

For detailed installation instructions (implies C compiling), see the documentation.

Getting started

from xtgeo.surface import RegularSurface

# create an instance of a surface, read from file
mysurf = RegularSurface("myfile.gri")  # Irap binary as default

print("Mean is {}".format(mysurf.values.mean()))

# change date so all values less than 2000 becomes 2000
# The values attribute gives the Numpy array

mysurface.values[mysurface.values < 2000] = 2000

# export the modified surface:
mysurface.to_file("newfile.gri")

Note on RMS Roxar API integration

The following applies to the part of the XTGeo API that is connected to Roxar API (RMS):

RMS is neither an open source software nor a free software and any use of it needs a software license agreement in place.

See HISTORY.md

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

xtgeo-2.16.0rc0-cp39-cp39-win_amd64.whl (543.6 kB view details)

Uploaded CPython 3.9Windows x86-64

xtgeo-2.16.0rc0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (545.5 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.12+ x86-64manylinux: glibc 2.5+ x86-64

xtgeo-2.16.0rc0-cp39-cp39-macosx_10_9_x86_64.whl (528.0 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

xtgeo-2.16.0rc0-cp38-cp38-win_amd64.whl (543.5 kB view details)

Uploaded CPython 3.8Windows x86-64

xtgeo-2.16.0rc0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (545.7 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64manylinux: glibc 2.5+ x86-64

xtgeo-2.16.0rc0-cp38-cp38-macosx_10_9_x86_64.whl (528.2 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

xtgeo-2.16.0rc0-cp37-cp37m-win_amd64.whl (542.8 kB view details)

Uploaded CPython 3.7mWindows x86-64

xtgeo-2.16.0rc0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (544.4 kB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64manylinux: glibc 2.5+ x86-64

xtgeo-2.16.0rc0-cp37-cp37m-macosx_10_9_x86_64.whl (526.5 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

xtgeo-2.16.0rc0-cp36-cp36m-win_amd64.whl (542.7 kB view details)

Uploaded CPython 3.6mWindows x86-64

xtgeo-2.16.0rc0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (544.4 kB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64manylinux: glibc 2.5+ x86-64

xtgeo-2.16.0rc0-cp36-cp36m-macosx_10_9_x86_64.whl (526.5 kB view details)

Uploaded CPython 3.6mmacOS 10.9+ x86-64

File details

Details for the file xtgeo-2.16.0rc0-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: xtgeo-2.16.0rc0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 543.6 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for xtgeo-2.16.0rc0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 2101efd8813eacc1e5ce00cf826899ee231b88189fbdb4d0ade998d1e72e5170
MD5 9cf48a39a4ee1393c0e6a97b5fde4617
BLAKE2b-256 6291e01100d5f9867743022524b7274c22c10f4c14b2df9b0d158bd217dd3473

See more details on using hashes here.

File details

Details for the file xtgeo-2.16.0rc0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for xtgeo-2.16.0rc0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 8b37a5650ab61a3b28c98f9eba4036646d9cd8a8c8d8bd4b5e79025f8450a253
MD5 5a92293e08c6371276662e628b6bb960
BLAKE2b-256 dc1483c7e0214e56aa508f36230a1ff1e51447473a9300d1a3b6ca6fb831858e

See more details on using hashes here.

File details

Details for the file xtgeo-2.16.0rc0-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: xtgeo-2.16.0rc0-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 528.0 kB
  • Tags: CPython 3.9, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for xtgeo-2.16.0rc0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a4b7ffd0f795bad53bb779e19164dc48ab8fc63332042e7e5be957e369ffc956
MD5 36298b1035f8588599c2b16636621751
BLAKE2b-256 ee65222f2cc0fd19935f648726d65ddd6b5217e1e9cb35129adfb036d8ebf8ff

See more details on using hashes here.

File details

Details for the file xtgeo-2.16.0rc0-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: xtgeo-2.16.0rc0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 543.5 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for xtgeo-2.16.0rc0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 85981102183a3c2eb6bde5e85da62792d4eb48fafc02095cae94cd4db0bb3e62
MD5 c73b324c697b772eb7e99433eb41448c
BLAKE2b-256 6eec4421b7c97fd73a91bd3f9a821f311225f25a61bf0e2756b96f8810096c9b

See more details on using hashes here.

File details

Details for the file xtgeo-2.16.0rc0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for xtgeo-2.16.0rc0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 1bcddef2f892e3cb1b0ac74defc6034ba331e3bfd5302b9ddd031e2e2ca8390a
MD5 e26f0a2b24cbb6dc6a76669e5fc24e0f
BLAKE2b-256 81021adb9fa7ad58a6185bce130e187e16d3ca767c19aab5342359bcdfe1f7e7

See more details on using hashes here.

File details

Details for the file xtgeo-2.16.0rc0-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: xtgeo-2.16.0rc0-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 528.2 kB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for xtgeo-2.16.0rc0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0f7516e0d6239f2c33af6a8e9ec9541cd1004bcdd111d06fa4a0c2880d246b48
MD5 3539a31ad04477ae9b8c30bba39f1b1f
BLAKE2b-256 cb4280a4f219a01080c565901c0c6ba6b29bffea9efe14a64a740d5ba19eae58

See more details on using hashes here.

File details

Details for the file xtgeo-2.16.0rc0-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: xtgeo-2.16.0rc0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 542.8 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for xtgeo-2.16.0rc0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 74ce2de48e40697492e8284eccc8d4ff55e6699b9dde0c1149eba664c4c6b8c1
MD5 2ff6da7a55f37322d3a62b91448f40fa
BLAKE2b-256 d36f7febab91fb4e9cd183b1a4079b230f0b9378833896ec348e974b86099785

See more details on using hashes here.

File details

Details for the file xtgeo-2.16.0rc0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for xtgeo-2.16.0rc0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 c68cf094af5fac60a4fd4a4cbdd353139451b90f78127fec7cea2fc053ee5a38
MD5 9ce7de8cc579c259491ec647d381f74d
BLAKE2b-256 3d627bb94eaf2bd29b88a351d10f88179b274d6f985309e952bd6fab277ff1e6

See more details on using hashes here.

File details

Details for the file xtgeo-2.16.0rc0-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: xtgeo-2.16.0rc0-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 526.5 kB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for xtgeo-2.16.0rc0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6126ab9b75727247ae54911254de793884388496f6b98c5e364d3eb5b16be637
MD5 25a4a7a080a848d9acc37b8dac21724e
BLAKE2b-256 967a87c9fe045747f74a6ddee0db52be934dcaddace3faf652aaa9ce4626f757

See more details on using hashes here.

File details

Details for the file xtgeo-2.16.0rc0-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: xtgeo-2.16.0rc0-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 542.7 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for xtgeo-2.16.0rc0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 82ce635b9e64d712077133a5c1099fa410f5fdc318b0bac2f70798f34ac12882
MD5 6e189441b3ee9a9855a0ba7783e1590b
BLAKE2b-256 c174f024bcf54c714dcbab2404bb987a61b103bb75ed2b9ddc5f3d7da9412520

See more details on using hashes here.

File details

Details for the file xtgeo-2.16.0rc0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for xtgeo-2.16.0rc0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 697835672f4a40d1878e5eafdf64f8561f67c2935f78bf11522babb07f04d80b
MD5 b08a543682aed296c527f1d721ed3b6b
BLAKE2b-256 24651f5d2d407ed46269ce5610657330c2dd73a6a39abc0fa4e835c6be096694

See more details on using hashes here.

File details

Details for the file xtgeo-2.16.0rc0-cp36-cp36m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: xtgeo-2.16.0rc0-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 526.5 kB
  • Tags: CPython 3.6m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for xtgeo-2.16.0rc0-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 ea61458bb5e6ca725c2225fab94455c0920cda3fe7affffa6e6848f0757b586e
MD5 220b723f211ed51782004c2d208f3357
BLAKE2b-256 b7c575fb391a0a57293c0f8f7d4875756e5e064b962278cee50f3dc3d4579cc8

See more details on using hashes here.

Supported by

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