update example resample_grid()