Mix of code for dynamically binning LROC NAC DTMs for colorshades.
Google Slides presentation: https://docs.google.com/presentation/d/10UuWIw2NIz4KwdQxxvrJBYSTRJAvl0tSN7P51B736Lk/edit?usp=sharing
Primary algorithm for binning: Data Driven Color Mapping. Eismann, M., G. Albuquerque, M. Magnor. International Workshop on Visual Analytics (2011). https://www.cg.cs.tu-bs.de/upload/publications/Eisemann11DDC.pdf
Colorbrewer2 Colormap: https://colorbrewer2.org/#type=diverging&scheme=RdYlBu&n=11
Python Matplotlib color maps: https://bids.github.io/colormap/ matlab version:Stephen Cobeldick (2020). MatPlotLib Perceptually Uniform Colormaps (https://www.mathworks.com/matlabcentral/fileexchange/62729-matplotlib-perceptually-uniform-colormaps), MATLAB Central File Exchange. Retrieved May 28, 2020.
Google Turbo Rainbow Colormap: https://ai.googleblog.com/2019/08/turbo-improved-rainbow-colormap-for.html Python:https://gist.github.com/mikhailov-work/ee72ba4191942acecc03fe6da94fc73f (matplotlib compatible version in comments): Matlab (tweaked to behave like the matplotlib maps):https://gist.github.com/nikolaskaralis/b19a1d192e6972d73ab7a0a1005a0e17
Matlab Stack Data Structure: Brian Moore (2020). Data Structures (https://www.mathworks.com/matlabcentral/fileexchange/45123-data-structures), MATLAB Central File Exchange. Retrieved May 28, 2020.
Other software: GDAL: https://gdal.org/ ImageMagick:https://imagemagick.org/index.php USGS ISIS3:https://isis.astrogeology.usgs.gov/UserDocs/index.html