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

Uploaded CPython 3.14Windows x86-64

xtgeo-4.23.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.23.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.23.0-cp314-cp314-macosx_11_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

xtgeo-4.23.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.23.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.23.0-cp313-cp313-macosx_11_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

xtgeo-4.23.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.23.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.23.0-cp312-cp312-macosx_11_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

xtgeo-4.23.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.23.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.23.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.23.0-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: xtgeo-4.23.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.23.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 8acce4aa67a0b894f1a0cb654e77cc066999d3b6ebe5e22b7781effa8caad0c2
MD5 8d1676d267ee7e738e7bd4df47a56a03
BLAKE2b-256 015b437eed17bc40e5d4c205abd7be1cf0d93de04ce12bcfce0fbfa2aeaf4db2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.23.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 acf518c4ea9da189a7ad735f39c0de36a9840145f471c20c86ab6df655338068
MD5 d415dcac87beb3bf8614af2830627675
BLAKE2b-256 55a1e0be83d2e43bbc1e6ab26ac55dab5abdece1e22ce72bf51f39b4f8d4181c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.23.0-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 21496ab22dff7b70f2e671502bf075c5a909e1db27a38f219156bdc4d3abc706
MD5 4d1e1fceb4e004e9a02c76641447a837
BLAKE2b-256 34fb33b2623c75ba65f383bfe0cf2bd2d0d590688a2d351b987abd0cd0c8c55c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.23.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ca00635836c733bf1e61370ff2d9e1f66ea0af242aea2fd55a938d168290c7b8
MD5 02b2bc555c5c081d639565a952e8748d
BLAKE2b-256 af440be7ea8f486e802e8dd5b853dbbb6d91ab0a2512f7a474018bd85ebb2d5a

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: xtgeo-4.23.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.23.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 10b0104f84e6d92882495dd3548915f35fda2026dbabe2161821ef05c2d401cc
MD5 e37528767f7cd85a80a143149ab86cdf
BLAKE2b-256 8a4c96104ba501abc864f4cfc09ec5f8ae4840e46c6cef5b4c8443133eb8205a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.23.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ef17761da21d5388f5c483cc2e52bcd67e8805289d47e97acdb8fda3fe58806d
MD5 06a3300ef8beb89f9ab396409e2194a5
BLAKE2b-256 199b64b827f4ccd0f295b28b03a19fdff71dafa487df7b592f8e41c5f4f82128

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.23.0-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 0c973e69c27b8b4a02c3b8e81ac97ddc7ec057d48641d8d4f07a91e87604ee0f
MD5 9181426b70b5f0ea856678fe3c99f2aa
BLAKE2b-256 8f5818428344ea14925ba469d1666d2f4e07a7ffdcb63259d6ff33bae145ce0c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.23.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1ada9c92ba73564bc51aef635d8115c5892861dc92ca53da59a2d91edb91a605
MD5 428355712f4058efa7a4a3ba48a98fa2
BLAKE2b-256 0433271844bc05d3d8b5a7c816e685f36a4fff2a02090715be1a6f84fa79693a

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: xtgeo-4.23.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.23.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1c6db32cca2da985458801c2f275d10f80e911aba42b50989a52a48b31c797c1
MD5 f9d357492e65970d66c7b99d05a3e658
BLAKE2b-256 2c46a75975331a03fce7c8e402e53f7756873356843bc5390b02821b4df2beb0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.23.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 11edef34a3b8eb0905523ff77b15dbb56008101e91ced31d5c99b968b52f79dc
MD5 ab7d27ddb6ec91b411445531514049c8
BLAKE2b-256 9d1de9f2c61d5db21e8aca06000d428f2831141c42490bd1381bebafea5c9eb3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.23.0-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e6729173e7837d0039c1d62c81ade8248286d4b299a2f60df8c35e06072f4a03
MD5 1fdb2b5268cf61e0ff5e8ed3d7ef3625
BLAKE2b-256 0c9a0c610d36c9f22c3975729cb09d8cb6dbbf6cfb88056cbebadae2878640f5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.23.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ae7b2487d1d47144a7c7ad06baba46d3605eed511f9e06c0d23943bfd13121e8
MD5 aa2cc8f63df8a7a16688ad51c29d4a78
BLAKE2b-256 00f502d53b153f9c1c0ff65a78a39f5cd4efd072c802cf6a22b3e9e3da679daf

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: xtgeo-4.23.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.23.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7552a222cba34a6036039ce154ac8006a595cc1b1f908c6983e38fbb74f98a19
MD5 7e2882112808e5da3e4fe21d9ff14d1b
BLAKE2b-256 200d31562825c1cb597c1404a3bf9efac0c72d0bc6eb02dcbc6538edd7c19915

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.23.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 55523f51def89ee5c98b0d9a76b2591a9b3ffd15c7d0e790e37a76c48154d128
MD5 e830c7d844ca671d23a9ed4ca98adbea
BLAKE2b-256 ccbda1f093ad7ce407dfab109bbd9e152cad58f8a119f9d97d7c58fa1991f872

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.23.0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b5fce122b2b5f2e5197bbb0758000e77b9eca2f0390046f33377310ce4da8970
MD5 c0591fc6fd9b32627d6ae1e2edd407ad
BLAKE2b-256 e475da8f50361a484b252034d545605d722e3be36a783516a3381bb97719da83

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.23.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a7357d65bb5c0200b03e8f2d2e829c948293716ababa76500ff54d44f7cc9562
MD5 2a95ef6a5bf508eb06a39c121a5a55f9
BLAKE2b-256 8cdaa4b1a837be21ad61665f169c1fcd7dd47d18bde89ff93eb602ce119d38ce

See more details on using hashes here.

Provenance

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