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.15rc1-cp39-cp39-win_amd64.whl (541.9 kB view details)

Uploaded CPython 3.9Windows x86-64

xtgeo-2.15rc1-cp39-cp39-macosx_10_9_x86_64.whl (509.0 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

xtgeo-2.15rc1-cp38-cp38-win_amd64.whl (542.4 kB view details)

Uploaded CPython 3.8Windows x86-64

xtgeo-2.15rc1-cp38-cp38-macosx_10_9_x86_64.whl (509.1 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

xtgeo-2.15rc1-cp37-cp37m-win_amd64.whl (540.6 kB view details)

Uploaded CPython 3.7mWindows x86-64

xtgeo-2.15rc1-cp37-cp37m-macosx_10_9_x86_64.whl (507.4 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

xtgeo-2.15rc1-cp36-cp36m-win_amd64.whl (540.6 kB view details)

Uploaded CPython 3.6mWindows x86-64

xtgeo-2.15rc1-cp36-cp36m-macosx_10_9_x86_64.whl (507.5 kB view details)

Uploaded CPython 3.6mmacOS 10.9+ x86-64

File details

Details for the file xtgeo-2.15rc1-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: xtgeo-2.15rc1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 541.9 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for xtgeo-2.15rc1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 380ea8979cafff7e9c8cbc1e76cb28e63965de2ed0a04769b101999c399ce946
MD5 b69148e56846c1e26c6fe13c59c7b1ba
BLAKE2b-256 42cb820eeb1d0ef2609f0dd985a75819cfc8565677e65a395fece8842e011df2

See more details on using hashes here.

File details

Details for the file xtgeo-2.15rc1-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: xtgeo-2.15rc1-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 509.0 kB
  • Tags: CPython 3.9, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for xtgeo-2.15rc1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8cac870ac8975d592c3fc924495711a6c085ee0650753f38e59a529a58bb0340
MD5 430b917d8addebc6e5d87827e54416d0
BLAKE2b-256 4947dbbfb738e32e0275c69540e21ad7e565201d2ed915ef8121a49c8699fe50

See more details on using hashes here.

File details

Details for the file xtgeo-2.15rc1-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: xtgeo-2.15rc1-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 542.4 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for xtgeo-2.15rc1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 63647310248cf7c76f456e5971cc367121c77322cbcb9ad0461b336e711a6134
MD5 9f1bb9033109b8386b8655caa2f6bb73
BLAKE2b-256 595c5d52ec32ff68133dba6b1efed33d77bd3efe46dac5c6e9fee7b42e42fb2f

See more details on using hashes here.

File details

Details for the file xtgeo-2.15rc1-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: xtgeo-2.15rc1-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 509.1 kB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for xtgeo-2.15rc1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 838d3f883b11284e86d27baa9c63689f57a79a8d7bc40d55d5863783c7a1fe4f
MD5 293231306074429b0eeb9e9228017241
BLAKE2b-256 9391bbb612df9db089673e63e24bd4ade049f484a7697b4f7bc44e7830893aeb

See more details on using hashes here.

File details

Details for the file xtgeo-2.15rc1-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: xtgeo-2.15rc1-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 540.6 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for xtgeo-2.15rc1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 5cd79a970c2904c9145787f1b5ea8a709e53332c8c0aca971114474e1488cb99
MD5 869aa4ba7160ddd10befb0e1762c862f
BLAKE2b-256 72f77a48c0af65ec7ad5a4059e1568e45d26ea05b9c9374ef8d41760fa8d75c0

See more details on using hashes here.

File details

Details for the file xtgeo-2.15rc1-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: xtgeo-2.15rc1-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 507.4 kB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for xtgeo-2.15rc1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 aeccf7d7a5bfd580385e3bd6573c2d2fd7fed3280ec544459aefddf200617baf
MD5 a00f3fde60507f47c688f5a1424d236a
BLAKE2b-256 caabb606da983766f5cabbbb634ca62708e1c9cc330e537c1b4861ed158b718b

See more details on using hashes here.

File details

Details for the file xtgeo-2.15rc1-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: xtgeo-2.15rc1-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 540.6 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for xtgeo-2.15rc1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 6b55e69da4b3d7e6bf0d6089ed49a703622fb6a15b1835ad0a31eab27d6630eb
MD5 2c44a3438588029d612c52468807bf35
BLAKE2b-256 bd7a89ec3575586b7491e4d8e10352f70041acd2ae72e2bfceaddcc4b9b2d98c

See more details on using hashes here.

File details

Details for the file xtgeo-2.15rc1-cp36-cp36m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: xtgeo-2.15rc1-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 507.5 kB
  • Tags: CPython 3.6m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for xtgeo-2.15rc1-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 3325507bc8eebcfab33ffdaf1cfc537e1056ea56af54ac6d04a0e943eaf4f934
MD5 1d83c4c8da4cdbf06f417af3b956a1a2
BLAKE2b-256 9a98b91fc3e8ac5fff5771cedba32406186d372aa4dd47724f4efafe68ef586c

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