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.18.0a1-cp310-cp310-win_amd64.whl (560.8 kB view details)

Uploaded CPython 3.10Windows x86-64

xtgeo-2.18.0a1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (557.1 kB view details)

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

xtgeo-2.18.0a1-cp310-cp310-macosx_10_9_x86_64.whl (540.0 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

xtgeo-2.18.0a1-cp39-cp39-win_amd64.whl (560.6 kB view details)

Uploaded CPython 3.9Windows x86-64

xtgeo-2.18.0a1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (557.2 kB view details)

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

xtgeo-2.18.0a1-cp39-cp39-macosx_10_9_x86_64.whl (540.0 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

xtgeo-2.18.0a1-cp38-cp38-win_amd64.whl (560.7 kB view details)

Uploaded CPython 3.8Windows x86-64

xtgeo-2.18.0a1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (557.5 kB view details)

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

xtgeo-2.18.0a1-cp38-cp38-macosx_10_9_x86_64.whl (540.2 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

xtgeo-2.18.0a1-cp37-cp37m-win_amd64.whl (560.0 kB view details)

Uploaded CPython 3.7mWindows x86-64

xtgeo-2.18.0a1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (556.2 kB view details)

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

xtgeo-2.18.0a1-cp37-cp37m-macosx_10_9_x86_64.whl (538.5 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

xtgeo-2.18.0a1-cp36-cp36m-win_amd64.whl (559.8 kB view details)

Uploaded CPython 3.6mWindows x86-64

xtgeo-2.18.0a1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (556.3 kB view details)

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

xtgeo-2.18.0a1-cp36-cp36m-macosx_10_9_x86_64.whl (538.5 kB view details)

Uploaded CPython 3.6mmacOS 10.9+ x86-64

File details

Details for the file xtgeo-2.18.0a1-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: xtgeo-2.18.0a1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 560.8 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.2

File hashes

Hashes for xtgeo-2.18.0a1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 875c3c61f6767bc963387f952e518c71724a63b44054871459b35dc4f2be18d3
MD5 c418f9a130135edd65af3db399bcdcb8
BLAKE2b-256 80bfe8bcc9e6cbfe0ea5181730fbf00c01a3bcba9465310256cabe704cf8f3d0

See more details on using hashes here.

File details

Details for the file xtgeo-2.18.0a1-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.18.0a1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 de0ec4af6ceb974a788d6388f41216c1a564fa1a93aa21e9047574de0c0c73bf
MD5 af2dd41ededc97244384b0e4e6a70ac2
BLAKE2b-256 8e3d3465c5c73b4f6f0955eb99e2cab4a50108e57add5871e564f6581bcfb92d

See more details on using hashes here.

File details

Details for the file xtgeo-2.18.0a1-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for xtgeo-2.18.0a1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 ae32c4e835e9f468f1deee239228dbc8935fecfa489682674818b6949a3175e5
MD5 3ad6cb59d95358920829e65dbd35bc9e
BLAKE2b-256 8acc42b82ad58dd362844354a1d7551ae9088e054a78fd736f4d3e8e18590752

See more details on using hashes here.

File details

Details for the file xtgeo-2.18.0a1-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: xtgeo-2.18.0a1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 560.6 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.2

File hashes

Hashes for xtgeo-2.18.0a1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7ae64c5e2c95442159c7bd81bd53ce19b900922105d2dcba43871e4df1e2787d
MD5 8be99fde5c64450a6cf1b2ee0da4a089
BLAKE2b-256 39b0da6819052eeeb5be90504066f22722560cb8be7c68328ca3704cb3e7b318

See more details on using hashes here.

File details

Details for the file xtgeo-2.18.0a1-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.18.0a1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 0e7247518bf901b384c06c857ab954ce6dbd1d4e4560b910a12267fed2cc38b9
MD5 48df12ca8234fd9f89f60fba6eaaba40
BLAKE2b-256 bf850ca339368d0359d4c546cd5cfc88a53fadf68058c0338e03488f32e12772

See more details on using hashes here.

File details

Details for the file xtgeo-2.18.0a1-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for xtgeo-2.18.0a1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 305f556d20fbee0d49dbfec6c686a9cfe082cc7d0599bf2a0c9beb3353ab8abb
MD5 e893e05ccba9cdfb2a72fd3d3103c945
BLAKE2b-256 294932bbc188b4b7cb1d43512c03692b017a1daf8b3d53b1b60cce53b741aaa7

See more details on using hashes here.

File details

Details for the file xtgeo-2.18.0a1-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: xtgeo-2.18.0a1-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 560.7 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.2

File hashes

Hashes for xtgeo-2.18.0a1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 10a27987df28730bb9b9204a38dc46a0830f61c2e06765d38baef018dec11ebe
MD5 812cbd88d125341debe448424373b679
BLAKE2b-256 38910ec97cae115b04a1464d31aded29d1cf8541db7a14e4e08eb45ae8f0d476

See more details on using hashes here.

File details

Details for the file xtgeo-2.18.0a1-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.18.0a1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 2c0fc216794ecb779dcc3e73da2cdb425ac6af48e87dcc77b45612f3d6e740c2
MD5 716c1be66596198bc5c1bda21c24ea80
BLAKE2b-256 ef1c4a4a66409f134c42c08db83593cf6b52969aab458c9986f369fcb41b6d87

See more details on using hashes here.

File details

Details for the file xtgeo-2.18.0a1-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for xtgeo-2.18.0a1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1da1f44508adeca6143663e12bc83d3c04da34a31becf9f071cb957718845985
MD5 b9787443a562b563bad9fe40476e513d
BLAKE2b-256 2370c49a3bb44db90b1a1ae00ea7b12cac4f480c084f2873d6dfc30e7d2ba8b3

See more details on using hashes here.

File details

Details for the file xtgeo-2.18.0a1-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: xtgeo-2.18.0a1-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 560.0 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.2

File hashes

Hashes for xtgeo-2.18.0a1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 de4eabc30f36c94457a3c49d92005ab1d192269b0b8fb2296e94909551620570
MD5 8dd00345ce0e8c59187f6a6191ef6b81
BLAKE2b-256 2ee39b240feb66c897c83500132e957ca0e8797b47a5c552d55c7a130738d23f

See more details on using hashes here.

File details

Details for the file xtgeo-2.18.0a1-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.18.0a1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 b174ec3fbfe4d3cdfca5763e72d441ab8140065a7237de53e509f8fb85ea840a
MD5 07d3c134735e0a982f5eaf628cf216b1
BLAKE2b-256 5c58bab9845f4325df7e61fa00b082063a9e71da6e2b383eb4c92f4d5cff2bc4

See more details on using hashes here.

File details

Details for the file xtgeo-2.18.0a1-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for xtgeo-2.18.0a1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 9060775471e484b8e3919ef1a2e30357ebd105a0c7b80072c3edad239abc6a09
MD5 9014cad3a1a95025b139cc74d09d8dd9
BLAKE2b-256 6285d2bf2376175f56cfd22495e0cd462a9bda366843424b95713e367f70bcb3

See more details on using hashes here.

File details

Details for the file xtgeo-2.18.0a1-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: xtgeo-2.18.0a1-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 559.8 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.2

File hashes

Hashes for xtgeo-2.18.0a1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 3d29c399a7293bc9e5cbbb854a9e0011f94591834f321580601a13330994ce8a
MD5 6f7347aa886991999d02670dfa2e1a49
BLAKE2b-256 c1871bc9a6df63402cae65e2291c4096a8c97f371876d850a1ba69056881a4ea

See more details on using hashes here.

File details

Details for the file xtgeo-2.18.0a1-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.18.0a1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 57898bcf110318c160fad343444641a3749361baa0c60d78f414e438cba0e054
MD5 f67ce9f2245167ba86b9a98c626e3df5
BLAKE2b-256 64b96de4d6db528fc3633eb54486af220fe2ff0d07f71608a106e55a504ba506

See more details on using hashes here.

File details

Details for the file xtgeo-2.18.0a1-cp36-cp36m-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for xtgeo-2.18.0a1-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0a498e69c71c664239753a4fc29a8ac43ed323e9516ef0ca34ac5778d5ede4d2
MD5 4055213ae4aae4ff68ea5438dd695892
BLAKE2b-256 ed58a9b3741c7cc0c9fdf96cce8bda5e3947e37457c440309e5b95df687dbf7e

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