Skip to main content

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

Project description

============================= The XTGeo library

.. image:: https://travis-ci.com/equinor/xtgeo.svg?token=c9LYyqv6MtDXz4Cxbq9H&branch=master :target: https://travis-ci.com/equinor/xtgeo

XTGeo is Python class library with a C backend for subsurface work. It handles many data types, such as surfaces, well data, 3D grids, etc. The usage is primarely targeted to geoscientist and reservoir engineers working with reservoir modelling, in relation with RMS.

Building XTGeo

XTGeo is developed on Linux. To build XTGeo you need:

  • A C99 compatible C compiler (gcc is recommended)
  • The SWIG library (http://www.swig.org/) version 2 or higher.
  • Python 2.7, 3.4 or higher. Further Python requirements are listed in requirements.txt, requirements_dev.txt and setup.py
  • Detailed instructions are provided in installation.rst

Features

To goal of XTGeo is to provide easy access to basic data, with manipulation in numpy and/or pandas. For example:

::

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')

======= History

See github for commit and tag history:

https://github.com/equinor/xtgeo

Project details


Release history Release notifications | RSS feed

This version

2.0.0

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

xtgeo-2.0.0-cp37-cp37m-manylinux1_x86_64.whl (1.4 MB view hashes)

Uploaded CPython 3.7m

xtgeo-2.0.0-cp36-cp36m-manylinux1_x86_64.whl (1.4 MB view hashes)

Uploaded CPython 3.6m

xtgeo-2.0.0-cp27-cp27mu-manylinux1_x86_64.whl (1.3 MB view hashes)

Uploaded CPython 2.7mu

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page