Skip to content

Commit 48dd70e

Browse files
committed
Specify units of output motion field
1 parent 14c9175 commit 48dd70e

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

pysteps/motion/darts.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ def DARTS(R, **kwargs):
6464
-------
6565
out : ndarray
6666
Three-dimensional array (2,m,n) containing the dense x- and y-components
67-
of the motion field.
67+
of the motion field in units of pixels / timestep as given by the input
68+
array R.
6869
6970
"""
7071

pysteps/motion/lucaskanade.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@ def dense_lucaskanade(R, **kwargs):
172172
-------
173173
out : ndarray_
174174
If dense=True (the default), it returns the three-dimensional array (2,m,n)
175-
containing the dense x- and y-components of the motion field.
175+
containing the dense x- and y-components of the motion field in units of
176+
pixels / timestep as given by the input array R.
176177
If dense=False, it returns a tuple containing the one-dimensional arrays
177178
x, y, u, v, where x, y define the vector locations, u, v define the x
178179
and y direction components of the vectors.

pysteps/motion/vet.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,8 @@ def vet(input_images,
431431
Displacement Field (2D array representing the transformation) that
432432
warps the template image into the input image.
433433
The dimensions are (2,ni,nj), where the first
434-
dimension indicates the displacement along x (0) or y (1).
434+
dimension indicates the displacement along x (0) or y (1) in units of
435+
pixels / timestep as given by the input_images array.
435436
436437
intermediate_steps : list of ndarray_
437438
List with the first guesses obtained during the scaling procedure.

0 commit comments

Comments
 (0)