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

Uploaded CPython 3.14Windows x86-64

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

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

xtgeo-4.22.2-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.2-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.2-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.2-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: xtgeo-4.22.2-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.2-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 563a25b03e8f2c56a11e96ed6512b6b91bb4206c81aae978be8e8c90c043fd3f
MD5 e63c32ff11b35cab204b7f510ca69075
BLAKE2b-256 6bfdd7285169614c402c432e8ef8998c680527eb35382b4af9f429240872c1bd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.22.2-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1954385e9ecffc3f2276eb57ca9d58b4d0e26ceee1434901fd19645d61c443c5
MD5 ad51d3a9345b8933af00fcf94f810ad5
BLAKE2b-256 aa8499671b0244ce5b630be9f58fc4a8887cf3eeb877845147f3fc72b7ce654f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.22.2-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c7b20eb17a36ef773854af9ef7d219122f9543a9c333d51ef87223342d19595d
MD5 56a5a04e5e91d2ae9db5bf668ac477ad
BLAKE2b-256 b077bd4354735076a2ad9574d170cf1872724e2157a6cb939e10da44f00e21b8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.22.2-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 169956e6339c6d1be9d11c2dc87120881be36e19e419a5e3e1caf5ed0e280777
MD5 0b0593f7f5afdd7f149ede7cde715e48
BLAKE2b-256 0764215d53d15fc0b32ecdb5fbf2d798fb7698e6f68262476334fa896e7065ef

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: xtgeo-4.22.2-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.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 de32a7994258248a891c3a0e2b3bb07c139715e760820a9d03e01ce0a4b92764
MD5 4ee3fe62c2a52b83edf5bdd01270d1cf
BLAKE2b-256 b988c9056c709ed12fab05d7eb319538ce31d9ee2b50e0f9705355920e980b41

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.22.2-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5c8ffe043158418585aa29abf2e0c8c615d5bc9c0985791c160a1924085ed906
MD5 cdbbb4f9d0f852950b4d9017795f9a37
BLAKE2b-256 83dd7b40727abd78ed0ddb3430af627a4487b173e2f6f8b5dd770ab68ae14c8d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.22.2-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 77b172e819bbef52c622839c49c5124ffe1fb29c5baee6620d3e4bb76df67349
MD5 6b3e6522ee56fb6b93d890cef131bb05
BLAKE2b-256 bbea940c1ba99aac02a65e7e1b9ac78027464d0d40186208424327a317f041ef

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.22.2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 871587d29f211b3b0d1dd82e0bdfd5ddf70c9a51b5c5654e8097d764b65d1c9e
MD5 236333119f2cf482b7c620b0b4c7c9f8
BLAKE2b-256 fde7bbcf03e3b5d5857177033c4e36d4311c34df5eadc2c08e0418ad47356043

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: xtgeo-4.22.2-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.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 169e6ff8f07ae2c9d22cd1ae3492781c1fd677021d4d08933d92f55ea1d291b9
MD5 429247bbf6d3bcfe6c79cac5a9bd1502
BLAKE2b-256 77431a7965d5989afa5ca25b1a3b86d70dffbce763f264c07084994350a0fef1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.22.2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ae77d423787bf0f2a3f2ab938c081e9b92d9713d70696a33285804c05cab8f40
MD5 132b077c81d7960224bdd53c914a62c5
BLAKE2b-256 cf0e910b0dc739d6fde0ca36763189cd8d92e018283e22bb31325db555510785

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.22.2-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 5649dbcbec213e16f586eadf9a8ef6ab25a8923d84fe6000f14b70fb0a3733ba
MD5 0f079022222452de60164a104e2f49da
BLAKE2b-256 ca640d566587157594c645dcb18d790bfd4943b4b94410575c4c975fc2bc31b3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.22.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3ac3192f0de29a8c18e17838b4c74dab71cbcd474844c04fc05eeaab479f5e43
MD5 6ea3d29e8fd7a542a8c31889dabcf413
BLAKE2b-256 801ead174c89ab778c8ab4408ac4d88aa1f195191a25dd24eac30dc90af34ace

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: xtgeo-4.22.2-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.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 38de32c9847e190692f530bb553c65c53764eb31d0414a12cf10a04fef956cf7
MD5 447edfabf050a8a3e163ddbbeecccf82
BLAKE2b-256 e2bd9be6d6cde4a568266148775ff94bee30ad44e40d759945c6eca239dbacc8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.22.2-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 87c8cdb5bddeb819cc7471fbe7cd84264bae3bca1b45e07f3b849c50814bc95c
MD5 47b41321bd50c3df2c4a57088b4e96f0
BLAKE2b-256 0c0b8a5d8dcca9682fc8b84d155557438bd6e21f526c3a69e3ce01b300cdf9cc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.22.2-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 6a8907040760fbf4f074f14a3bfcb227e58d83a4da482857b9be1416a3f9ad7a
MD5 3d3e1dec2d667c63c24662f9794d943c
BLAKE2b-256 35772462db3fb3fa3ddb84b8312a99ed4bc36ff015f44c3076fab1534df38632

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.22.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4ccc6d3f4782048026ec8872b719f9e7d0f621342add740aebbf9702f029108f
MD5 fa7ecabd36945052a423506197bf3576
BLAKE2b-256 d1f594454b08181955b589a08701775065442d777f7982f5dc34ede373984249

See more details on using hashes here.

Provenance

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