code for working with Magellanic clouds data