improver.precipitation_type.calculate_sleet_prob module
A plugin to calculate probability of sleet
- 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:
- Return type:
- Returns:
Cube of the probability of sleet. This will be fractional or categorical, matching the highest precision of the inputs.
- Raises:
ValueError – If the cube contains negative values for the the probability of sleet.