improver.cli.between_thresholds module

Script to calculate probabilities of occurrence between thresholds.

process(cube, *, threshold_ranges, threshold_units=None)[source]

Calculate the probabilities of occurrence between thresholds

Parameters:
  • cube (iris.cube.Cube) – Cube containing input probabilities above or below threshold

  • threshold_ranges (list) – List of 2-item iterables specifying thresholds between which probabilities should be calculated

  • threshold_units (str) – Units in which the thresholds are specified. If None, defaults to the units of the threshold coordinate on the input cube.

Returns:

Cube containing probability of occurrences between the thresholds specified

Return type:

iris.cube.Cube