speed

eolab.georastertools.processing.algo.speed(data0: ndarray, data1: ndarray, interval: float) ndarray[source]

Compute the speed of the input data based on the difference between two time points.

Parameters:
  • data0 (numpy.ndarray) – Numpy array containing the band value(s) at the first date. Shape must be (number_of_lines, number_of_columns).

  • data1 (numpy.ndarray) – Numpy array containing the band value(s) at the second date. Shape must match data0.

  • interval (float) – Time interval (in the same units as the timestamps of the input data) between the first and second dates.

Returns:

Numpy array of shape (number_of_lines, number_of_columns)

containing the computed speed of the sequence. The values represent the change in band values per unit time.

Return type:

numpy.ndarray

Raises:

ValueError – If data0 and data1 do not have the same shape, or if interval is zero.