regrid function

Reconstruct a reference grid with a new transformation or simulations