Analysis code for the Thompson Scattering System