NCL colormaps in Python

NCL colour maps in python

I’ve never found any good colormaps in python which match NCL for presenting geophysical data, so I pinched them and hard-coded them into this python module.

To use:

import nclcmaps as ncm
cmap = ncm.cmap(name)

All of the data is hard-coded in the python file, and the total size is around 528Kb, so if you need a more efficient way get in touch and I’ll split the data from the code and make it load on demand.

Leave a Reply

Your email address will not be published. Required fields are marked *