Skip to main content

Package for reading and writing the fortran result files from reservoir simulators

Project description

resdata testing

resdata is a package for reading and writing the result files from the reservoir simulators. The file types covered are the restart, init, rft, summary and grid files. Both unified and non-unified and formatted and unformatted files are supported.

resdata is mainly developed on Linux and macOS, in addition there is a portability layer which ensures that most of the functionality is available on Windows. The main functionality is written in C/C++, and should typically be linked in in other compiled programs. resdata was initially developed as part of the Ensemble Reservoir Tool, other applications using resdata are the reservoir simulator flow and Resinsight from the OPM project.

Dependencies

Regardless of how you build resdata, it will depend on the following system-level components.

Software Debian / Ubuntu RHEL / Fedora macOS
libz zlib1g-dev zlib-devel builtin
Conan N/A N/A conan (Homebrew)
pipx (Optional) pipx pipx pipx (Homebrew)

Note: The Conan package manager is not available for most Linux systems. Conan recommends installing it via pip. If using pipx, simply pipx install conan and it'll be availabe for your user regardless if you're using a virtualenv or not.

Alternative 1: Python only

For small interactive scripts, such as forward models, the recommended way to use resdata is by installing it from PyPI. This method doesn't require setting PYTHONPATH or LD_LIBRARY_PATH environment variables:

$ pip install resdata

Alternative 2: C library only

This is for when you need to link directly with the resdata C library, but don't need the Python bindings. resdata requires a conforming C++11 or later compiler such as GNU GCC, the CMake build system and, optionally, zlib.

$ git clone https://github.com/Equinor/resdata
$ mkdir resdata/build
$ cd resdata/build
$ cmake ..
$ make
$ make install

To install resdata in a non-standard location, add -DCMAKE_INSTALL_PREFIX=/path/to/install to the first cmake command. Remember to set LD_LIBRARY_PATH=/path/to/install/lib64:$LD_LIBRARY_PATH if you do use a non-standard location for your program to find resdata.so.

If you intend to develop and change resdata you should build the tests by passing -DBUILD_TESTS=ON and run the tests with ctest.

Alternative 3: C library with Python bindings

It is also possible to install both the C library and Python bindings using CMake. Note that this alternative is incompatible with resdata installed from PyPI (Alternative 1). As before, we require a conforming C++11 or later compiler, CMake and, optionally, zlib.

$ git clone https://github.com/Equinor/resdata
$ mkdir resdata/build
$ cd resdata/build
$ pip install -r ../requirements.txt
$ cmake .. -DENABLE_PYTHON=ON
$ make
$ make install

You will most likely want to install resdata into a Python virtual environment. First activate the virtualenv, then add the argument -DCMAKE_INSTALL_PREFIX=$(python -c "import sys; print(sys.prefix)") to the cmake command when building.

Then, you must tell Python where to find the package[1]:

$ export PYTHONPATH=/path/to/install/lib/python2.7/site-packages:$PYTHONPATH
$ export LD_LIBRARY_PATH=/path/to/install/lib64:$LD_LIBRARY_PATH

Then you can fire up your Python interpreter and try it out:

>>> from resdata.summary import Summary
>>> import sys

>>> summary = Summary(sys.argv[1])
>>> fopt = summary.numpy_vector("FOPT")

The installation with Python enabled is described in a YouTube video by Carl Fredrik Berg.

[1]: The exact paths here will depend on your system and Python version. The example given is for a RedHat system with Python version 2.7.

Project details


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.

resdata-4.2.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

resdata-4.2.3-cp312-cp312-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

resdata-4.2.3-cp312-cp312-macosx_10_9_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.12macOS 10.9+ x86-64

resdata-4.2.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

resdata-4.2.3-cp311-cp311-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

resdata-4.2.3-cp311-cp311-macosx_10_9_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

resdata-4.2.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

resdata-4.2.3-cp310-cp310-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

resdata-4.2.3-cp310-cp310-macosx_10_9_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

resdata-4.2.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

resdata-4.2.3-cp39-cp39-macosx_10_9_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

resdata-4.2.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

resdata-4.2.3-cp38-cp38-macosx_10_9_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

File details

Details for the file resdata-4.2.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for resdata-4.2.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 badcfb7233071d847004d97125942b00ba051f1895070a6bdc87c0f2d7c7115f
MD5 489c17da6152708fb9beabd66f470626
BLAKE2b-256 9b3b75d8974a0b6e53d969d6a150c9876ef18dbd272b8ee64534eaf5684bcf35

See more details on using hashes here.

File details

Details for the file resdata-4.2.3-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for resdata-4.2.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eff30b0163ee7936adfd0e520836916b798c7110c33e43f0e0d1eba2229f89b4
MD5 82505aa787adeebcbd62f060e8ff0d77
BLAKE2b-256 0c938cc933c6f49a42e98945c9fd210560f128b675f061c8c6b0e063934035f8

See more details on using hashes here.

File details

Details for the file resdata-4.2.3-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for resdata-4.2.3-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 26858e40ada339e09315755eef80550c1d8a2d8c4071176307acdb393745f35e
MD5 1d009a2db3dd9d89ff893b90d8b9e37a
BLAKE2b-256 cd3a9a601c162f6456d6da015a07bcc1a2f03d354aba10e32a15e14e66005968

See more details on using hashes here.

File details

Details for the file resdata-4.2.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for resdata-4.2.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cea716318d1673c5f09fb3c7da36a2d758d81f666ad4a6a0f35b27497ca0024a
MD5 5027c7cab6af994d55f51c4fa240562d
BLAKE2b-256 fc31849f50f44cfab0e029556cf81207e79a7fdbcd12422c4a579c7469a2fc9f

See more details on using hashes here.

File details

Details for the file resdata-4.2.3-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for resdata-4.2.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 786ab9031066538317535179e9ec5e6a6711b6bda83ca2d61dc5822cd8c45ea1
MD5 904bae1c9d0d5b37b375522059768e37
BLAKE2b-256 4fd7d5d8548f79f9b3b567a78fe228fc86a87309032315556cc0fcedbfd55185

See more details on using hashes here.

File details

Details for the file resdata-4.2.3-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for resdata-4.2.3-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 186f5aae3da7ca3466da502fee4431a85cd82593afda13f6ea7b2101c59011c1
MD5 598abb09e7b390d69015ed247836370b
BLAKE2b-256 0fe1c5aa38dc7c234f3388a963a811b00110a8c6db5204b25acba9ed11942688

See more details on using hashes here.

File details

Details for the file resdata-4.2.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for resdata-4.2.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b106cfcf28857447e8923d23e72cb552867a01e5299604ad66ea58232297223a
MD5 74c1435ee8257971e9931e1c468ef53d
BLAKE2b-256 d605d1132372b6e2990cf2435ebb00415a32eed363947e9cd4d8044d5e739d04

See more details on using hashes here.

File details

Details for the file resdata-4.2.3-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for resdata-4.2.3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3b974fbf283f850c9503bbbb6e305f8a43884ea6ca7f56521944efe6925dc920
MD5 2e36348e6e5fd3f03db5cf07fc56576c
BLAKE2b-256 b57dfe8f3b7b6b4325275712f7879532a4702ca001762a4dd27f8a50c3b0ceb3

See more details on using hashes here.

File details

Details for the file resdata-4.2.3-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for resdata-4.2.3-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 21c7249f59a85733b70c1399f5d31ba7f6ae910965e98fb6813a17f6693aabdf
MD5 2b711ff5fff6216b1d7c71c6896f758e
BLAKE2b-256 b5120bb7281701d07a309f0d7263dc82720e40fe4a822ddd7bd8ddec51556bf3

See more details on using hashes here.

File details

Details for the file resdata-4.2.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for resdata-4.2.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d5a530075168aab622881050de587d32edee92e2db245be4fca2a8359b7583b1
MD5 05db41b489038641766e88395f7e3053
BLAKE2b-256 79610c57bc658997f698327718a5029a03062e88ba5f05b136688d97449e5cd5

See more details on using hashes here.

File details

Details for the file resdata-4.2.3-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for resdata-4.2.3-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0098334e64754caf12db316ad034bdad6efbffd84d9c42ba91900a33fd138e63
MD5 a86539e0b5cddc7929ba16b1b8e3695c
BLAKE2b-256 237529e677586598ce9b44d8b511a2d285e1521deb881329845712d9de7cc3ba

See more details on using hashes here.

File details

Details for the file resdata-4.2.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for resdata-4.2.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 42a2f9be5720a51eed976c55a34703a68056d7c13599628b474b0c86dbd16baa
MD5 f627a8fc6c28db007029ffdc54dfdafe
BLAKE2b-256 206e8f8c245a978025e8b75cc2a620410024e5521c78f5b8c4757793fef33536

See more details on using hashes here.

File details

Details for the file resdata-4.2.3-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for resdata-4.2.3-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 49920be4a99c30347cfb4420492f11bd965ad30555d31c90423fac99f231ae99
MD5 43d2a7b94ba8b10aa143e831ec2c4d80
BLAKE2b-256 f89dc096a5e60700b6529395275928060d7c20c31d4c299f32a9d8d27fa5b17b

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