ResInsight icon indicating copy to clipboard operation
ResInsight copied to clipboard

Import / Export of custom colour legends

Open EdmundStephens opened this issue 3 years ago • 2 comments

Please could you consider adding a simple ascii file import / export for custom colour legends.

EdmundStephens avatar Jun 21 '21 10:06 EdmundStephens

Hi! It is possible to import color legends from file: https://resinsight.org/3d-main-window/colorlegends/#create-a-custom-color-legend

The file format is similar to LYR, but with an extra color code per line. Example file here: https://github.com/OPM/ResInsight/blob/dev/ApplicationLibCode/UnitTests/TestData/RifColorLegendData/Norne_ATW2013ColorHTML.lyr

Color code is hexadecimal.

Export is not possible at the moment.

kriben avatar Jun 21 '21 14:06 kriben

Hi, thanks for taking the time to reply. Understood there is the layer import with some colour functionality, but note that this needs to be force fit to a formations layer context. Issues:

  • If for example there are only 10 model layers, then there is no way to import a colour palette with more than 10 codes.
  • It would be better to have a ascii file dedicated to colour palettes: category number, name and hexadecimal colour code
  • Import / Export method

Its a modest enhancement but would fill out this very nice functionality.

EdmundStephens avatar Jun 22 '21 08:06 EdmundStephens