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

Uploaded CPython 3.14Windows x86-64

xtgeo-4.21.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.21.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.21.0-cp314-cp314-macosx_11_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

xtgeo-4.21.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.21.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.21.0-cp313-cp313-macosx_11_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

xtgeo-4.21.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.21.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.21.0-cp312-cp312-macosx_11_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

xtgeo-4.21.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.21.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.21.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.21.0-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: xtgeo-4.21.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.21.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 a9ef6a50a91e2b56a33f17cf08f0e3ec0ddbdb634d176c1e2d32deb759943c6e
MD5 26eb8bfacc7bfb94b229a6e3c97ef527
BLAKE2b-256 069f823c352baa236f7b48ec628d2139930423c12b611444b606b55cd4864d9d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.21.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 672e17b6ff2ce4f1e5078ed820962d98d0aa3c1ebccd2e04734ce5d29b840faa
MD5 cad0843e68e944753ba2588e0ef6b62e
BLAKE2b-256 b266529bd163007e7c21513d8c7e758958c53c8bc9b7f9b1932e78d63d9071c4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.21.0-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 46607f566034c468cb2375f67597b1e45d47f4b7dca6d73873b8de839e80c208
MD5 2e65ffb5f17bff970afeed3f3d0b5e63
BLAKE2b-256 e881cc8ed76d26aba7efd9796757135e6ae823630517052fffa290001ce48362

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.21.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0d034fabc267358af235a54959ebbea6da439da1f187b0f15b0afa1538e81270
MD5 b881dfd4de0997e786a59292b177e552
BLAKE2b-256 29c3ad67aef29e2d8495fdb313e1fb2cbc34f7bbed3809ecbda8b86eb0015693

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: xtgeo-4.21.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.21.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 4e8a829c3993aeac720ad580103b6b33a6e168ec5cf67b655af3841a235a7292
MD5 f9de7424d6a38a3f0ded3867c0ba3054
BLAKE2b-256 3534dbe7633d1746381c14d927b4391259c43c86ca9b1668fdfb0d5400716254

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.21.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 72f6fcedfc2e2e4e80e0f4c61b32c209c937ad0b1171ca8b5ed081d7a95b16f5
MD5 c4e934ad8ebf92252b5ae409ed68ef90
BLAKE2b-256 f5564dbed1ffbb412d7c9e39dcd9c81d079bc155955be9c28f264198055c8e29

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.21.0-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3781d41c784485adee32647fab4aa752e7071089bce6fbada29c42d062737587
MD5 6a36db5d5a81fd7640bd7a460e2760c8
BLAKE2b-256 a52ce9e660ed7b336d8773d53dc79f3475aa7288f40b4c7690bc17a53311fd85

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.21.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2293699535b31a9f20124047cc8f98b64fb2e917712b6500010213286f6a68c0
MD5 0743c8f7e661a7fd3763b7733280ff09
BLAKE2b-256 2d65fa66b5c58a6c7c79505852c96f7fc84a2e521b80ac7e9ab2bc23a7933966

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: xtgeo-4.21.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.21.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c6b884d68aab13faf89434d30225ecedc07804f2158cdb64a803a37ec9bd8b33
MD5 a01b49523c484dddba53892a2e193af3
BLAKE2b-256 2771e20f6b73d7850dd6fef0b2bc2ecddb44bcc24c12ae4ec45f598205364b07

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.21.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 734b54eb607f7778774da30b7e59dc8392eae066d6f0709f00229791dfe96c97
MD5 5ba91b8eab7857bd943d0568660a5e36
BLAKE2b-256 b1a529115c5da1b0ebfe53363e8b6b8fb68059c928714c43760a71bdcd399560

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.21.0-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 dd3fb9225426e1812d1870409e286fbec82c14154304c46c41dacca5de433111
MD5 9666e4c3394320eda49f060ad4a11870
BLAKE2b-256 fd68dc2f68014a50806b6b92362099ece9f9b8b1351b8e4075575df117d1f715

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.21.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c3f64e1f001bb3f38e031b6acd21275797a9a83c1c989c5ec2dad300408cb82d
MD5 e5c530e6b059769098f25ad099e4525e
BLAKE2b-256 ef8e3452aad53c861c515d94035473a542695fd2e135501e019d689966843a96

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: xtgeo-4.21.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.21.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7f5462e951329533cb59c6c80e8d5205b1f1a7fd2b155076bbbfa4ac10f0d225
MD5 80bccd19dd0589014740b04615824e3c
BLAKE2b-256 c6074cae84e715fadba496f13ed5e03816399531df9ffc56a98a85008490db97

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.21.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 71ffa764279b0224d95b8f4d4502e053940c738d406e82d86cc45c6e353e6cc3
MD5 f8dfd3f2b0b389efd8a29adf9064a115
BLAKE2b-256 f36052eb04891b28127c0564668db10a918b4e0b4160a96231e330f14932bd75

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.21.0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b7fa658a0f9885861f045ecc6709121d8e29548dabb85b3f497518474ba93b3e
MD5 87a582985edd47907bd367f51fef0564
BLAKE2b-256 6549133df31ae665ba908dafcb750ea74c1f7590dbd059d7bacb7c0cca6e25e3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.21.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d6b5bdd428e2587453d5f9f91698566cf81abdf1ac85fe47a70d8b4a0aecfcfe
MD5 6447e4801821fedd734185349651de64
BLAKE2b-256 0e3a99347b3d61b8c93291c01871e9375d028de311b4a2110f9bb9de2afe98c9

See more details on using hashes here.

Provenance

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