A (lazy) parser and writer for reservoir simulator fortran output format.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
resfo-4.1.0.tar.gz
(28.8 kB
view hashes)
Built Distribution
resfo-4.1.0-py3-none-any.whl
(18.3 kB
view hashes)