Skip to main content

A (lazy) parser and writer for the ecl output format.

Project description

ecl-data-io

Code style: black docs

Parser for the ecl output format, such as found in files with extensions .UNRST, .EGRID, .INIT, etc. and also the corresponding ascii files with extension .FUNRST, .FEGRID, .FINIT, etc.

Installation

ecl-data-io can be installed with pip:

pip install ecl-data-io

Getting started

Ecl output files consist of a sequence of named arrays. ecl-data-io does not interpret the names, but simply give you a tuple of the name and a numpy array with the read function:

import ecl_data_io as eclio

for kw, arr in eclio.read("my_grid.egrid"):
    print(kw)

>>> "FILEHEAD"
>>> "GRIDHEAD"
>>> "COORD"
>>> "ZCORN"
>>> "ACTNUM"
>>> "MAPAXES"

For more information, see the docs.

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

ecl-data-io-3.0.0.tar.gz (26.0 kB view hashes)

Uploaded Source

Built Distribution

ecl_data_io-3.0.0-py3-none-any.whl (18.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page