Skip to main content

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.

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

Uploaded CPython 3.14Windows x86-64

xtgeo-4.24.2-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.2-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.2-cp314-cp314-macosx_11_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

xtgeo-4.24.2-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.2-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.2-cp313-cp313-macosx_11_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

xtgeo-4.24.2-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.2-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.2-cp312-cp312-macosx_11_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

xtgeo-4.24.2-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.2-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.2-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.2-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: xtgeo-4.24.2-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.2-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 c3920845485fc53b893b9fb4d508f3d660330c671862e25496beed52010901ef
MD5 be8441b34c6810c4dece75e405d92f8c
BLAKE2b-256 d15f640265febe64445fc313b8ebd5abf6510e523b760eba71ec3f355bf00677

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.24.2-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8614df2adb1037b364445fc47ffa79d2795112d819869423d2a56826719b7800
MD5 697691dae3f302a5750a05a128c3f9c9
BLAKE2b-256 59028dd1285317c37442db47ed4c7b2881a12c3a51751db62755c438c337b65b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.24.2-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 4e9a266cd66b569c31281e5688666d1c2b924f4e9acdca1de05088615fab172a
MD5 1dd07c4a4cc32617b87d3740bfcca45f
BLAKE2b-256 6c16e326a0bd2a297feddfcf7024a97aaca47a92cde6ec24bbeba033877090d6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.24.2-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3a9788604210455031e3a8315395fe9951b80726a1efe316984faac4fbd12999
MD5 343bf1ac74f48b84675c67880ad26f26
BLAKE2b-256 13e11fed361c051b6c85425a729f832ea87280290c8dec69109efe7df9f9f0b5

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: xtgeo-4.24.2-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.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 f64930ce1f8b72867b57739d8e6727c3fa31e5b984f02d2c0e3817792008ede0
MD5 3dffc405389d943a7d20f05c41c5ba09
BLAKE2b-256 80af1f3e58987f7bb0fc4fecb0092b33bd13efe5a336fa7c43a780cd9a388de3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.24.2-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 628cfa5cc8b077ca70d15a193fcdf44b10fa289a13845c4d08eaa1856712604f
MD5 36d36abc441185c6d03c3a4defcb93ed
BLAKE2b-256 e163713c373ee430aa5891234218971f1ab4b193e697623758ba7ced36addcb8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.24.2-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 571d7892e9bc772d7e4fa928c20a0ee7b319f8528cd8441c8940bf6f82452de7
MD5 9e9143a6b47e131eff8412722110f323
BLAKE2b-256 f0f6eccce8a90fb4bfe6e8b1f3371effa4caa3fda2bc09ef058e0ce5ecadb46c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.24.2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5dd73fedd9f9c0ccab6f79e306f48c412667575e9baf3e1a38be48d02b385337
MD5 5890d1a61bada6b74c16ecaf0ff044e7
BLAKE2b-256 df8161acec8a2efd979c16914a93e907d6b1cf8c41ed86ddd9da3ba0c80dc2a6

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: xtgeo-4.24.2-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.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5afebb9f36da02dd263b8cbdf94d1acda1005f9dfbea7567bf498a435dcdbe22
MD5 22cea30d099257a8bfedc55316b9751f
BLAKE2b-256 ede5aa85ad0dc56f1b26ae4fec11d267d42f9483a8681433131a497158db8475

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.24.2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3a9c3a46da520d54b87c8e85ef938c2393fb3ca03db7383f8848d88c15d34a5e
MD5 408fce7b6f40d073809a0bc09786af4d
BLAKE2b-256 a3b8a282e0d51c9cb2b3af63fd57ff4dbde715fa56bf12f7932b0e6e5e637fc5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.24.2-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f5898190553ff997aa65523e26e94dd6c2ff8af97d33aff93c3bccfb43938bab
MD5 161d45c431fc39156172d9a72dd9d085
BLAKE2b-256 2962e4e86985ff24b1c7172551d9b1368de96b71263ef6112656d1f37e2d128e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.24.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 97b612fbbf07e62d952edd5cd06ec6e6ca5dc296c3c2f74c79e9721eb47a53c8
MD5 7d5c71eee2089b2fe426d39e0772e308
BLAKE2b-256 4d722b2eae3849cb27dcf46c44766aeb943bee098f6e58aaa81131aa1b774c4f

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: xtgeo-4.24.2-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.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6b9b07d98475a10cd2b5d5610f34159e548a53b8209d1c4b72c591117b23f80e
MD5 c9404aa7d5b72e11a64376992f2cdf82
BLAKE2b-256 2aaaa4c099c8ef8dfe5f9f73b9aeddb5700923cb65c1c62b3865c6c690e0d902

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.24.2-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f0bdff4840bc7b6c81e2c084803b91c2c0d8c4d101420b635fe5ae39a181d33a
MD5 3fe97d214d62bb345c57e4a130a6199c
BLAKE2b-256 2a678ad5a9ac43c1924f20550c14bd1ba3221b988f6e5f8a40785557f514056c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.24.2-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 152148a134f9e8331057e50877643100a2445eff9e4c31ea1a589740024d67c0
MD5 a8ce9d8c872bf845a98fd72bdf69bf6d
BLAKE2b-256 6fde8ddc1da56b1e4820b8ae9acb92655865d6e5c42a83bcb7d2cc073a423635

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xtgeo-4.24.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1d0438083c6087aa568f8f523c31c93dd87242449ba6e60bdaa1b78fcb53edc4
MD5 6dc9273238090b832349ea1272f93ce6
BLAKE2b-256 7331372e8cbbb76596cc0b62c2ca4d850d998438b9962b2e282a301646fb16b4

See more details on using hashes here.

Provenance

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

Release history Release notifications | RSS feed

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page