Macrosystems drought. Scripts for the NCEAS project. July 2014