Skip to main content

XTGeo builds linting codecov CodSpeed 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.11+ 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.

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-4.25.0-cp314-cp314-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.14Windows x86-64

xtgeo-4.25.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

xtgeo-4.25.0-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (3.3 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.26+ ARM64manylinux: glibc 2.28+ ARM64

xtgeo-4.25.0-cp314-cp314-macosx_11_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

xtgeo-4.25.0-cp313-cp313-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.13Windows x86-64

xtgeo-4.25.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

xtgeo-4.25.0-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (3.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.26+ ARM64manylinux: glibc 2.28+ ARM64

xtgeo-4.25.0-cp313-cp313-macosx_11_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

xtgeo-4.25.0-cp312-cp312-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.12Windows x86-64

xtgeo-4.25.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

xtgeo-4.25.0-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (3.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.26+ ARM64manylinux: glibc 2.28+ ARM64

xtgeo-4.25.0-cp312-cp312-macosx_11_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

xtgeo-4.25.0-cp311-cp311-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.11Windows x86-64

xtgeo-4.25.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

xtgeo-4.25.0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (3.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.26+ ARM64manylinux: glibc 2.28+ ARM64

xtgeo-4.25.0-cp311-cp311-macosx_11_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

File details

Details for the file xtgeo-4.25.0-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: xtgeo-4.25.0-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for xtgeo-4.25.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 3598bbfd9f64d228c8aa2f30f808e1ef498a6344a3a50b5689f0c8630fdffe52
MD5 f5f9667efe43b10ccbc5fdd02d086f78
BLAKE2b-256 33e61707c75b9ab3870af4319338d1b6c2e5c23570cbb3af33f1d6f7a1ee14de

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.25.0-cp314-cp314-win_amd64.whl:

Publisher: publish.yml on equinor/xtgeo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xtgeo-4.25.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for xtgeo-4.25.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 88af413764de42709f2707ace74019ede4088969277316884fbbd6e601378701
MD5 d2caa3d45fe021f5f8555bc582954b4d
BLAKE2b-256 fb4d4e44f2cfcbdad5e2b17839aaa1fd6724366fcbf96dc08b3cb335a8c63098

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.25.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: publish.yml on equinor/xtgeo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xtgeo-4.25.0-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for xtgeo-4.25.0-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e35362fc257e87ae60eaf3c3ef155f5c2810ac54ebe9ab81340e3137a8acf341
MD5 2a7c59539b0006e6c351a4c2aa431095
BLAKE2b-256 0ef19a9d5575430cd53162f60ca774620290d550d13452a19bfa90475beb416f

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.25.0-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl:

Publisher: publish.yml on equinor/xtgeo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xtgeo-4.25.0-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for xtgeo-4.25.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 195a18ce287639054d6d4de36fbc9d03984e353b3bf37e5f13dceaca21bc790f
MD5 956dbc399a865ef7efd3154838d36006
BLAKE2b-256 3369eb7092c56c0a34e11b88827b3daf1cb6483ed373280750704018d6c489b3

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.25.0-cp314-cp314-macosx_11_0_arm64.whl:

Publisher: publish.yml on equinor/xtgeo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xtgeo-4.25.0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: xtgeo-4.25.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for xtgeo-4.25.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 6ae8bf7bbaec3f11206034e1d651d82a88331f208aa6b6e484929fdd8f4dcbde
MD5 85d4eb3ca404831b9827995a3523c40c
BLAKE2b-256 72dbd8bacb3a67f4b26b75504bd04f8b38acb60ba81f01946f9213c777b91c8d

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.25.0-cp313-cp313-win_amd64.whl:

Publisher: publish.yml on equinor/xtgeo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xtgeo-4.25.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for xtgeo-4.25.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 466ce790b4b834ab4f4a4d5159f27c63ed7335201a714886e49abe2ffdc6685e
MD5 04d8e6d79968ca567db03e7a2669e6c7
BLAKE2b-256 7d4a3d1d11f56d083267676d002e10132c898769002cd23bbc330604365372fb

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.25.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: publish.yml on equinor/xtgeo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xtgeo-4.25.0-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for xtgeo-4.25.0-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7811ca0d83ec7ca856873e0ef2a8cfa8fe74c223f9c639866b9d9f8aaef85873
MD5 09e10c86e112f788bc447b9b4f4dcca2
BLAKE2b-256 3bf606062bcf7f7a7aed64ef81ae4c272032f9e98b83cc83e8d9b8fbc50fac03

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.25.0-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl:

Publisher: publish.yml on equinor/xtgeo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xtgeo-4.25.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for xtgeo-4.25.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9a15f38135d018724ac182c200bdcf9c4ab4d4a24805ec369352f259b25b323b
MD5 9bf86ca341e4af7a2c7f73b9ef4ce2e4
BLAKE2b-256 b900328ca1f6ff815060320ed45bdf3e25dbc7b05237573efda11bdae242dd12

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.25.0-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: publish.yml on equinor/xtgeo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: xtgeo-4.25.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for xtgeo-4.25.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7b7aae956826756732dbb83520eecc5a0069c953a75798f6bd78ecb9595b7e29
MD5 1384ba4331f9d1fff79fe12e3e2bd516
BLAKE2b-256 16d580b74bc5b9d946414952545abf6a2a9e08845a947497c363f89faf07b885

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.25.0-cp312-cp312-win_amd64.whl:

Publisher: publish.yml on equinor/xtgeo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xtgeo-4.25.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for xtgeo-4.25.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1bc134a31f2e3e8f482cbb22fea3f1542ae4f39315351a17155fd8b61625d928
MD5 ee23e705c8d9f44b21b40808165bd234
BLAKE2b-256 1bf92ca08ec0f587b287a6f49a07cf5ad03529809cadc0245a19b7bea661eebf

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.25.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: publish.yml on equinor/xtgeo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xtgeo-4.25.0-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for xtgeo-4.25.0-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f13266e501fe3950aba5676939a38deab8119fcac04c4633bcf124058cbd71a8
MD5 9d71b982b1759d37d06370241da2e373
BLAKE2b-256 2178365d35592b6793cb8e3b824252240a0d448d10d187fd02b1171163ccd6b3

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.25.0-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl:

Publisher: publish.yml on equinor/xtgeo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for xtgeo-4.25.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3a57a51f554e7116fe58e33a5d27f3b0e6c215a583d068d3d68580224f878ba9
MD5 9043ec8c07b2156004a4f47d0abd4c05
BLAKE2b-256 a5c67bc5b2bdbe272557e2797e24e12d3027fa8de933a812b040c35fcbe1f5e3

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.25.0-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: publish.yml on equinor/xtgeo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: xtgeo-4.25.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for xtgeo-4.25.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e137b2cdad2048439ae59adfcb34d865367797d417bc1fe87d1280f23c5f1a7b
MD5 8c1dfca0bed624dc004d95a37979c8f3
BLAKE2b-256 98c390c7316e5229260a2d2c53c2220b037a2997f4351f7e3bb51b397354baeb

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.25.0-cp311-cp311-win_amd64.whl:

Publisher: publish.yml on equinor/xtgeo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xtgeo-4.25.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for xtgeo-4.25.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5102ee62f0405a464c2be7001249ca5ae923efdd5a8f1354dbd177ee7cd53da7
MD5 11cfd362ae5969deb731148c910c68fd
BLAKE2b-256 d16e2fdc6a667843809150dc53f31389a80644c042b9335fa1e74f8d1ff7d129

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.25.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: publish.yml on equinor/xtgeo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xtgeo-4.25.0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for xtgeo-4.25.0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 ab19b0dedad251bf651e74a78cca9551e82532d749d45b4ffbed6b2d57d7e0ca
MD5 f7d97bd3ae2a1510650e22be43e84afb
BLAKE2b-256 e0eea20bc0d13ba9953d45506aee8ebe7fbef675f1c766e7bd65d4719e633c4f

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.25.0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl:

Publisher: publish.yml on equinor/xtgeo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for xtgeo-4.25.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 15ded661591d342094177a98d87cffefc0a9382630a1110ab2944fdb6fd62971
MD5 fb38732d8c13b17fd301ddc0a2dd6355
BLAKE2b-256 897867265d7fb6fa6b474b7dd3735819cc6aecb68ab7f6b0d8b501d38943dc43

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.25.0-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: publish.yml on equinor/xtgeo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page