Prepare for regridding.