This code was implemented in X-ray Mapping of Nanoparticle Superlattice Thin Films by Diroll, Doan-Nguyen, Cargnello, Gaulding, Kagan, and Murray. Chemistry of Materials (2014). http://pubs.acs.org/doi/abs/10.1021/nn5062832.
The Python script batch processes TIF files of SAXS data to (1) find the center, (2) integrate around the scattering ring, (3) find the maximum peak in polar coordinates, (4) bin the angle, (5) and make a heat map.