:py:mod:`pytmosph3r.util.math` ============================== .. py:module:: pytmosph3r.util.math Module Contents --------------- .. py:function:: nmin(x, y) .. py:function:: nmax(x, y) .. py:function:: nround(x, y) .. py:function:: interp1d(xx, yy, xkind='linear', ykind='linear', **kwargs) .. py:function:: bilinear_interpolation_array(z00, z10, z01, z11, x, y, res) 2D interpolation Applies linear interpolation across x and y between xmin,xmax and ymin,ymax. x, y and z must be 1D-arrays of the same length. :param z00: Array corresponding to xmin,ymin :type z00: array :param z10: Array corresponding to xmax,ymin :type z10: array :param z01: Array corresponding to xmin,ymax :type z01: array :param z11: Array corresponding to xmax,ymax :type z11: array :param x: weights on x coord :type x: array :param y: weights on y coord :type y: array .. py:function:: interp_ind_weights(x_to_interp, x_grid) Finds the indices and weights to interpolate from a x_grid to a x_to_interp. .. py:function:: roots(a, b, c) Find roots of a polynomial, i.e., find `x` for :math:`ax^2 + bx + c = 0`.