Skip to main content

XTGeo is a Python library for 3D grids, surfaces, wells, etc

Project description

XTGeo builds linting codecov Ruff 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.8+ 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

import xtgeo

# create an instance of a surface, read from file
mysurf = xtgeo.surface_from_file("myfile.gri")  # Irap binary as default

print(f"Mean is {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.

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

xtgeo-4.2.0-cp312-cp312-win_amd64.whl (749.9 kB view details)

Uploaded CPython 3.12 Windows x86-64

xtgeo-4.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (869.5 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

xtgeo-4.2.0-cp312-cp312-macosx_11_0_arm64.whl (765.0 kB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

xtgeo-4.2.0-cp312-cp312-macosx_10_13_x86_64.whl (804.8 kB view details)

Uploaded CPython 3.12 macOS 10.13+ x86-64

xtgeo-4.2.0-cp311-cp311-win_amd64.whl (748.8 kB view details)

Uploaded CPython 3.11 Windows x86-64

xtgeo-4.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (869.5 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

xtgeo-4.2.0-cp311-cp311-macosx_11_0_arm64.whl (764.9 kB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

xtgeo-4.2.0-cp311-cp311-macosx_10_9_x86_64.whl (804.6 kB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

xtgeo-4.2.0-cp310-cp310-win_amd64.whl (747.1 kB view details)

Uploaded CPython 3.10 Windows x86-64

xtgeo-4.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (868.1 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

xtgeo-4.2.0-cp310-cp310-macosx_11_0_arm64.whl (763.5 kB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

xtgeo-4.2.0-cp310-cp310-macosx_10_9_x86_64.whl (803.3 kB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

xtgeo-4.2.0-cp39-cp39-win_amd64.whl (745.7 kB view details)

Uploaded CPython 3.9 Windows x86-64

xtgeo-4.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (868.2 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

xtgeo-4.2.0-cp39-cp39-macosx_10_9_x86_64.whl (803.2 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

xtgeo-4.2.0-cp38-cp38-win_amd64.whl (747.5 kB view details)

Uploaded CPython 3.8 Windows x86-64

xtgeo-4.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (867.8 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

xtgeo-4.2.0-cp38-cp38-macosx_10_9_x86_64.whl (803.0 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

File details

Details for the file xtgeo-4.2.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: xtgeo-4.2.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 749.9 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for xtgeo-4.2.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 945871bace7cb7abe193970daa67910b0534e1dd65b9ee5e1698e708020c261b
MD5 fdf0dcad68b196cc5930a3d2e5f7e2f4
BLAKE2b-256 edc8e0bef6bae365ac450eb01025b4ff4d4fc4f7db579b525468029973e8c5c9

See more details on using hashes here.

File details

Details for the file xtgeo-4.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for xtgeo-4.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 36cd07e2e8271346984fd0f08884fa7af08a7aa80a79f2df84c2fa95e99b54de
MD5 6a2c7902ef21ac9280735ecf94666680
BLAKE2b-256 b94804382fb8e83a45ac47abba95f9409c9d17efb4a16fd99f4dd5c14367ad94

See more details on using hashes here.

File details

Details for the file xtgeo-4.2.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for xtgeo-4.2.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fcc305c243616b403e63d33f046f9040c93844378a5aa79a9f369b116c819584
MD5 69b5fb721c97f5190ab0b11d54e78d68
BLAKE2b-256 7e7e580587563dc57d680a4f8c0a80c143cf65f89ede8bd5918ff6483846dc9a

See more details on using hashes here.

File details

Details for the file xtgeo-4.2.0-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for xtgeo-4.2.0-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 576b7a07cfd65b330130cf8789b5629799603071eff56007d370d3b83baa070c
MD5 62967dccd5e8e26597ae4f71a05927d1
BLAKE2b-256 a3c86930efa655d3232a4af3ea27fb4a432d235e09b9196efee3a19e06a766a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xtgeo-4.2.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 748.8 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for xtgeo-4.2.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 90585a4c83ee33a9bd9c27928f373dab084447b4cb56d536061117a58738bc39
MD5 5eeb8b7470c800c29bb74119e08f8ee3
BLAKE2b-256 b149a355d4fd9ff2c98112e48ee2ad45d364926f0bbe5dfcabaf6f9aca73f8d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xtgeo-4.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7af4b7a22c0c563568560e09f66536ee133fd72eab0a4fcc01b1313ad8ea5a0b
MD5 6e5bef3ff939b954eb0bc823e6bdc14a
BLAKE2b-256 b692186fe926b6c8fa46182beb17effc51a2aa75d0476624c836aaed4854ad53

See more details on using hashes here.

File details

Details for the file xtgeo-4.2.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for xtgeo-4.2.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 210b48d3f6ae05fac1f7bce23df88ed2c9f3cf2a9b8593c488d05b5a5f65f8ef
MD5 17193b4737a6e93a51c415d52fb9e928
BLAKE2b-256 8e3834428864b67c1a34a8632c9fdcf67712aad9580cb9c6943ab7b97c208f61

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xtgeo-4.2.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2fcafcdb028f4f7f7fbff6a940e52b50ba0985363eb97b5bc8246750bf669923
MD5 ef7aea5ac78daac4d84e5d9c63d0fc20
BLAKE2b-256 bead0ddde46a1f82473f8f5d4692952eb93c57b9bc59ecb7cd7d754af02f4d7c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xtgeo-4.2.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 747.1 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for xtgeo-4.2.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b1deb6078832206830aa0ade6c9902f247484ac596f546d9f87c64fa8f5d29a2
MD5 130dcce45561f7b29dbcb6c9d648c436
BLAKE2b-256 6f728a0584ce87066740922ff3a00b0ccd4acf9e820b3252defdf6a276daed7f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xtgeo-4.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 36369c6f28dd1ae5a858a0a2e4b76388edf122ce575a1b68a547d21472726a07
MD5 0af3df612cf0db27e833fffc1eca1014
BLAKE2b-256 ec535bc2ac019eac5c3967bc6bc64613d611bad60ee95f0c29330f756c45fc4b

See more details on using hashes here.

File details

Details for the file xtgeo-4.2.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for xtgeo-4.2.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 66d3822aa96a2ff356d41e243ab38e3975e9477a518e540947700a95fc4cd2c8
MD5 95b045301b8b4cb3b512067b1e82d411
BLAKE2b-256 79c82b0a81ccdf447fb8923ebdc5e30fa58117019095a223db9b2644b46eec8e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xtgeo-4.2.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 69b3abea027eba75a07bb24e04a6f6ba6472d3f072e34978a0f87235e56d4a62
MD5 2c9ebc9b49dce2c96854d68d478e5391
BLAKE2b-256 6e9f12bb8d0ec98c218fecfb4d8152db3cc8a7ba7d13f3deb5d02a00b08e617a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xtgeo-4.2.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 745.7 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for xtgeo-4.2.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 aadf842d80ab14f80ce2887fe6f220622a900eb49edf3d7a18513d0ca0827bda
MD5 f8fad9d4fffd1162cd51fe0a7ddff1b3
BLAKE2b-256 180ace41ebce04ea960e22170da2df96ffea74807ed76bfb611e36f88fc0dbc4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xtgeo-4.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dbf4c807dbd8d1bdd23063633d3f7793bcca03e5d5438eab5b2eecdaeb0ed9da
MD5 3b88d9b271a04a7e83277593b56f0972
BLAKE2b-256 a2a6055065155c412cb46e9d2baef5005e622d1af138b965f78a854c621600d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xtgeo-4.2.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a50d7f0d7be62a3cb5818e91b5bb4694db105d4b94796a70a8820aa232a72763
MD5 b0e387ffa960f9756d75ad0d46cd0ec1
BLAKE2b-256 96219b6820c24f784ecaa2a3359f394709f80daabeebe898bbdbda9d42baf4f0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xtgeo-4.2.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 747.5 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for xtgeo-4.2.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 331d3a0af6dfe7b44758c52780f7176ecf1f9695e3bd0b7bd34a2e4a242b5db0
MD5 918bead976047e45efdb5292b94ac2e2
BLAKE2b-256 1852f70feda5572597a61fc63abb91f1332746fbbc1dcd2e97510e8ec4db1bdb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xtgeo-4.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 54f2725363bb8d0966971e29fb00ae6f5aa880272f1784a7552808dc5d3ed9f6
MD5 efbb8ff56282b02690e11782c18fece8
BLAKE2b-256 3c76b2bd00b3b6db6b20d096ab744d6fc14c9f8e1ce8a6cb226f602f6edec257

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xtgeo-4.2.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1b707ebb8a807c9807955d7868076946b38117c85be0f970b9f8e9410a97d247
MD5 dd040d9faf2a2020141382dde1b0b87e
BLAKE2b-256 fbc581b1dca03efaa7ac83a780cbb057dfdb0ab2dcc95e87321ca5d2f54e1afc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page