First working version of autoreflectivity script. Needs to be tested on
analysis cluster with correct paths