Skip to main content

A (lazy) parser and writer for reservoir simulator fortran output format.

Project description

resfo

Code style: black docs

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

resfo-5.0.1.tar.gz (30.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

resfo-5.0.1-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

File details

Details for the file resfo-5.0.1.tar.gz.

File metadata

  • Download URL: resfo-5.0.1.tar.gz
  • Upload date:
  • Size: 30.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for resfo-5.0.1.tar.gz
Algorithm Hash digest
SHA256 73595542e0aed747acb63cdc88a39dffb913b8c7b1f4588208c21f37088817ef
MD5 075c754b7191fa5a42cda925f74733df
BLAKE2b-256 682412574ccfcbe898b4405c52b2f864f5bba3a765d18dbecd001770be376e32

See more details on using hashes here.

Provenance

The following attestation bundles were made for resfo-5.0.1.tar.gz:

Publisher: publish_to_pypi.yml on equinor/resfo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file resfo-5.0.1-py3-none-any.whl.

File metadata

  • Download URL: resfo-5.0.1-py3-none-any.whl
  • Upload date:
  • Size: 19.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for resfo-5.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 adc3b69f52fe08602b5342be8e297451be1803e394b8efb7f05be3c61a86b2ff
MD5 28838ecdc8e4dc4b91b607bb1f16adc2
BLAKE2b-256 74b7b1416617ef8d96a793cf414c4866cd66fc43974bee786fdb2c8f4a6c9108

See more details on using hashes here.

Provenance

The following attestation bundles were made for resfo-5.0.1-py3-none-any.whl:

Publisher: publish_to_pypi.yml on equinor/resfo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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