improver.cli.shower_condition_probability module

Script to calculate a probability of precipitation being showery if present.

process(*cubes, cloud_threshold, convection_threshold, model_id_attr=None)[source]

Create a shower condition diagnostic that provides the probability that precipitation, if present, should be classified as showery. This shower condition is created from cloud area fraction and convective ratio fields.

Parameters:
  • cubes (iris.cube.CubeList) – Cubes of cloud area fraction and convective ratio that are used to calculate a proxy probability that conditions are suitable for showery precipitation.

  • cloud_threshold (float) – The cloud area fraction value at which to threshold the input cube. This sets the amount of cloud coverage below which conditions are likely to be considered showery (i.e. precipitation between sunny spells).

  • convection_threshold (float) – The convective ratio value above which, despite the cloud conditions not suggesting showers, the precipitation is so clearly derived from convection that it should be classified as showery.

  • model_id_attr (str) – Name of the attribute used to identify the source model for blending (optional).

Returns:

Probability of any precipitation, if present, being classified as showery.

Return type:

iris.cube.Cube