mincolor
implements a greedy coloring algorithm
for coloring regions of a map so that no two adjacent regions have the same color.
It can plot and save the resulting map (via matplotlib imshow
) or export a
cpt
file for use with the Generic Mapping
Tools.
./mincolor.py <ncfile>
Export the .cpt file:
./mincolor.py <ncfile> -e
- numpy
- networkx
- matplotlib
- netCDF4