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
Returns

Cube of the probability of sleet.

Raises:

ValueError: If the cube contains negative values for the the probability of sleet.

Return type

iris.cube.Cube