Skip to main content

XTGeo is a Python library for 3D grids, surfaces, wells, etc

Project description

XTGeo

Build Status Code style: black PyPI version Codacy Badge 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 2.7+ and 3.4+ is supported
  • 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
  • Integration to ROXAR API python for several data types is supported (see note later)
  • Currently, Linux only is supported

Installation

For some versions, PYPI installation is possible:

pip install xtgeo

For detailed installation instructions (implies C compiling), see the documentation.

Getting started

from xtgeo.surface import RegularSurface

# create an instance of a surface, read from file
mysurf = RegularSurface('myfile.gri')  # Irap binary as default

print('Mean is {}'.format(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.

History

Version 2

2.0.8

  • Fixed a backward compatibility issue with filter vs pfilter for points/polygons to_file

2.0.7

  • (merged into 2.0.8)

2.0.6

  • Corrected issues with matplotlib when loading xtgeo in RMS

2.0.5

  • Fixed a bug when reading grids in ROXAR API, the subgrids were missing
  • Improved logo and documentation runs
  • Allow for xtgeo.ClassName() as well as xtgeo.submodule.ClassName()
  • A number of smaller Fixes
  • More badges

2.0.4

  • Technical fixes regarding numpy versions vs py version, swig setup and setup.py

2.0.3

  • Deploy to python 3.4 and 3.5 also. Numpy versions tuned to match roxar library.

2.0.2

  • Adding services for code improvements (codacy, bandit)

2.0.1

  • Minor improvements in setup and documentation
  • Travis automatic deploy works now

2.0.0

  • First version after Open Sourcing to LGPL v3+

Version 0 and 1

See github for commit and tag history:

https://github.com/equinor/xtgeo

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-2.1.0b10-cp37-cp37m-manylinux1_x86_64.whl (815.5 kB view details)

Uploaded CPython 3.7m

xtgeo-2.1.0b10-cp36-cp36m-manylinux1_x86_64.whl (815.6 kB view details)

Uploaded CPython 3.6m

xtgeo-2.1.0b10-cp35-cp35m-manylinux1_x86_64.whl (815.6 kB view details)

Uploaded CPython 3.5m

xtgeo-2.1.0b10-cp34-cp34m-manylinux1_x86_64.whl (815.5 kB view details)

Uploaded CPython 3.4m

xtgeo-2.1.0b10-cp27-cp27mu-manylinux1_x86_64.whl (814.4 kB view details)

Uploaded CPython 2.7mu

File details

Details for the file xtgeo-2.1.0b10-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: xtgeo-2.1.0b10-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 815.5 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.3

File hashes

Hashes for xtgeo-2.1.0b10-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 01a3265b4155533d7da01e9a143e6444a596a29081d6d969d542ee6c4bbf67d0
MD5 ca76af8f1def182333c6d8f7d5b9c0e8
BLAKE2b-256 4a0b7e0772ba2a311c277bd83de7d763d1f07090794ba73dcc37179135815a73

See more details on using hashes here.

File details

Details for the file xtgeo-2.1.0b10-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: xtgeo-2.1.0b10-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 815.6 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.3

File hashes

Hashes for xtgeo-2.1.0b10-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 32ead8633a8bebe39933a22978a41d47b095c377554882f1789045d7c56818e5
MD5 881a3b20d60406fd4018f11182a622e1
BLAKE2b-256 2d16b3dd49aaead0e9460d3ac721445ed163c485e58e54ba5f4e35b8e6f9d98f

See more details on using hashes here.

File details

Details for the file xtgeo-2.1.0b10-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

  • Download URL: xtgeo-2.1.0b10-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 815.6 kB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.3

File hashes

Hashes for xtgeo-2.1.0b10-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 4ffe9fb05c9ed8afade678b208d81f0371727cbea6b8705b81c8d3014b994ba7
MD5 f8b9aef667d9d08328cb152d3c6135b2
BLAKE2b-256 b30ae137b20cec2b0de3146d2c470188fdb996273703f077a13d1ffae83bc343

See more details on using hashes here.

File details

Details for the file xtgeo-2.1.0b10-cp34-cp34m-manylinux1_x86_64.whl.

File metadata

  • Download URL: xtgeo-2.1.0b10-cp34-cp34m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 815.5 kB
  • Tags: CPython 3.4m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.3

File hashes

Hashes for xtgeo-2.1.0b10-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b2e33f40e76bd7b30d1bc2c768ed1a295685d87c890a571aee397c20e9366b7f
MD5 4662ebc9c2c84c526a37e4f2e8a9affb
BLAKE2b-256 588d9b897e0de89b5bc323f3d5555aa89d43d9ff0e3bf538c208fafb75007b30

See more details on using hashes here.

File details

Details for the file xtgeo-2.1.0b10-cp27-cp27mu-manylinux1_x86_64.whl.

File metadata

  • Download URL: xtgeo-2.1.0b10-cp27-cp27mu-manylinux1_x86_64.whl
  • Upload date:
  • Size: 814.4 kB
  • Tags: CPython 2.7mu
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.3

File hashes

Hashes for xtgeo-2.1.0b10-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 4b2ac6b3e60a158ce297b1587cce1d1856d631190798ae5e72b72f50d0c937ce
MD5 e69f10cb4215cffc2cea410d90f38d48
BLAKE2b-256 bb320d64568c5c02e4e39995deb56a4b26aa35a62caab7a1402fcc8a162b1972

See more details on using hashes here.

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