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

Uploaded CPython 3.14Windows x86-64

xtgeo-4.18.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (3.2 MB view details)

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

xtgeo-4.18.0-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (3.1 MB view details)

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

xtgeo-4.18.0-cp314-cp314-macosx_11_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

xtgeo-4.18.0-cp313-cp313-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.13Windows x86-64

xtgeo-4.18.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (3.2 MB view details)

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

xtgeo-4.18.0-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (3.1 MB view details)

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

xtgeo-4.18.0-cp313-cp313-macosx_11_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

xtgeo-4.18.0-cp312-cp312-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.12Windows x86-64

xtgeo-4.18.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (3.2 MB view details)

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

xtgeo-4.18.0-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (3.1 MB view details)

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

xtgeo-4.18.0-cp312-cp312-macosx_11_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

xtgeo-4.18.0-cp311-cp311-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.11Windows x86-64

xtgeo-4.18.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (3.2 MB view details)

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

xtgeo-4.18.0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (3.1 MB view details)

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

xtgeo-4.18.0-cp311-cp311-macosx_11_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

File details

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

File metadata

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

File hashes

Hashes for xtgeo-4.18.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 50c5807cfc8d46856e45c4682274a1bfb60ec74ea2bcb23f0e2aae7f9ada2922
MD5 fc35127ec118e71060fa8c8f646a3538
BLAKE2b-256 3631b32ea08bbb34b2f9514a5bd82480594ddbd5ae75e20adc3586aee3f798c1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.18.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 bb4a0cf13a1c6574eda41829348dac315b8a392ff752c1a2a697ed7c66d77376
MD5 ef23062f865abe502e99b8b63ac22e82
BLAKE2b-256 a79bd5717d9a38662417c800dbe8907f67387660a1e0718b89e3a1b552ac076e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.18.0-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 58332d0180940a768aad05a3f51e45b5cd093bd8c906fe564147bf6a55a423af
MD5 a0ce68f34263410112f930f904b1a3fc
BLAKE2b-256 81065c67a272160b9ff89459d5b3a108265d36637bcad970bd43e7110118fb6d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.18.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8fc4a142a6fd4d2569c670f18854d7d2076ec177c6ea07c6756e37ee4a5fd888
MD5 e9f4d7e2d0522390e72eb37945cb8777
BLAKE2b-256 f4b5f471a1e79e42c31e08397a87ac63379b23edfa72fd7eb9e0279aa4efcd04

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for xtgeo-4.18.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 d5e4d62fad2822280d4ba2ae567764326515128db2e95e35fd568e5c340cb150
MD5 47217671febedf45b086d52e76f85e70
BLAKE2b-256 f40d285af74d714008ee71ef07c000f84a8dfa9b301ec03b65e0307154191d66

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.18.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0e27623769f65c5c5ecbe78b04f809d83bf59608f7a339e1c15374f26df7b77b
MD5 e09d174665749ec0c2179585a82a99f1
BLAKE2b-256 5e2ed44c95e312d326d65d5057c15386f5d36d0bb8ad7cb35e824ff461c194bf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.18.0-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 556eb67c0471a469b6438fe240b2cd691aeb003c8d9b663fb2a49c6fc005d9c1
MD5 072b57f0e1b9cf234cccee2164f88f39
BLAKE2b-256 a4569fb6ea306d173bae1afecfbb4276eaf762e00b7c0fdd1db24a2214af0375

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.18.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 30c727ca00c3ddb87c920fd5fa8eed8130c1b04fa706a32fbe0ebd0f5771e2a8
MD5 d13a84d93f13d36471227afd76066a40
BLAKE2b-256 daf6e23d6a000c2d192c38196c60ebb45f5c665a5869475e9da790dd7c31fb41

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for xtgeo-4.18.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4927c44b74513ccf47c1ca529d8153af870126f864840fa088f6b453c7747f1e
MD5 dab87573d9f932b6aa75558f212e436f
BLAKE2b-256 01ee3e490047ff145ccce0809e4a7b315eea14c5d8028f9e16dc705beb8dab23

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.18.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3a31484f4cc197e05c2e8451a6a3d747de6c1d27f0b87e5768fdd27c74da3680
MD5 1b9ee52e96c2aa570919af9da9d0d818
BLAKE2b-256 518930537d2fee2477efc0ad9544f8217a61a51eb17b209526680447511cd8fa

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.18.0-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e3ce18eab96643e957383037e58577cb6818da3eba8a7c1ed62a099f74c7a47a
MD5 5929db9ef02837b9a0c126705542edca
BLAKE2b-256 aded68b0003970ad76fe941dfb37295292556d04958ed1cb092322012fb9ad2e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.18.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9a29c141ff485d5f867b05be6da4b6dd06e98ea65c274dc622625428884e67f0
MD5 e127d2ca9e38b9a4f4fc64ad3e1abfc7
BLAKE2b-256 fe04472d3efc457f3b3c1bfdb1f7c1c35d328840047b1cc3a379729e2f00ef1f

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for xtgeo-4.18.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 cc2fe73fb4e61029cc22acc93d6aa600342d061b8995e33029a0b0131d2affee
MD5 840cfb7760653cc757a21ce91c801bed
BLAKE2b-256 61934b13bda911b28adda9ca80d54060f26fe5912f1189d35042cd7a844126a5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.18.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 838a2807afec89a6deacc99af9942fb6c217b5395b5f034d0fcd546a83c8cf5f
MD5 c1d263815cd12bc53b2e5d667b2449d3
BLAKE2b-256 6dceca823a17e8a8cd3cf96b0d4c6360aaa7d7816e942bff1e8a81163e121e15

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.18.0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 20a63cb608683af462bac8a690fde4109b0f2ff6ae7c8e888314333ccdab0762
MD5 8ef5389997d2475b6ec95ff378f694d8
BLAKE2b-256 2fa870267cac641e7353f68c9e7ef11f1959119141bd023bd1f1c93b0c17c1d4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.18.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 351a6e2059c42af7175ae1e7367f6c45988fb73fe06b818f6ca09fd787d978f1
MD5 4335ff0fb18c71ae869d2c6d23a7726e
BLAKE2b-256 fe498f758ef530e02647f4e8b3ed42e1a6ea3a7d27e7be108b1b50ceebd38d30

See more details on using hashes here.

Provenance

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