improver.calculate_sleet_prob module¶
A plugin to calculate probability of sleet
-
improver.calculate_sleet_prob.calculate_sleet_probability(prob_of_snow, prob_of_rain)[source]¶ This calculates the probability of sleet using the calculation: prob(sleet) = 1 - (prob(snow) + prob(rain))
- Parameters
prob_of_snow (iris.cube.Cube) – Cube of the probability of snow.
prob_of_rain (iris.cube.Cube) – Cube of the probability of rain.
- Returns
Cube of the probability of sleet.
- Raises:
ValueError: If the cube contains negative values for the the probability of sleet.
- Return type