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

Uploaded CPython 3.14Windows x86-64

xtgeo-4.24.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.24.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.24.1-cp314-cp314-macosx_11_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

xtgeo-4.24.1-cp313-cp313-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.13Windows x86-64

xtgeo-4.24.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.24.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.24.1-cp313-cp313-macosx_11_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

xtgeo-4.24.1-cp312-cp312-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.12Windows x86-64

xtgeo-4.24.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.24.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.24.1-cp312-cp312-macosx_11_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

xtgeo-4.24.1-cp311-cp311-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.11Windows x86-64

xtgeo-4.24.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.24.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.24.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.24.1-cp314-cp314-win_amd64.whl.

File metadata

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

File hashes

Hashes for xtgeo-4.24.1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 35bcbf4d53d5ff00281b27a83197b9542bba77a819130f5930e9717a709662bc
MD5 f1d862a144fcb70b99fb65dc950eb644
BLAKE2b-256 d64bfaf390ba94509bbd5e0312bd2149e7d107534561d8405df73c38ef272b83

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.24.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4aacefa900cfc0b0e9888878e550ced7f5d98f823398dfee936ad7d71c76ccb5
MD5 2b488de154d83942348a48714fa23f78
BLAKE2b-256 150bbfa7253c4312d1239b406c63a67c52861c1577ce54ce7c5b930a2ce5070e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.24.1-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 0e4ada307e7b8ad38611c50a26179786d25ff7879f87ce3eeac050ab716a0307
MD5 6f0e4c90da48ae4f30e18fe35e12d14b
BLAKE2b-256 e84ff1efff690eebab2bbda95dd66675d5d2280251b4bf684fee272e7f182568

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.24.1-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cfb5637f159dc230ff74fac5e459655b4b45fcc1f1960486d7f142d211ce0712
MD5 3b37a9f4f3e8d4d656b195903a2a2a40
BLAKE2b-256 f9808adae8e47793eaa8ddf1c0d3c92b6e1ef80c7c3c39a47f79f7231288f89f

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for xtgeo-4.24.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 db8934c0bf7d8e7ed4d822f4f80eb23f72a3c28241b5a378759de6b9e49e5ea8
MD5 1d9f0c9d8d891b8937a9e763cfc8730e
BLAKE2b-256 766807f67bf434830218b4dce0a81af62afc48c213863039298c36198e6b0306

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.24.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 847f7d55d1a06b719ac26bbc44df055b5c1f9b7f08a3710dd88ed3173d165b88
MD5 01743c05c46dbd0b51138d2aa51fc9ce
BLAKE2b-256 c4b73afe33aea5de1230a427e38747ded90ab18014debff41040a82ede5f3765

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.24.1-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 0dfdb791eba915801457df13370f475254c8a56866b074fa817a4ef3094d01b7
MD5 5872acf5c7a957d9b859a7f3b3ae0e92
BLAKE2b-256 bba0d992e4301c5fd5ee18b049d80c7312e2f53a530fc8eec8cbe835a1e1a753

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.24.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ea7068709e38cce8de2bd67571b0f8596700e99ba54a189a605d82ec63833cd3
MD5 009e8e7cb510d57a0eaf19dfb125d631
BLAKE2b-256 a28634c676802b77fa2699361413f4b6b14a278febb3875897d122d2f64ae196

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for xtgeo-4.24.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3847d54e6a44705b337abdbf23bc006329420880bb18edabd9ab2ff71c803141
MD5 3f127fb8f960f342fcdfdf6a755e51e6
BLAKE2b-256 71f0ab0f2cb83208b70044950db0eb98d53fefd19fbb8d15fdd579395cd88823

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.24.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1ab1b70278726f81c358388d5aeb1c2138a932e2940baf8b491b498181d36b03
MD5 a52c9b20eb8c443cb75e56660fd6fdf2
BLAKE2b-256 e40a6be5695451a49756ee790c477fabb00d94cb8fb9db327ad4636f804acbc0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.24.1-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c7dee74ec60787b87cf908678e4c6c6b943011b735c60bd9a4cf9004f1b1d1d2
MD5 0c5d2055cac851faecdaa613e52bd188
BLAKE2b-256 47cda4ba2967dfd8fcc3d7d631ecaf6b92a7f377012f502bcb2eebb691f72fae

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.24.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f3e4de8e08ae803d4c5c4148d7fd132d07715f36c3f393ef5c90264fa0b723cb
MD5 101064d3acb0459aeacbb5b5354a7498
BLAKE2b-256 f687f37ba70c18e0a676fbcde5d13ffba707523d0ad00b61a716f78b1d709e0c

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for xtgeo-4.24.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f183e8d0fdb06239efb47dac1dd9196e36490813cc899ee904581bfff7419d42
MD5 6a84e59b86a379561f86384178c93c70
BLAKE2b-256 d0ead7a65f73cf0a635b5418dd585c27529564744a1317101726dc49523f18ab

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.24.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 17e9438fddb42c86384404fdf1623974a6786d720bee318e7a51891a22348460
MD5 4a714ad995b40281f30355412d2d7119
BLAKE2b-256 8f423b674e431df5afd4db34d750dc8610dcf59f0e83e021e3cba6dff984b232

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.24.1-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 83e12bf07150b1a6aafb6ffd6ada1feb97ad456c77efa2bd11cd84b7e2a1a017
MD5 05992c370622902f05a1a2400d565ac8
BLAKE2b-256 8202df6494c93200705d3fac82976d82533c7610ed47424eadad97ea400ca1b9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.24.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3c948ff2e4c1dd8dbf8d8d7c70eb1434160dd3fcefe72bc5e2978abed3c90dac
MD5 1db6c8728a888651f7f79bd892fd055e
BLAKE2b-256 aa9b21da183965b9f8f9874c6f1c8312ede016068c5d07c84216e0732d501a0b

See more details on using hashes here.

Provenance

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