equinor / webviz-subsurface

Webviz-config plugins for subsurface data.
https://github.com/orgs/equinor/projects/24
GNU General Public License v3.0
55 stars 59 forks source link

`VfpAnalysis` - indexes not read correctly #1262

Open rnyb opened 7 months ago

rnyb commented 7 months ago

When indexes in a vfp table are unsorted, the plugin seems to read them as if they were sorted, instead of reading the actual indexes. This leads to inconsistency between filter values and the corresponding plotted curves.

An example of unsorted indexes in this context could be (reversed order)

1 1 11 1 BHP values 1 1 10 1 BHP values ... 1 1 1 1 BHP values

As opposed to a sorted table which would look like

1 1 1 1 BHP values 1 1 2 1 BHP values ... 1 1 11 1 BHP values

The effect is illustrated in the picture below where the reversed order of indexes leads to low OGR (=high GOR) and the high OGR (=low GOR) being "flipped" image

asnyv commented 6 months ago

Do you think it would be sufficient to sort it during creation of the arrow-files (in res2df) and assume that it is sorted already in webviz?