Just the piece (SOMZ) of code taken from MLZ to create Self Organizing Maps in different topologies (spherical, rectangular and hexagonal coordinates).
See Documentation here
Paper Reference where this is introduced and used here
pip install git+https://github.com/mgckind/somsphere.git
It supports python2 and python3
Beside standard libraries (numpy, matplotlib, scipy) to run in spherical coordinates it also needs healpy, a library to deal with spherical coordinates and spherical tesellations. This last requirement is optional
See here for a notebook example on how to get started.