interpolate the same way as IDL interpolate