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.21.1-cp311-cp311-win_amd64.whl (573.5 kB view details)

Uploaded CPython 3.11Windows x86-64

xtgeo-2.21.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (581.3 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

xtgeo-2.21.1-cp311-cp311-macosx_10_9_x86_64.whl (555.7 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

xtgeo-2.21.1-cp310-cp310-win_amd64.whl (573.6 kB view details)

Uploaded CPython 3.10Windows x86-64

xtgeo-2.21.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (581.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

xtgeo-2.21.1-cp310-cp310-macosx_10_9_x86_64.whl (555.7 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

xtgeo-2.21.1-cp39-cp39-win_amd64.whl (573.3 kB view details)

Uploaded CPython 3.9Windows x86-64

xtgeo-2.21.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (580.9 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

xtgeo-2.21.1-cp39-cp39-macosx_10_9_x86_64.whl (555.7 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

xtgeo-2.21.1-cp38-cp38-win_amd64.whl (573.2 kB view details)

Uploaded CPython 3.8Windows x86-64

xtgeo-2.21.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (581.7 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

xtgeo-2.21.1-cp38-cp38-macosx_10_9_x86_64.whl (555.9 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

xtgeo-2.21.1-cp37-cp37m-win_amd64.whl (572.8 kB view details)

Uploaded CPython 3.7mWindows x86-64

xtgeo-2.21.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (580.4 kB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ x86-64

xtgeo-2.21.1-cp37-cp37m-macosx_10_9_x86_64.whl (555.6 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

xtgeo-2.21.1-cp36-cp36m-win_amd64.whl (573.1 kB view details)

Uploaded CPython 3.6mWindows x86-64

xtgeo-2.21.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (580.4 kB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.17+ x86-64

xtgeo-2.21.1-cp36-cp36m-macosx_10_9_x86_64.whl (555.5 kB view details)

Uploaded CPython 3.6mmacOS 10.9+ x86-64

File details

Details for the file xtgeo-2.21.1-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: xtgeo-2.21.1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 573.5 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for xtgeo-2.21.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 466d67d53c568cf200bebf02fcb545c5483de094a6259f8324630bf6d9993ba8
MD5 ccad00665b84d2b59bc597e23e6f568f
BLAKE2b-256 10583c1f9175ca2e284ff3eac7b1d06fc77129fe4d81a6c17acfe00983960aa6

See more details on using hashes here.

File details

Details for the file xtgeo-2.21.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for xtgeo-2.21.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1d4d90b4ed8263a2f127429e4c9c2317020b72e67fdac3578b45852d8b4274f6
MD5 54c3ce646f8ceeee27c4a80c3d1eef57
BLAKE2b-256 c40fc5e3b4c785699ef48a6eed3d823bfc34750d4d9d5313538728c543126f2b

See more details on using hashes here.

File details

Details for the file xtgeo-2.21.1-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for xtgeo-2.21.1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 48ab6ffe4581d74b74466b8936adcd2dd437099ff6b52cad138a83f5f311dbb4
MD5 c580bef06d987458af9408a9a6dca669
BLAKE2b-256 d900deb977649a8043c6ba464121fb17c2d2c2053622dce7cd048379ffca8e32

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xtgeo-2.21.1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 573.6 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for xtgeo-2.21.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6b733468fdad3e8bb8d36864288717dfc7c7dbc41213e6f9f26819ab09a40390
MD5 85f1ee4b7f688192a853dbdd279ff405
BLAKE2b-256 3d1096b42302ee13a016441105c9538a8053d375c6538f42e192ed6fdba09f0b

See more details on using hashes here.

File details

Details for the file xtgeo-2.21.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for xtgeo-2.21.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a2b725716bdedc6d9c7cd34a40ae1f6b9b20c94e1e11267fe41dca31f5736fd6
MD5 453c420fd0fdd348b9fd3aa7c6d465bc
BLAKE2b-256 a58b507cc359b6eb0e60f6c528407986550d9efe246fc25009d663d2ddc80fc0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xtgeo-2.21.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b7b298fba6469920be0c5c1496d6eddd21cb3823c7f3cab030178342001b8a47
MD5 87b35e32203c5a8f50e0fe66382e389f
BLAKE2b-256 740ef7e6f9fe92697cc02737f70553a81e878915f7e8da729dc47bbbee6a09f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xtgeo-2.21.1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 573.3 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for xtgeo-2.21.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 1d1e1dc902ddb21e1d513df69927f162171179fbbbaa1503ce5315110c394b5c
MD5 0c2fdbc3f0ea87b3642a976dfc0e10ec
BLAKE2b-256 1ef6d18922d58509982a75de87c4f347f76e911d4700f21233ad3bf2d8038af5

See more details on using hashes here.

File details

Details for the file xtgeo-2.21.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for xtgeo-2.21.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4f99f49f5af2a6ef1a97ef46c48818a57eb19b82c3c4fb0a6efe832a8989b8a8
MD5 302e8302be4594624787dfded3445238
BLAKE2b-256 3d435b0ba607ed274f66781520efaac7c0947c2278e436bfa741f7baa4674ce2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xtgeo-2.21.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e49b5e687c2e7924d6d0ad06a5653b2a3f540c40cc80ffa6d60bedf645ee7e2a
MD5 e03e3e64c5d058c652a36605761cc644
BLAKE2b-256 d3cd1c89157a1ad86d64035563c7eff6e0e634fd82db59f0cd12d522036a0cfa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xtgeo-2.21.1-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 573.2 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for xtgeo-2.21.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 9b7832663dbd1506fba95dcc16dcfd5cf3a70e5bb6936f1ee029f1632acf19c6
MD5 7aebca49176884257b2aacab82fbc2a7
BLAKE2b-256 a43c2fb87ec97483af55a04756ff64e6c97c12f3d6c71d72d530fab6d5f83808

See more details on using hashes here.

File details

Details for the file xtgeo-2.21.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for xtgeo-2.21.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 331b579ab5eb60b2f674348f15cf9a3a97f97547e9c6ea02b42dea7eb2aa4878
MD5 17f79b95c9469ee3e51c9e979359dc2f
BLAKE2b-256 bc2a4b610d82381fb362b6661aacadfb80d29fe483c26e95c0d999ecd851d6be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xtgeo-2.21.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f1942fc610d41e38aef1e12cf3bca4e27d2a12a8d3cf766ec6976b94791810b1
MD5 7918ae448267fde653e97423d4524eb1
BLAKE2b-256 c488986bb0322c58ff8fac1163ba81547e86433527ae2e6ec2af356c436bfb17

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xtgeo-2.21.1-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 572.8 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for xtgeo-2.21.1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 6c16a87b6e636ab8cf3c941191376c3b6c5659ee4aff87ddce3d6a788007e535
MD5 ddab04d6f0b47186db7da1b7398669bf
BLAKE2b-256 bddc0951ec45475ee1201c3f6aeadac06eccd64c5e9f29083f68ff7fdaffe0a0

See more details on using hashes here.

File details

Details for the file xtgeo-2.21.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for xtgeo-2.21.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0dea82c61e5d1b17b23d5101eecfed9e88972dbab46301866748ed4cb2574085
MD5 c76dfd42574dfaa1a97f65077a1eaa60
BLAKE2b-256 f7fe18716883e4856edb67ed733208dab7ae8c6fedcaca3c7e808a57b166cb14

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xtgeo-2.21.1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f0cccfe08fcbcab068cce227d2ff1c46ce99c322c888586b2157b92264299620
MD5 91e84d8baf01a7578aae4e0a208bdf3a
BLAKE2b-256 f92a0772040a469327b90edc9c0c3d56b03c1f0b06ae44886c0eec86b51b2497

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xtgeo-2.21.1-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 573.1 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for xtgeo-2.21.1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 baed74697a4bec0fc649a8f7fada6cc0d92dcdcb4fec9d6d25f0fc7f4de1a91b
MD5 5550534f318228b7af5926fedb3a0ea3
BLAKE2b-256 a003a3aeaa5a03666195801b83ec3b859335210cc310f2a81ecc2cedd9541956

See more details on using hashes here.

File details

Details for the file xtgeo-2.21.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for xtgeo-2.21.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 302a9fec8fa492b47544c5baa5261da38e77dc6e4d4e5a716d8e793a657eff58
MD5 d9a2672ff3f3e9587f714b807e1d201f
BLAKE2b-256 a93d80cf00eb2f7682ebdd49a60aae4e7f4e3d75a720bfd95aa2d2a2930b73b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xtgeo-2.21.1-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d8a1f9277f6e7359ff421c99e5b97156f4f54d6df4c7f3a583086eb197c8ba0c
MD5 f18926b8d07a63561699b0ab8d19ce79
BLAKE2b-256 5f6046b0c90e3237ea01ece5568134618e0ebff5765836f894476e7cde506eae

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