Registry / analytics / roffio

roffio

JSON →
library1.1.1pypypi✓ verified 82d ago

A (lazy) parser and writer for the Roxar Open File Format (ROFF), used primarily in geoscience and reservoir modeling. Current version 1.1.1; stable, low release cadence.

pip install roffio
INSTALL
IMPORT
SIG · ROFFIO
R
roffio
analyticspythonv1.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

read
from roffio import read
from roffio import RoffReader
write
from roffio import write
Format
from roffio import Format

Quick start: write and read a simple ROFF file.

from roffio import RoffReader, RoffWriter import numpy as np # Write a simple file with RoffWriter('example.roff', 'w') as writer: writer.write('data', np.array([1, 2, 3])) # Read it back with RoffReader('example.roff') as reader: data = reader.read('data') print(data)
Debug
Known issues
gotchaRoffReader is lazy by default: arrays are only loaded when read() is called. Do not rely on the file object being available after the context closes.
affects: >=1.0.0
deprecatedThe function roffio.open() is deprecated since 1.1.0. Use RoffReader or RoffWriter constructors directly.
fix
Use RoffReader(path) or RoffWriter(path, 'w') instead of roffio.open().
affects: >=1.1.0
breakingIn version 1.0.0, the package was renamed from 'roff' to 'roffio'. Install the new package name.
fix
Use 'pip install roffio'. The old 'roff' package is abandoned.
affects: >=1.0.0
Upgrade
Version history
1.1.1latest on PyPI · released Apr 23, 2025
Audit
Dependencies
numpyrequiredRequired for array data handling
h5pyoptionalOptional for HDF5 support in ROFF files
Agent activity
36 hits · last 30 days
node
34
OpenAI (training)
1
Resources
roffio — pip install roffio · libregistry