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