plots.resample ============== .. py:module:: plots.resample Classes ------- .. autoapisummary:: plots.resample.Regrid plots.resample.Resample plots.resample.Subsample Module Contents --------------- .. py:class:: Regrid(*args, nx=None, ny=None, mode='fixed') Bases: :py:obj:`Subsample` .. py:method:: apply(x_values, y_values, *values, source_crs, target_crs, extents) Apply the resampling technique to the data. This method should be overridden by subclasses. :param data: The data to be resampled. :type data: np.array :returns: The resampled data. :rtype: np.array :raises NotImplementedError: If the subclass does not override this method. .. py:attribute:: mode :value: 'fixed' .. py:class:: Resample .. py:method:: apply(data) :abstractmethod: Apply the resampling technique to the data. This method should be overridden by subclasses. :param data: The data to be resampled. :type data: np.array :returns: The resampled data. :rtype: np.array :raises NotImplementedError: If the subclass does not override this method. .. py:class:: Subsample(*args, nx=None, ny=None, mode='fixed') Bases: :py:obj:`Resample` .. py:method:: apply(x_values, y_values, *values, **kwargs) Apply the resampling technique to the data. This method should be overridden by subclasses. :param data: The data to be resampled. :type data: np.array :returns: The resampled data. :rtype: np.array :raises NotImplementedError: If the subclass does not override this method. .. py:attribute:: mode :value: 'fixed'