# Flumy Facies Colormap

import numpy as np
import matplotlib

# Color of facies with RGB components
fac_col = [
  # Undefined (UDF)
  [0.60,0.60,0.90, 1.00],
  # Channel Lag (CL)
  [1.00,0.50,0.00, 1.00],
  # Point Bar / LAPs (PB)
  [1.00,1.00,0.00, 1.00],
  # Sand Plug (SP)
  [0.75, 0.75,0.55, 1.00],
  # Crevasse Splay I (CSI)
  [0.80, 0.50, 0.20, 1.00],
  # Splay II Channels (CCh)
  [0.80, 1.00, 0.20, 1.00],
  # Crevasse Splay II (CSII)
  [0.80, 0.80, 0.20, 1.00],
  # Levee (LV)
  [0.40, 0.80, 0.20, 1.00],
  # Overbank (OB)
  [0.00, 1.00, 0.00, 1.00],
  # Mud Plug (MP)
  [0.00, 0.80, 0.50, 1.00],
  # Hemipelagic Plug (HP)
  [0.50, 0.50, 0.50, 1.00],
  # Wetland (WL)
  [0.85, 0.45, 0.85, 1.00],
  # Draping (DR)
  [0.60, 0.80, 0.90, 1.00],
  # Pelagic (PL)
  [1.00, 0.80, 1.00, 1.00]]

fac_unique = np.array(range(0,14))
cmap = matplotlib.colors.ListedColormap(fac_col, int(fac_unique.max())+1)
