Resampling and averaging coordinates on data