Switch from the deprecated `interp2d` to `RegularGridInterpolator`
The purpose of this MR is to switch from the deprecated interp2d
to RegularGridInterpolator
. Although either RegularGridInterpolator
or RectBivariateSpline
can be used as a one-to-one replacement, I opted for RegularGridInterpolator
since it allows for interpolation outside of the domain of the input data via the kwargs bounds_error
and fill_value
(same as interp2d
). This is related to !793 (merged) and reverts !796 (merged).