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

Uploaded CPython 3.10Windows x86-64

xtgeo-2.19.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (574.0 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

xtgeo-2.19.1-cp310-cp310-macosx_10_9_x86_64.whl (547.1 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

xtgeo-2.19.1-cp39-cp39-win_amd64.whl (567.1 kB view details)

Uploaded CPython 3.9Windows x86-64

xtgeo-2.19.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (574.2 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

xtgeo-2.19.1-cp39-cp39-macosx_10_9_x86_64.whl (547.1 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

xtgeo-2.19.1-cp38-cp38-win_amd64.whl (567.0 kB view details)

Uploaded CPython 3.8Windows x86-64

xtgeo-2.19.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (574.5 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

xtgeo-2.19.1-cp38-cp38-macosx_10_9_x86_64.whl (547.3 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

xtgeo-2.19.1-cp37-cp37m-win_amd64.whl (566.6 kB view details)

Uploaded CPython 3.7mWindows x86-64

xtgeo-2.19.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (572.7 kB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ x86-64

xtgeo-2.19.1-cp37-cp37m-macosx_10_9_x86_64.whl (545.6 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

xtgeo-2.19.1-cp36-cp36m-win_amd64.whl (566.4 kB view details)

Uploaded CPython 3.6mWindows x86-64

xtgeo-2.19.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (572.7 kB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.17+ x86-64

xtgeo-2.19.1-cp36-cp36m-macosx_10_9_x86_64.whl (545.6 kB view details)

Uploaded CPython 3.6mmacOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: xtgeo-2.19.1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 567.5 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for xtgeo-2.19.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 03d94dd9d7a7b0ecb2716a9015b68eb1d138f150721f05e1671cb297f58f2bbb
MD5 f91da3638102355d23888365aa2bbec2
BLAKE2b-256 8d443ae6dcb3aeb1928565b39fa202837d6e405b63f0130669a23c05e0149e91

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xtgeo-2.19.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 11a0e49019117ea95d0f029bcfaf01324697c0d48732e8814ba93a7bb25f2757
MD5 09fe8d0a650b7aed7a78a3dae04ea85a
BLAKE2b-256 fc889fd619fce7f41e5e2fb86e74be0bf0d9ad4aa23b03b72c81c08b7fcfa424

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xtgeo-2.19.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7fddf9be02cf9d1d5de8040036f89178f6768af521869d1a7ad8a56758a4ef7f
MD5 5d07e2dbd786f7a4cddaf2145aaed754
BLAKE2b-256 ae6b14ea75978a1ac1dbffaf1a57fb5833af846dcf308941aa50ba048a9926c3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xtgeo-2.19.1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 567.1 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for xtgeo-2.19.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 90ad3814c5fe33084aafbf75a0f8f08fc7eac7c0b239dce821a3c21e3eaac2dd
MD5 1c1c1f9065420e498304e45dbd8dcb72
BLAKE2b-256 bd661e00428ddaa432b448944834880268d7fd3aa9475cdeac128aa8e715e353

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xtgeo-2.19.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0cf44e71b2e9bc3b47b8a08db0df81300c658bef1445adb6e22831989511dd13
MD5 992294e8d1b6d025ce0e572b73fd4b64
BLAKE2b-256 fdd8175d3c3c25285e0938f684c5ee76f77440a06d192cbb74429506ec3e58c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xtgeo-2.19.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 be0063fc1001b5fa24ea2cacf727f12a9df7dedc99521e6093488224c3e49487
MD5 3dba729d37e4fdf5ea280e6586d509c5
BLAKE2b-256 7bda1f56f1d15b06e65591e354763ad42609d7a2d60e0a17ae100f4bb1c8735b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xtgeo-2.19.1-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 567.0 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for xtgeo-2.19.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 72a126efc4dc53a38c45feb5d85824bcd8d6043cf54fddac1b176f1fc0293505
MD5 5b53518b35485010e5df1611a4e9d82a
BLAKE2b-256 49b26662a27a9a22304ad9b056346d5b39f89b047473946a0c9ee683ae21f22e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xtgeo-2.19.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c460ea79ce7406805767271ef246ee078dadaa23824361855085c7ed24b885f0
MD5 338f1177358ad19538389a9fc6e072d0
BLAKE2b-256 7416a5dd52c5c6c2da10f4b36224df5964a9ce396306a8322a11d46b9b554063

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xtgeo-2.19.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6439add48a1dbf4b2e7f4ce3a169043039cd0b84e261af3207e8b7452d082c5c
MD5 6ae834b8e5108be923e7db607c1a940c
BLAKE2b-256 2c86e3c859098a9d0f549cd401d773a0b3c1f46ed0cfa8e30adc51400f7da20c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for xtgeo-2.19.1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 57b053687d2a499c6fce3ac98e2cea1c072dcd6d55d54653863854d3c45558ba
MD5 3492e1ac56982a664088a151413feaf3
BLAKE2b-256 0b640b980d92d39603792508ddd00266bdf78502949cea1bdc4a385f3049c5c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xtgeo-2.19.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 74269cb705fa515c31d72ce587fd92488bbdb7bc34ed7b4846f81621372bd3a6
MD5 91ff04644d76fd2bcae9a1371fec1f4f
BLAKE2b-256 82e0257866db211526a5fce3d70a2cebe897ccf2bb47da1e656c97fddb5b0322

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xtgeo-2.19.1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 240d5a666a38951eafacf297a30f5f5478d2ebb3892d60fc702ef95ed23914dd
MD5 8be5728fd2ed677f2ca8d049bcdfd5a9
BLAKE2b-256 b8072b2db3638baec2c537e6aec853640f51fae7e03e5ab2507f75805679b1cc

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for xtgeo-2.19.1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 55e0299e99d0883687297334388fd2f490612c84a66c1744987ffc4e7cdb3853
MD5 4ad2ca5add6ad35d4ee6b8b988214c6c
BLAKE2b-256 7f5c1e0a9d3f6f916c55bb856e84b27c3cb09d76e178233cf230dfa7c6770080

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xtgeo-2.19.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 976526dc1a610e0814e211a4295228e15f897b8e2b1ed3302a02b743177acc98
MD5 d6664c3609aca014bec57414aa68f541
BLAKE2b-256 17872686bcb2d1bad93ba6bdd7f75ee4b2fb28a9ea7bfc9cf8b2ae90de61b67f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xtgeo-2.19.1-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 c3316bffded5de69031444d7865bd9207b42e0879f3c65c47f01b8c0bb5261ce
MD5 36000250762473025ba865adec128135
BLAKE2b-256 049b73e9b66386e31ba4a57cae9a8d7eb2012cb00f1b2fab059c6a06ac3204ec

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