Description
Background for this issue is that the maps visualized in the CO2 leakage part of webviz-subsurface looks incorrect. Most likely coming from replacing DashSubsurfaceViewer
with SubsurfaceViewer
(equinor/webviz-subsurface#1312):
Upper image is before, lower is after. The red area on the "outskirts" on the lower should be blue as in the upper:
SubsurfaceViewer accepts a colorScales argument, which is a list of color scales, and where each color scale (according to the documentation) can have optional colorAbove/colorBelow/colorNaN properties. However, these setting does not seem to have any effect.
My suspicion is that this might be due to the getRgbData
in a different repo, which I think should reference these properties somehow: https://github.com/emerson-eps/color-tables/blob/bb3d1e866c3fa0a7cedc71159169046b9703d6b3/react-app/src/component/Utils/legendCommonFunction.ts#L62
This function is invoked from:
Even though this is in a different repo, this is just my suspicion based on a brief investigation with limited react/tsx experience.
Apologize in advance for not producing a reproducible issue, but I'll get more info if needed and create one if worst comes to worst.