improver.cli.convection_ratio module

Script to calculate the ratio of convective precipitation to total precipitation.

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

Calculate the convection ratio from convective and dynamic (stratiform) precipitation rate components.

Calculates the convective ratio as:

ratio = convective_rate / (convective_rate + dynamic_rate)

Parameters:
  • cubes (iris.cube.CubeList) – Cubes of “lwe_convective_precipitation_rate” and “lwe_stratiform_precipitation_rate” in units that can be converted to “m s-1”

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

Returns:

A cube of convection_ratio of the same dimensions as the input cubes.

Return type:

iris.cube.Cube