resfo
resfo (REservoir Simulator Fortran Output) is a parser for the output format used by several reservoir simulators such as opm flow, such as found in files with extensions .UNRST, .EGRID, .INIT, etc. and also the corresponding ascii files with extension .FUNRST, .FEGRID, .FINIT, etc.
Installation
resfo can be installed with pip:
pip install resfo
Getting started
Reservoir simulator output files consist of a sequence of named arrays. resfo does not interpret the names, but simply give you a tuple of the name and a numpy array with the read function:
import resfo
for kw, arr in resfo.read("my_grid.egrid"):
print(kw)
>>> "FILEHEAD"
>>> "GRIDHEAD"
>>> "COORD"
>>> "ZCORN"
>>> "ACTNUM"
>>> "MAPAXES"
For more information, see the docs.
How to contribute
The easiest way to set up a nice development environment for resfo is to use tox (can be installed via pip install tox or
sudo apt install tox on ubuntu), then all testing and linting can be ran with
tox
You can also set up pre-commit to ensure style checks are done as you commit:
pip install pre-commit
pre-commit install
Metadata
Release files for resfo 5.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| resfo-5.0.1.tar.gz | 30.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| resfo-5.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 50.5 kB
Release files / resfo-5.0.1.tar.gz
| Download URL | resfo-5.0.1.tar.gz |
|---|---|
| Size | 30.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
73595542e0aed747acb63cdc88a39dffb913b8c7b1f4588208c21f37088817ef
|
|
BLAKE2b-256 checksum How to use checksums |
682412574ccfcbe898b4405c52b2f864f5bba3a765d18dbecd001770be376e32
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 12, 2025.
Transparency logRelease files / resfo-5.0.1-py3-none-any.whl
| Download URL | resfo-5.0.1-py3-none-any.whl |
|---|---|
| Size | 19.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
adc3b69f52fe08602b5342be8e297451be1803e394b8efb7f05be3c61a86b2ff
|
|
BLAKE2b-256 checksum How to use checksums |
74b7b1416617ef8d96a793cf414c4866cd66fc43974bee786fdb2c8f4a6c9108
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 12, 2025.
Transparency log