pysteps.nowcasts.extrapolation.forecast¶
-
pysteps.nowcasts.extrapolation.
forecast
(precip, velocity, num_timesteps, extrap_method='semilagrangian', extrap_kwargs=None, measure_time=False)¶ Generate a nowcast by applying a simple advection-based extrapolation to the given precipitation field.
Parameters: - precip : array-like
Two-dimensional array of shape (m,n) containing the input precipitation field.
- velocity : array-like
Array of shape (2,m,n) containing the x- and y-components of the advection field. The velocities are assumed to represent one time step between the inputs.
- num_timesteps : int
Number of time steps to forecast.
- extrap_method : str, optional
Name of the extrapolation method to use. See the documentation of pysteps.extrapolation.interface.
- extrap_kwargs : dict, , optional
Optional dictionary that is expanded into keyword arguments for the extrapolation method.
- measure_time : bool, optional
If True, measure, print, and return the computation time.
Returns: - out : ndarray
Three-dimensional array of shape (num_timesteps, m, n) containing a time series of nowcast precipitation fields. The time series starts from t0 + timestep, where timestep is taken from the advection field velocity. If measure_time is True, the return value is a two-element tuple containing this array and the computation time (seconds).
See also