scripts and notes for analyzing data for project SA2