equinor / equinor/resdata

Option to load UNSMRY data as 32 bit floats

Open
#797 1 comment 2 reactions 1 assignee Claimed by @pinkwah View on GitHub
Dominant language
C++
Stars
127
Forks
103
Avg merge
2d 5h
Merged PRs (30d)
18

Description

According to the Eclipse documentation, the vector parameter values in UNSMRY are stored with the data type `REAL`, which is described as single precision (4 byte) floating point reals.

In `ecl`, at least from the `python` side (think also `C++` side, at least what I've seen), all values are returned as `float64`, giving a substantial memory overhead. For a single simulation, it doesn't have much to say, but if you aggregate to ensembles, the difference is significant.

Would be nice to be able to get `float32` directly (as an optional flag to avoid when requesting e.g. numpy arrays or pandas DataFrames (preferably also on the `C++` side to limit memory usage also on that side, though the `python` output of the bindings are the most important for my personal use).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.