earthkit.meteo.wind.array.xy_to_polar ===================================== .. py:function:: earthkit.meteo.wind.array.xy_to_polar(x, y, convention='meteo') Convert wind/vector data from xy representation to polar representation. :param x: u wind/x vector component :type x: :class:`array-like` :param y: v wind/y vector component (same units as ``u``) :type y: :class:`array-like` :param convention: Specify how the direction/angle component of the target polar coordinate system is interpreted. The possible values are as follows: * "meteo": the direction is the meteorological wind direction (see :func:`direction` for explanation) * "polar": the direction is measured anti-clockwise from the x axis (East/right) to the vector :type convention: :class:`str` :returns: * :class:`array-like` -- Magnitude (same units as ``u``) * :class:`array-like` -- Direction (degrees) In the target xy representation the x axis points East while the y axis points North.