easysnowdata.plotting.colormap_from_flags#

easysnowdata.plotting.colormap_from_flags(obj: DataArray | dict[str, Any]) tuple[Any, Any, Any][source]#

Return (cmap, norm, table) for a categorical array’s CF flags.

The norm maps each flag_value to its own color regardless of gaps between values (5, 37, 200 …).