pysteps.motion.proesmans.proesmans#
- pysteps.motion.proesmans.proesmans(dataset: Dataset, lam=50.0, num_iter=100, num_levels=6, filter_std=0.0, verbose=True, full_output=False)#
Implementation of the anisotropic diffusion method of Proesmans et al. (1994).
- Parameters:
dataset (xarray.Dataset) – Input dataset as described in the documentation of
pysteps.io.importers. It has to contain a precipitation data variable. The dataset has to have a time dimension. The size of this dimension has to be 2.lam (float) – Multiplier of the smoothness term. Smaller values give a smoother motion field.
num_iter (float) – The number of iterations to use.
num_levels (int) – The number of image pyramid levels to use.
filter_std (float) – Standard deviation of an optional Gaussian filter that is applied before computing the optical flow.
verbose (bool, optional) – Verbosity enabled if True (default).
full_output (bool, optional) – If True, both the forward and backwards advection fields are returned and the consistency fields are returned as well in the
velocity_qualitydata variable.
- Returns:
out – The input dataset with the advection field added in the
velocity_xandvelocity_ydata variables.If full_output=True, a
velocity_directiondimension is added to the dataset, so that the velocity data can be returned containing the forward and backwards advection fields. Also thevelocity_qualitydata coordinate is present containing the forward and backward consistency fields.- Return type:
ndarray
References
[PvGPO94]