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.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.

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

Uploaded CPython 3.14Windows x86-64

xtgeo-4.22.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.22.0-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (3.2 MB view details)

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

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

Uploaded CPython 3.14macOS 11.0+ ARM64

xtgeo-4.22.0-cp313-cp313-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.13Windows x86-64

xtgeo-4.22.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.22.0-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (3.2 MB view details)

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

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

Uploaded CPython 3.13macOS 11.0+ ARM64

xtgeo-4.22.0-cp312-cp312-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.12Windows x86-64

xtgeo-4.22.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.22.0-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (3.2 MB view details)

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

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

Uploaded CPython 3.12macOS 11.0+ ARM64

xtgeo-4.22.0-cp311-cp311-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.11Windows x86-64

xtgeo-4.22.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.22.0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (3.2 MB view details)

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

xtgeo-4.22.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.22.0-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: xtgeo-4.22.0-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for xtgeo-4.22.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 5fed79f22f9ecf4de969e800b1558740a495f13a155a7509de16b64f1a00fdf3
MD5 5901e6fae07b04e11ac478111add40d3
BLAKE2b-256 b045884b4fe5baaf45058ed35d0ffb628914e79850a5f89aed90fce902f0bff5

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.22.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.22.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for xtgeo-4.22.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 bc120ddaf7632eec8d6202a955719366e3048771e6a13e2144c09db08a9f6bc6
MD5 dbb0de53bd2c644326847f837363ac3e
BLAKE2b-256 d0510ee32c56890fc988b7a2bd88d1e689dced6f449dc8e81d41d2238a7df12f

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.22.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.22.0-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for xtgeo-4.22.0-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 863240d66cae6b4204d75c89eaf36424fe8b74aa3205cf39083b355199f2c288
MD5 d69c9ade5742f39e246a81aa19fcfb01
BLAKE2b-256 e6faa34bcbd7cc517effd091f403ae601e76475d0e2cc9f9f03a310734ce6d54

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.22.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.22.0-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for xtgeo-4.22.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8276b07417043839375e9c3b8bd84d3b9ff32b863030aaba4a27e1c56916696e
MD5 4da8a98f91007e8f3e545bb1897fb9bf
BLAKE2b-256 3c14244091eeb1497561776bbeb7c3868d2ed8c94cba23c82a5adf3199276d3b

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.22.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.22.0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: xtgeo-4.22.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for xtgeo-4.22.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 d1a400135f823b9024cbd696d45fc9d7b64fb3ba473b12984db6d2545673eb40
MD5 98509e2f62e9355f96b0ec07ad6bd671
BLAKE2b-256 23be720c65b77613611367a04d4bd1424e78706b91f42b2e5cd7984d70440d08

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.22.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.22.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for xtgeo-4.22.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 bc94db50c85d6f9387ae5b6182a1dc63eec6f4acb77a75601d1a6e193c9eb6ed
MD5 8f7347438437d20d9942d514b44721a5
BLAKE2b-256 b8f16e6a64fb6dcb0f767311b60c2f4e54622ebbe349f70b32863cf3d8e4db03

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.22.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.22.0-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for xtgeo-4.22.0-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 35cbf22621f8cfcf925e558d7dc357365c6778bc8298e0b9a88ab6056f12d07f
MD5 7b40cf483ab2d271b50ef30c1965977d
BLAKE2b-256 28fb8b80bf3be8338eea31daebb8f0fab1d38ad6cdb619051b37e29d4f7e1269

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.22.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.22.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for xtgeo-4.22.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cf001cd417716726b011d6d5efb3489b3d68f2d387050b658d8ac29b365f2b3f
MD5 1cdf90438411d69f25511a8d2fd2288a
BLAKE2b-256 3e9669b69bca56c0a9e1936736baa9915aca8eb03ae8e68c710f9a9d1c819cf2

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.22.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.22.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: xtgeo-4.22.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for xtgeo-4.22.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d60d53fe76b7568ca7673886febdc93862fbb161b862fac415517685a2f51067
MD5 c32563ae1437bdbaf6446a11431a51aa
BLAKE2b-256 f669aebd0b29f46786162795cbf5212271dbdc2d31763fe11a37313d78170df9

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.22.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.22.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for xtgeo-4.22.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 10edf347b4ba29ab9e8674413efcecd039c157361870c218bb0b25f3d9039ed4
MD5 8dd3c9e55031bbb6d50a7923317b8971
BLAKE2b-256 a3e4a1b8670a13364c987abb04a5d2a6a0b6e0139e5ba3b35503cb2bd5258b46

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.22.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.22.0-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for xtgeo-4.22.0-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 6b736ee9479b2530782a88710c6168a0cb252029972be3014d93a9cd9666f2a6
MD5 5fa01dc2da2912830621ab7db098e1b5
BLAKE2b-256 ebc5e9c556512d1083384e7bb32796bcc1705a2dc4d452ff1d28a0f51b2d91f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.22.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.22.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for xtgeo-4.22.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6a807a2824ce4452b9f5c2ca5352ec43ad66465085d0950d7c368d621f3da32d
MD5 2fe451b623a2aeb5775f4fe0570045c1
BLAKE2b-256 7651201d29769d9cdbd510c3aafbbe3b615fdf90077e4892d480b7f6818091c5

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.22.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.22.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: xtgeo-4.22.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for xtgeo-4.22.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2b97fa414535b6f69287f935bf556dddfd02e81961f10e6aafccc0f56d214cc2
MD5 e7ace79c371c2649a8e3d4725eaf9648
BLAKE2b-256 21c788bda866b0cf4962304de6967e05c3751291b762944cd0d94d4e82787da6

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.22.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.22.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for xtgeo-4.22.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 15f1dd1aca38e1728160224592e580e7845ecdb83b6bcb61e475d231ff4c9e89
MD5 d0736f475cd3d62f9ce44e7c22bc7ffd
BLAKE2b-256 fb4d45acc7e17a6e6b4c2d5a97711fa2b51ef12f72400890156c521e51f497c0

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.22.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.22.0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for xtgeo-4.22.0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 9259d771221f105363f2394848481db2f6ebe7a1c780d7c5aa249148ff7e18dc
MD5 39bc48a1ba8ec6bd24eff975c78a8979
BLAKE2b-256 14bbfd5b2928d0c271fce5be78d38febca3a4658cbc2d8ca5f722acaef2d4bdd

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.22.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.22.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for xtgeo-4.22.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c373f2349cb6126fda2e82f745d295a1ed88036b4580c6af2caeae34e9d6b533
MD5 c153197900b78fb7bbc5b3cf2af91010
BLAKE2b-256 852c38f7d553cf64053375123911c00b55bd18e7001d7e7ad158431ebc830ce0

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.22.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.

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