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

Uploaded CPython 3.14Windows x86-64

xtgeo-4.20.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.20.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.20.0-cp314-cp314-macosx_11_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

xtgeo-4.20.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.20.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.20.0-cp313-cp313-macosx_11_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

xtgeo-4.20.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.20.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.20.0-cp312-cp312-macosx_11_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

xtgeo-4.20.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.20.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.20.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.20.0-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: xtgeo-4.20.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.20.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 b1159baa0380dee9a21011d3b11aa68787460ce36139b308dfdeb2e20ce8c828
MD5 63b94ddd43b60fd3c0a0b5113579325f
BLAKE2b-256 c04e9ba24a3383a0730f2efb4317e660d88c32c0847b38688caca4d3679eb5b8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.20.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9a85aeace5ddd098745bfcb883ebabff6a14a17820b6378e4cc6dee145a9f9af
MD5 22e871a37f71f1f2ce2952edf3857acf
BLAKE2b-256 77163cc002417aee484b75da3b46181f99160602093253ee86d7fb8e65512c44

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.20.0-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3a06b90fde4e79064f70dd348273e07b3f2c57109d91787c35fad5fe1e6cd898
MD5 a7367e67c0dbee018973f0f893aea82a
BLAKE2b-256 3d2c84e3da00dccdfad565f1a112fd66ced71c7357f474ad931fd3148ab8c98b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.20.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1c2cf0b5744a43ee276e7b92cfa6bb3fb8d83c2b18dc1c4e799c505ea23699e3
MD5 ae02bd2a80238468f69ad492d44d8f69
BLAKE2b-256 84166d7f25a79470991c073c676bebffbd90c218a891ce05b4ed1276d2750aaa

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: xtgeo-4.20.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.20.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 f7d097259ea2fe95d972d579069f163bba8160836cacbef1202bfe8f87311e07
MD5 2b9e1659c15d9b66471d4acbd0c62066
BLAKE2b-256 4df6ab8feb9e7dedd0dc75369612c19897c0aab69e44727ab6ab6bbcfff007e3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.20.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 56d01c7fbac22e5638d625130aad96bbb3dc00f3a5760ae522095db450bafbd5
MD5 969eb972216aed2dd4bba5715babc341
BLAKE2b-256 c547830cacedb50db4437f5bb932c34b1273274812ea50a1b723c7f4b53dafdb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.20.0-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 8fb9403f7832cea8a0174a7eac7071eb4c8e4d5b4395dc724e37ea0e4fe83710
MD5 9e3d49a69c940429df28ce82cc611960
BLAKE2b-256 7d18d31b9b733e4995e0ffc882cc034ae8a222eb86150066be9c48f7f161a5fc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.20.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 36ab89ab3329b34d4416c2b3a93c520e5b4a9b440ee3362917fa5fec3786800f
MD5 7c69c77e0c3132cb4c54f39d2f986e53
BLAKE2b-256 fcf324a3d285669cf615b3760337fe0e78c86186ea777c86a22b3738b90044b2

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: xtgeo-4.20.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.20.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6494a0e39bbc9951afec56ba4c790246947dd38707900293f631ae4897578494
MD5 a9aae024bc14d844953e2b8a936a4bcd
BLAKE2b-256 89ef95d177c88dcc55528887a7662ca03ae4ae4d43f81796920adabf8cffb127

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.20.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c3d1526a8fa2544b8f4d7faaee9ba7bdc588bb7b670483115eaef3d6541074b3
MD5 1602c39036c9ab41677a1165075e076a
BLAKE2b-256 b29415136082e32f7f0c656d46c39223a8d44b2cead887f797b07395bf338760

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.20.0-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 0411ddab8c4008dbbd99a57ea1ffb0c03aec884d6b9fc6b71a8d80afa60f2a9f
MD5 f61b6b269840b6baa54f2f922f05f26b
BLAKE2b-256 39faecbd02530d97fdf2a747a69a999ddfae0a6a094e8d43e1b40fec57c1f29b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.20.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 36a6e53073379f43f2df0f505aa4e59ec8e0fa7f21e0a59d25ba6d4a2dab3e45
MD5 7e97aca76ae5149d240bf6842debf93e
BLAKE2b-256 4f1be55819765446d3ec04cc7c79073facf29618f4ab901f85a4301703353df1

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: xtgeo-4.20.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.20.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0f9799305132071f9a01d790272d9cad0fa5686fc750ee3601add782fa56ab85
MD5 4acc2bb92eb1b2c7590335f00f273908
BLAKE2b-256 c33b0f2796160cbf6e9523b54a16c104a07273a4772fdf398cfb928d054976ca

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.20.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a51e16374031414f6083346c0937485380b1aad37296855a631695ad240092cb
MD5 c2474366913d0e6e58c3f069920ef0d0
BLAKE2b-256 1c1e9628dbb60130d822873eeac2712c62eeecb95821d14789f84ee931008f79

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.20.0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 dabed8fc5df324821e4c8fff85d1741ce45f3c9f25d06acd34118968a41e9468
MD5 6041c7ef2e7a9598629f8dab40c1c386
BLAKE2b-256 8515d1bfa66df26391f32461551c7f8de601e3f5745cd3c0c2574cf465448a52

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.20.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 193966e28567d923911e997fb946b7dd13693e4a109daa37e4e414e719274e32
MD5 b3ea647aa3c9ea7cdfd4235863b640cd
BLAKE2b-256 b405e0e563029ce79c0958174899b1835dd92d60b84354bd406cbd3d961034d9

See more details on using hashes here.

Provenance

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