netsse.tools.misc_func.re_range =============================== .. py:function:: netsse.tools.misc_func.re_range(theta, start=0, unit='deg') Converts angles to a new range (of extent 360 degrees). :param theta: Array of angles to be rearranged. :type theta: array_like :param start: Lower boundary of the range that should contain the new values of ``theta``. The upper boundary will be set automatically to ``start + 360`` degrees. :type start: float, default 0 :param unit: Specifies the unit of ``theta`` and ``start`` as ``'rad'`` or ``'deg'``. The default is ``'deg'``. :type unit: {'deg','rad'}, optional :returns: **theta_rerange** -- Array of angles where the elements of ``theta`` have been converted to the new range ``[start, start+360)`` degrees. :rtype: array_like .. seealso:: :py:obj:`ang_diff` Calculates the signed difference between two angles. .. rubric:: Example >>> theta_rerange = re_range(theta,start=0,unit='deg')