slightly cleaned up drought analysis