earthkit.meteo.stats.array.nanaverage ===================================== .. py:function:: earthkit.meteo.stats.array.nanaverage(data, weights=None, **kwargs) A merge of the functionality of np.nanmean and np.average. :param data: Data to average. :type data: :class:`array-like` :param weights: Weights to apply to the data for averaging. Weights will be normalised and must correspond to the shape of the numpy data array and axis/axes that is/are averaged over. :type weights: :class:`array-like`, :obj:`None` :param axis: :type axis: :class:`axis/axes` to :class:`compute the nanaverage over.` :param kwargs: :type kwargs: :class:`any other np.nansum kwargs` :returns: Mean of data (along axis) where nan-values are ignored and weights applied if provided. :rtype: :class:`array-like`