replaced moving avearage with drought index function in cdi