Added where statement to prevent missing values from being included in average precip