Skip to content

Latest commit

 

History

History
35 lines (20 loc) · 541 Bytes

README.md

File metadata and controls

35 lines (20 loc) · 541 Bytes

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 cptfile for use with the Generic Mapping Tools.

usage

./mincolor.py <ncfile>

Export the .cpt file:

./mincolor.py <ncfile> -e

Requirements

  • numpy
  • networkx
  • matplotlib
  • netCDF4