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

Uploaded CPython 3.14Windows x86-64

xtgeo-4.22.1-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.1-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.1-cp314-cp314-macosx_11_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

xtgeo-4.22.1-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.1-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.1-cp313-cp313-macosx_11_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

xtgeo-4.22.1-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.1-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.1-cp312-cp312-macosx_11_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

xtgeo-4.22.1-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.1-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.1-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.1-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: xtgeo-4.22.1-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.1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 c3c57e1cd8ac4ecdaa10f2faead28cb203ba9938886967bc60948a78525b1dc1
MD5 d880e7383fe585cbba305b2c892c628e
BLAKE2b-256 ee989dc956e0196b86669f4e46de7e3669e2014a0c3f018217cda94c47e25a57

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.22.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 05bea45421e155a3e11dd0af2cc22d42d5f1c22719634b2701ccdbd2a065b51b
MD5 6257d99fecbb4e57819a9dcce3299ea4
BLAKE2b-256 1a5c19dbd7469415b07f2d73772904a5c29b31e9f1629e88ad47a988d34cd805

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.22.1-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2276db908e92c65171d481f9d349b651eb160583d3cefb7579e3aba5b57facf6
MD5 4525c2422af08fcd0a63ebbe47d6c512
BLAKE2b-256 f343ef2e18e81903e4e066031f2d2ac7784febd8918488da97ab38ae448f3205

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.22.1-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cd3e988757f0439e87f3c326074483d1ebf8cb48fa473646eb6311accb83e960
MD5 5afb3789f17cbd7361fecb7801ffbfac
BLAKE2b-256 76815d36169cf9f4417e038558ebacd0b0c81caa42c1018d0f6163e20b3cd01a

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: xtgeo-4.22.1-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.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 2694439b0956e0d59b85768a6610cda8798986cdcd312265bee31b588f650620
MD5 45398bb41b6e9cd8e9faf58ddb29282c
BLAKE2b-256 41b25447e7fd590c8b491f1ee0e25469cb442af49821bfa6d306228a4fb80043

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.22.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 bff8fca661e3850cfb176c01e982ac14260e121dc37f9f21152800c633bb942d
MD5 7a1c2803fd3b4c81f2e3b5d9942df4e9
BLAKE2b-256 9366bae5b4be7ea129e40498cda734e4be476dfcf1171573693ae10c85c7a83b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.22.1-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 0f509bddfda74c45e009f71fa0245e6b8a573eaaba978f99af6806ab2c3a6e93
MD5 0c5aef727b4fc1fd261eae25ef2cb649
BLAKE2b-256 e311aa50425ebe7575da3c85a7d986e42e09bb18dfe598ca5b3cde352f086eca

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.22.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2f6d11180d09b552deecafbd0c9012eecf0b4474bb8fe4b9d3da4084fcf5567e
MD5 ba757f69c06a8a8c3ba3776cab35c1c3
BLAKE2b-256 e2de0d7cd9d5fd6a15a2c022df803fcf27d73a7d0b77b6d2287cf57f076bce39

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: xtgeo-4.22.1-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.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 51a243c26f9f5e17b2b8b38ecf7c28227ff176045d8dc65ef88cb27997561f8a
MD5 483664d0e5eecdf5bc4c90907f6fdbe0
BLAKE2b-256 9f37eb13d43006a8494e7690ba07219a62d2435e93d28818ce2853cb3819425e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.22.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 714bdeb997a60f44003fd6179269e970418afe08b4edbd41c33c00fd98662993
MD5 443b29360e1ca75f725b7df6bc6f99c8
BLAKE2b-256 af68d05d7647de0df42d5274aa6485bff2c68354ddb3264678fef01de623442b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.22.1-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 194bf088d61817f395ce85fef69e0068a59c20d2fd32a411a8a7ff3aae22418e
MD5 8490e436104bd99dd99791d51ef9a8b9
BLAKE2b-256 63dbafb40da3fdaf4d578d5e4a8574e39abe9d8358a69ee6eb03e8e32e7a509a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.22.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 edd7e4c6f5c550035157a9942be8d64cfe7a43f2b4541a0540ac0de154032bf5
MD5 f3bcb528bac0ac4bce1744a648b00524
BLAKE2b-256 57e7aa588caeea95c50d224e8bd4183d820bde17b7142969e4ee5a6a2efbd079

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: xtgeo-4.22.1-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.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a0c00ae537d6c4777d3bf0a66d05f4602f33737576852506acc0a687deeffb69
MD5 20e2635f627d9dcd0504346704a042e9
BLAKE2b-256 7f18e25b2598c9dfd45f794400e9dc6f3f6cd9dc5d340d07528bd12d887b3760

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.22.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d887ee712efd9473c7bed0bbb0c2ed564e64830d8b3be3b3a0766491ada44669
MD5 ea57a2a7d0a02d83dfc2fe1a5748373e
BLAKE2b-256 e3d0fe296c93b29c874687981492e407e8f8681ff705605967cc98d4567fbe6e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.22.1-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 fcdac746af2dad7603bbd6eddeb1b53e5aeebb6ad37a3070692d5dd3aa552fdb
MD5 4cf7da9449c895ef725837af01403cda
BLAKE2b-256 9b4ef12197c323036e8ff5694f9886a8ac5e2a2c775a7b693af42c172a70dd25

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.22.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ec322efd5af786a26b21cc393a7562e5e55fc2e65c02bc2ec71278688b17820f
MD5 761ae075bdc1932a6a51922affef8a42
BLAKE2b-256 8b318df12e8758d78a593baa32fc63040688e9627d39ab72533a0de373926548

See more details on using hashes here.

Provenance

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