plots.resample

Classes

Regrid

Resample

Subsample

Module Contents

class plots.resample.Regrid(*args, nx=None, ny=None, mode='fixed')

Bases: Subsample

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.

Parameters:

data (np.array) – The data to be resampled.

Returns:

The resampled data.

Return type:

np.array

Raises:

NotImplementedError – If the subclass does not override this method.

mode = 'fixed'
class plots.resample.Resample
abstract apply(data)

Apply the resampling technique to the data. This method should be overridden by subclasses.

Parameters:

data (np.array) – The data to be resampled.

Returns:

The resampled data.

Return type:

np.array

Raises:

NotImplementedError – If the subclass does not override this method.

class plots.resample.Subsample(*args, nx=None, ny=None, mode='fixed')

Bases: Resample

apply(x_values, y_values, *values, **kwargs)

Apply the resampling technique to the data. This method should be overridden by subclasses.

Parameters:

data (np.array) – The data to be resampled.

Returns:

The resampled data.

Return type:

np.array

Raises:

NotImplementedError – If the subclass does not override this method.

mode = 'fixed'