You can see all the details about the methods used to create these colormaps in Peter Kovesi's 2015 arXiv paper. Other useful background is available in a 1996 paper from IBM.
Make it easier to use user defined colormaps in matplotlib. Default colormaps are from NCL website. Users can define a environmental variable CMAP_DIR pointing to the folder containing the ...