pysteps.motion.constant.constant
pysteps.motion.constant.constant¶
- pysteps.motion.constant.constant(R, **kwargs)¶
Compute a constant advection field by finding a translation vector that maximizes the correlation between two successive images.
- Parameters
- R: array_like
Array of shape (T,m,n) containing a sequence of T two-dimensional input images of shape (m,n). If T > 2, two last elements along axis 0 are used.
- Returns
- out: array_like
The constant advection field having shape (2, m, n), where out[0, :, :] contains the x-components of the motion vectors and out[1, :, :] contains the y-components.