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.17.5-cp310-cp310-win_amd64.whl (558.0 kB view details)

Uploaded CPython 3.10Windows x86-64

xtgeo-2.17.5-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (555.5 kB view details)

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

xtgeo-2.17.5-cp310-cp310-macosx_10_9_x86_64.whl (538.1 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

xtgeo-2.17.5-cp39-cp39-win_amd64.whl (557.6 kB view details)

Uploaded CPython 3.9Windows x86-64

xtgeo-2.17.5-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (555.6 kB view details)

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

xtgeo-2.17.5-cp39-cp39-macosx_10_9_x86_64.whl (538.1 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

xtgeo-2.17.5-cp38-cp38-win_amd64.whl (557.6 kB view details)

Uploaded CPython 3.8Windows x86-64

xtgeo-2.17.5-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (555.8 kB view details)

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

xtgeo-2.17.5-cp38-cp38-macosx_10_9_x86_64.whl (538.4 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

xtgeo-2.17.5-cp37-cp37m-win_amd64.whl (556.8 kB view details)

Uploaded CPython 3.7mWindows x86-64

xtgeo-2.17.5-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (554.5 kB view details)

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

xtgeo-2.17.5-cp37-cp37m-macosx_10_9_x86_64.whl (536.6 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

xtgeo-2.17.5-cp36-cp36m-win_amd64.whl (557.0 kB view details)

Uploaded CPython 3.6mWindows x86-64

xtgeo-2.17.5-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (554.6 kB view details)

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

xtgeo-2.17.5-cp36-cp36m-macosx_10_9_x86_64.whl (536.7 kB view details)

Uploaded CPython 3.6mmacOS 10.9+ x86-64

File details

Details for the file xtgeo-2.17.5-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: xtgeo-2.17.5-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 558.0 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for xtgeo-2.17.5-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4a2083f2cd3f61d6d383bbac947d65bab79e91d281ab6515aaa6783ed9f1b9f9
MD5 157f2db3f2e96bd0880104300c92ad9b
BLAKE2b-256 65f70cbd95e153dac0b9d8ef3c008faa574aa8bc477cb87b80d4061561c7daa5

See more details on using hashes here.

File details

Details for the file xtgeo-2.17.5-cp310-cp310-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.17.5-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 3e208660e5ebdb8b568975894a865a93ecbe60f5ba6fb5f0e26dbc8d90dc09d5
MD5 b50a2e1f51ab327217a27894c9db328c
BLAKE2b-256 42dc77d780bedb9a4a126b46fa90ca90377a627f10e41ffe5f36cd0b8a392fda

See more details on using hashes here.

File details

Details for the file xtgeo-2.17.5-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: xtgeo-2.17.5-cp310-cp310-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 538.1 kB
  • Tags: CPython 3.10, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for xtgeo-2.17.5-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8cab503d78ab3c5e4ef7f7e8a4c0a9556d2e6c3ecb25a5f3a07ec9c1668e7eb3
MD5 f6b939ddcf1e1424f72df2d88b621b10
BLAKE2b-256 011bfa156ce5e88cf5a7273df8d6389092783e96607b2af33c183bb4b95a0911

See more details on using hashes here.

File details

Details for the file xtgeo-2.17.5-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: xtgeo-2.17.5-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 557.6 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for xtgeo-2.17.5-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0462c2ab0d36bf4b4bcd4a54489c310e3aab00fa08c8aca8c7ea04199a93492a
MD5 c474e26723ccc6f773bdc523bcf7059d
BLAKE2b-256 a3731e78d68835f693e128c0faf7c13e90c868d6b18485caf64dd0869cc0bedb

See more details on using hashes here.

File details

Details for the file xtgeo-2.17.5-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.17.5-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 17013ff4414df50ec1d18e9d2cb2dda2e6c4bf7fbf9518e60c30a36008805014
MD5 c8c8e1e02bb6af635b177a364e72eb35
BLAKE2b-256 811b3899d14e7523f49220921efa66aa4a9eac433068b0b9f56786dbd4d9d344

See more details on using hashes here.

File details

Details for the file xtgeo-2.17.5-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: xtgeo-2.17.5-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 538.1 kB
  • Tags: CPython 3.9, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for xtgeo-2.17.5-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d8a8628d4e84dbb912811607f77f4aae4d94577c4230b3bba2ce4f1af4b0bceb
MD5 58ad3534a7a00f415f5ea4414fa8cf63
BLAKE2b-256 a04a5ef9386b2f024332aec515b9ec09f6a1f05bb3a4b18d978090cd7d6350e9

See more details on using hashes here.

File details

Details for the file xtgeo-2.17.5-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: xtgeo-2.17.5-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 557.6 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for xtgeo-2.17.5-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 dd31a60585ccf20e453944ee2252a8b3ed5ea522ad3d4bb938aae531afa81dcb
MD5 87a4b8955d7f8c4bba521e20af1f3384
BLAKE2b-256 f27358a9beb48003949a2ef7198dab12efdbf80d94025fcc6619113d78a726b9

See more details on using hashes here.

File details

Details for the file xtgeo-2.17.5-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.17.5-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 97a791a98f060f293054c596e9f04b44f4b9c38f9ad2c5c398ccb8a859244271
MD5 25fd9715fcc9d2d27bafb2720d8ec6b4
BLAKE2b-256 be75243ef8c2592926ad377ca6d291cfba5c2fa3d5e74d26016dfafa044f45ff

See more details on using hashes here.

File details

Details for the file xtgeo-2.17.5-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: xtgeo-2.17.5-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 538.4 kB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for xtgeo-2.17.5-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e687d14cf78a5e95e3af06dc56b5c9cde1cd5f9f14cc10672ede258a1f96abde
MD5 3a9d408a03af7fbc71038d5c02191447
BLAKE2b-256 8eec166c640aa99dacba568853e9b1c99f64433659138e1f2a3eac4729de6cbe

See more details on using hashes here.

File details

Details for the file xtgeo-2.17.5-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: xtgeo-2.17.5-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 556.8 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for xtgeo-2.17.5-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 cad1a7fab16cc91742e11b98502e8068cb39af573deaa0da79ef926030f01e85
MD5 e23aa09b955f24c09441632ecadf0e1f
BLAKE2b-256 91d58e8db5424812ab6e2b099585fed9ced2fbb3c87cdaa46d02add798386be2

See more details on using hashes here.

File details

Details for the file xtgeo-2.17.5-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.17.5-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 e8345ee9abb425133bfeca458e14ecd5c13d7e994c64d46ced457cdb135432c2
MD5 e6bc938f6e530853b11810f9351d7c46
BLAKE2b-256 3b7cf07650f1546d067d9578ef5f6b421b220e37cd56665de721c3e2b6e0ba35

See more details on using hashes here.

File details

Details for the file xtgeo-2.17.5-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: xtgeo-2.17.5-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 536.6 kB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for xtgeo-2.17.5-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 af6f401fd861988750fc453db1a813d5544c3be7d1bafc0aea67f4390b6a0384
MD5 511359b93ccf84fbe8dca5a44fe53d43
BLAKE2b-256 668872c8196516574c91740f2fc65490bf835bdce87ba9ce9dbb5c3f6083307b

See more details on using hashes here.

File details

Details for the file xtgeo-2.17.5-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: xtgeo-2.17.5-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 557.0 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for xtgeo-2.17.5-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 bff18fbc658a14ff5a98829daf5b0c84ddb13c54b604dc0608f321defa62619c
MD5 44970cc83a1ade704b06818358365e25
BLAKE2b-256 2e52885f44bf5cd487f4480318d1a64c2f44a1e7c96666afa1adf38f7138fe66

See more details on using hashes here.

File details

Details for the file xtgeo-2.17.5-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.17.5-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 be9c209347f3cab4cf8caadebed7a8851ca55bbe67e27b8f39af488373f7ece4
MD5 e264db8d3a03f30181b13dd584d517e3
BLAKE2b-256 b331cf65ea6bfb75ce47f437581dcd2384241f8382d1d0ad83009b570ee60df7

See more details on using hashes here.

File details

Details for the file xtgeo-2.17.5-cp36-cp36m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: xtgeo-2.17.5-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 536.7 kB
  • Tags: CPython 3.6m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for xtgeo-2.17.5-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2e2ac42235a4b54aa29a38d5ba2096cb2a47982d10089bad3b8f9ca8369b5267
MD5 2ca44ad12d2869dc21a5edcc158e93a0
BLAKE2b-256 121868b239b36de691389b3e250b9488f28628d5a4c10b79d76545fdefc119df

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