def scale_field(self, f):
"""
Scaling of the field according to calculated meshgrid.
For the interpolation rectangular bivariate Splines are used.
These are implemented from the scipy function `RectBivariateSpline <https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.RectBivariateSpline.html>`_.
:param f: field to be interpolated
:returns: field after interpolation
"""
rbs = RBS(self._tx, self._ty, f)
return rbs.ev(self._out_x, self._out_y)
评论列表
文章目录