diramp corr analysis code