pysteps.nowcasts.utils.stack_cascades

pysteps.nowcasts.utils.stack_cascades(R_d, n_levels, donorm=True)

Stack the given cascades into a larger array.

Parameters:
R_d : list

List of cascades obtained by calling a method implemented in pysteps.cascade.decomposition.

n_levels : int

Number of cascade levels.

donorm : bool

If True, normalize the cascade levels before stacking.

Returns:
out : tuple

A three-element tuple containing a four-dimensional array of stacked cascade levels and lists of mean values and standard deviations for each cascade level (taken from the last cascade).