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.1.1-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.1.1-cp312-cp312-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.12macOS 10.9+ x86-64

resdata-4.1.1-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.1.1-cp311-cp311-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.11macOS 10.9+ x86-64

resdata-4.1.1-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.1.1-cp310-cp310-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.10macOS 10.9+ x86-64

resdata-4.1.1-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.1.1-cp39-cp39-macosx_10_9_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

resdata-4.1.1-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.1.1-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.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for resdata-4.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 da3e3fc1703c567b100eaee0b4a2bfcd482ea9c1cf1aa56d083a44d8fdbd6780
MD5 8460370099669bb788df488df4882119
BLAKE2b-256 5c420a219d70905beeecf5f24f3789e79dd802f08df1d9663be8f7eaa6b854f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-4.1.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b98ee52dc834d428fe058ee3a9e125dcda4802cb6ca2efed98251e78c841f5d6
MD5 701bfbaca7640e90ba701835f9db7029
BLAKE2b-256 9954553865761926f4f962224dbc695aef2cccf971fc328789c82f1512718871

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-4.1.1-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 cdf50734a770125f110de72c2b4688df7ac7be7468b4c680bc0c4ccb641ff880
MD5 982370c4d47b37d244ab61e3616ed6f8
BLAKE2b-256 363d417470372cebb7f50ef36dbf1a8ed5b5160c71a78cf5022ca1566a437ca8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-4.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c9d4042d9a5f0d2ac891b86b7ec348675aed5c6d4cc47d9e6fc24901ab3c2435
MD5 488770a70518aa34d0abbf31a02aa022
BLAKE2b-256 d299ec245a9d7db5a573361eb2fbf137a2d916910f5eb0b405ad3eb82e84eb89

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-4.1.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 36fafc37ff2e94df398034100f9969a5622f7a085b1f8c0bb3642c84843b8141
MD5 817f9317c59e38f9d7731dbf32f58493
BLAKE2b-256 0396d04741ceb4aa3c661b5ed9d19c12665aeecf3c08ec6dfe7307b76258fb25

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-4.1.1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 10b07aa01259593cc94ac305f4b9a45c8114f7745150d86abd6bf84689bce0c2
MD5 cfcde1deed45b512adc356f9cc01fd77
BLAKE2b-256 0e7e286dc030c544caa0469b18dc2eb1c75409062ac25b776461f3fdd5516abc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-4.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 db97c4ec0de2e02ce0942e0a0ff1dd10f60cb3dc8ea32a4e24abcee9f16bcd7c
MD5 cfe3ae42a55b7f539eccc72793255204
BLAKE2b-256 17aafbe8ca38ab99252fb495e809b535507c97bf0e1e7adbeb1685b37111a059

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-4.1.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f44a8be76bd14202a2efaf4947a55eeaa4107323b95a9423e7cc6def87f07e67
MD5 d632467cac19d0dcd24c6b2013396096
BLAKE2b-256 0489fabe69729376ee8ed1c78f7a8d3bf7eb6a76a83bc649023cc8bb7c91815f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-4.1.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1b430b34c446d8531e376d4e080284bd65d305bcb3f81e206301900e75daa4ef
MD5 db9a21bcaf5c11be3ca07054a3938f5f
BLAKE2b-256 f3f720ef996419da1147723fafd2a9f63a3caab203788064541b08c965ad7ec8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-4.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dee31d6f894a194caa6cf14efb26099810f76905de1109ca9f2aa59c26c91d2b
MD5 56b76155b9a48b2e23bda93479b935d7
BLAKE2b-256 2c9ed476f1e3562f746cfc3b6d284fb6f764beccac515b67128ae997cd64d4bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-4.1.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 c7370165784b67de9cb9a6bbd8200cc1f3f8059eaaaba33d153a83e2d7a01a14
MD5 8a10bd77795c541c79bc4af660bea413
BLAKE2b-256 d738604a0c92f7bb325a68efe6d74965d38f7d63a4405e32c59696e1a0bc99dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-4.1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dc4ef06578e0e26033f27636292e7a2cb994c9c3f4d9c12211df2894c9992198
MD5 c8741df26653fbb672becd27f83e9d41
BLAKE2b-256 51c902a63b45f97166772758371a5d92676f28e5de3faabe6a0ed76f32baf072

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-4.1.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 66f9e06acbd53d5a8291b6b850ffba7b5755b65958e3d8cd843d1ad1515c30ca
MD5 991d30411f187acfae7734aa4bcde465
BLAKE2b-256 546271af0282c321e407cd2acc0defd33abfc0ece8887c66ea9cbea123a81645

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