resample data on atals, compute gof