This set of scripts extracts and plots SIM and other state conditions.