pysteps.nowcasts.lagrangian_probability.forecast

Contents

pysteps.nowcasts.lagrangian_probability.forecast#

pysteps.nowcasts.lagrangian_probability.forecast(dataset: Dataset, timesteps, threshold, extrap_method='semilagrangian', extrap_kwargs=None, slope=5) → Dataset#

Generate a probability nowcast by a local lagrangian approach. The ouput is the probability of exceeding a given intensity threshold, i.e. P(precip>=threshold).

Parameters:
  • dataset (xarray.Dataset) – Input dataset as described in the documentation of pysteps.io.importers. It has to contain the velocity_x and velocity_y data variables, as well as any pecipitation data variable. It should contain a time dimension of size 1.

  • timesteps (int or list of floats) – Number of time steps to forecast or a sorted list of time steps for which the forecasts are computed (relative to the input time step). The number of time steps has to be a positive integer. The elements of the list are required to be in ascending order.

  • threshold (float) – Intensity threshold for which the exceedance probabilities are computed.

  • slope (float, optional) – The slope of the relationship between optimum scale and lead time in pixels / timestep. Germann and Zawadzki (2004) found the optimal slope to be equal to 1 km / minute.

Returns:

out – If return_output is True, a dataset as described in the documentation of pysteps.io.importers is returned containing a time series of forecast precipitation fields. Otherwise, a None value is returned. The time series starts from t0+timestep, where timestep is taken from the metadata of the time coordinate. If measure_time is True, the return value is a three-element tuple containing the nowcast dataset, the initialization time of the nowcast generator and the time used in the main loop (seconds).

Return type:

xarray.Dataset

References

Germann, U. and I. Zawadzki, 2004: Scale Dependence of the Predictability of Precipitation from Continental Radar Images. Part II: Probability Forecasts. Journal of Applied Meteorology, 43(1), 74-89.