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.10+ 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.17.0-cp313-cp313-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.13Windows x86-64

xtgeo-4.17.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.17.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.17.0-cp313-cp313-macosx_11_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

xtgeo-4.17.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.17.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.17.0-cp312-cp312-macosx_11_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

xtgeo-4.17.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.17.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.17.0-cp311-cp311-macosx_11_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

xtgeo-4.17.0-cp310-cp310-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.10Windows x86-64

xtgeo-4.17.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (3.2 MB view details)

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

xtgeo-4.17.0-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (3.1 MB view details)

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

xtgeo-4.17.0-cp310-cp310-macosx_11_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file xtgeo-4.17.0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: xtgeo-4.17.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.17.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 12466200a1ff529ea25f766ca84a5911005ecf5511a401cc772795ac753eb1de
MD5 8afb2d3a62cdb263892a9cfa1111d4b5
BLAKE2b-256 afc637fb10e962043888f719a75818b970b7a0e07d7ff22cf24f43003485c544

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.17.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 269421927ed72035bf4e17a152c7245aa8173c4aaa0523f41ca1ca4be6bb77f5
MD5 199c6af7fb8a5ff6af456162425e7a4e
BLAKE2b-256 f4d5ba0a8c5275322b72cff4e7b3db806574825c447f4f1a83a8e9803f8cc13f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.17.0-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 30c0872c177f1b0bd084d5d3f0a5dd9669dff4f6ab08dd46f94270f214b608db
MD5 84c3ce11c9fda1f4df60112ce20a8f13
BLAKE2b-256 982872dc5e08d39fdfdd911e837f6908ae7a0c617d551f4a01bf02987803d49a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.17.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fd39301b00c013d0629ef13c972d4180f01dd406726e78178fda46645344b924
MD5 a0e8cd0aa0da509b52170ce7a8572452
BLAKE2b-256 8813f86f07bd7dd6ecf3453cf6cef4799e34221111e0388c3cbb67df8af10006

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: xtgeo-4.17.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.17.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6de13b778b99565ce628a1277fd035e6e828ba2d334bcff30a2c7f1f1c558534
MD5 fccd3167a066e120787afa7b8de26bd0
BLAKE2b-256 dd80bd8c4fb870d0983cc95c9dcacc2cd3d1f2ad9878be7d2ff652668df509ab

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.17.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 91b2a726b72680d6a4fb3db11c9f80465cb7c9856621c8eefd02b1e37e44a9a3
MD5 dc5c012fa0c03c2eb5a0140d52ad43b8
BLAKE2b-256 9c85b2940b92801c223e839e605e8b2a32baa89d285042d70d1c03d445f2f2fb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.17.0-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f34a20d73e1bd36047171d6a212d3e49e4b603976025adde9426330de99c5584
MD5 e39c4596ea5400ba640ebc2ff76dd3f5
BLAKE2b-256 f72bf5c71a0c3230ba8c3a26ae2b25dc0ed6114f79a640899abda3cb06233d19

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.17.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2557d4b156dd3dfa05e64dc56c7c10dfe4af13492ef814d59bb1ffcba8ed1add
MD5 2ff3fff78ef04923e89b5a771ef6af82
BLAKE2b-256 395a1ebe690cea0c94b880037018eaad736544dc64b1b0c5e974cbc2917d8e85

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: xtgeo-4.17.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.17.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 fc54bde4e0b51f2dd41aed1bf4e2f5cab5ccc11d7ee81a4558c1d4b4aa0b3225
MD5 ec695deb65f2e09945d10df0fd4a6a05
BLAKE2b-256 6d0009446c4dfc792983373f8c85c955f8a388222cdbec3f3c72130f95434b17

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.17.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 227078fab84dcf2cba593c4ee74f0262d3d65e083f6adb79101713284b5fc5d5
MD5 f1be97bd6c8a9be7e9ebe38f9c36dfaa
BLAKE2b-256 fd63bed09a3c761f4727b0bac33eeba49fbe851ab2eeb99f72a24508b892af54

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.17.0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3eb58505902e14e65944047c1ffa10a07b1a35fe1b61472341407a25d419d61b
MD5 845b23bc7d273b9c44c0fa970696b5bd
BLAKE2b-256 e8a9c07deb1b88eb31d269ddfe84051924df2d2c38fd1bf32198fbda7ef58edf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.17.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 469931d506b237eb5223879c5e3d7a20ea578c4ce88535710b3a93fd1b9997f7
MD5 3abf3917757b87048c344426cca0faec
BLAKE2b-256 c636e29338cbdbed49e2d1fa9ce4c025d878b98034608ecb68d04d7a6659b088

See more details on using hashes here.

Provenance

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

File details

Details for the file xtgeo-4.17.0-cp310-cp310-win_amd64.whl.

File metadata

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

File hashes

Hashes for xtgeo-4.17.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 cbf0a4bc3d232a7fafa46e3bb83dcac5c37dd2b898d1be7e337a68fd0636da59
MD5 d54888297471c84de3a76ea3485dbca5
BLAKE2b-256 03c199317240a2bd0fb81fcf77837fba5e394737120da56a982142467b62989a

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.17.0-cp310-cp310-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.17.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for xtgeo-4.17.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 89ef6c3e168bb7fc23d3f6131f97318781133d44b2f01bb4c4b3f54f053427df
MD5 f078f65f01f96f8bb3ede817603f4ac8
BLAKE2b-256 74f978acd7638700c682cd6616e3cffca6b64633521601dab2f7b34e1384376c

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.17.0-cp310-cp310-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.17.0-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for xtgeo-4.17.0-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d0961b1a1d6f90355ca3e9934bb471ad4a8be0e2e249787935a9a00cd127a682
MD5 a12c2891225e169a1b03208062559e9b
BLAKE2b-256 96c3ada3bfc0c5cf5258a742eab8998ba718562420954571b31338ff49c648fe

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.17.0-cp310-cp310-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.17.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for xtgeo-4.17.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 782204baa8f785a379fd3bba2782e1f151760979ad09fcf4f67dede86888630a
MD5 28c245538bcf97d47ff51158fc9939f0
BLAKE2b-256 c3b1720b9f27a1955a9656b48e7ccd8d856d32df3cf15c819e45822af849000a

See more details on using hashes here.

Provenance

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