imod.visualize.read_imod_legend#

imod.visualize.read_imod_legend(path)[source]#
Parameters

path (str) – Path to iMOD .leg file.

Returns

  • colors (List of hex colors of length N.)

  • levels (List of floats of length N-1. These are the boundaries between) – the legend colors/classes.