pysteps.motion.constant.constant

Contents

pysteps.motion.constant.constant#

pysteps.motion.constant.constant(dataset: Dataset, **kwargs)#

Compute a constant advection field by finding a translation vector that maximizes the correlation between two successive images.

Parameters:

dataset (xarray.Dataset) – Input dataset as described in the documentation of pysteps.io.importers. It has to contain a precipitation data variable. The dataset has to have a time dimension. If the size of this dimension is larger than 2, the last 2 entries of this dimension are used.

Returns:

out – The input dataset with the constant advection field added in the velocity_x and velocity_y data variables.

Return type:

xarray.Dataset