pysrw.lib.uti_math.interp_2d#
- pysrw.lib.uti_math.interp_2d(_x, _y, _x_min, _x_step, _nx, _y_min, _y_step, _ny, _ar_f, _ord=3, _ix_per=1, _ix_ofst=0)[source]#
Interpolate 2D function value tabulated on equidistant rectangular mesh and represented by C-aligned flat array, using polynomial interpolation :param _x: first argument at which function value should be calculated :param _y: second argument at which function value should be calculated :param _x_min: minimal value of the first argument of the tabulated function :param _x_step: step of the first argument at which function is tabulated :param _nx: number of points vs first argument at which function is tabulated :param _y_min: minimal value of the second argument of the tabulated function :param _y_step: step of the second argument at which function is tabulated :param _ny: number of points vs second argument at which function is tabulated :param _ar_f: function tabulated on 2D mesh, aligned as “flat” C-type list or array (first argument is changing most frequently) :param _ord: “order” of polynomial interpolation (1- bi-linear (on 4 points), 2- “bi-quadratic” (on 6 points), 3- “bi-cubic” (on 12 points)) :param _ix_per: period of first argument index of the function data alignment (e.g. to interpolate one component of complex data, or in one dimension of multi-dimensional data) :param _ix_ofst: offset of the first argument index in function data alignment :return: function value found by 2D polynomial interpolation