improver.cli.height_of_max_vertical_velocity module

Contents

improver.cli.height_of_max_vertical_velocity module#

Script to calculate the height at which the maximum vertical velocity occurs.

process(cube, max_cube, *, find_lowest=True, new_name='height_of_maximum_upward_air_velocity')[source]#

Calculates the height level at which the maximum vertical velocity occurs for each grid point. It requires an input cube of vertical velocity and a cube with the maximum vertical velocity values at each grid point. For this case we are looking for the lowest height at which the maximum occurs.

Parameters:
  • cube (iris.cube.Cube) – A cube containing vertical velocity.

  • max_cube (iris.cube.Cube) – A cube containing the maximum values of vertical velocity over all heights.

  • find_lowest (bool) – If true then the lowest maximum height will be found (for cases where there are two heights with the maximum vertical velocity.) Otherwise the highest height will be found.

  • new_name (str) – The new name to be assigned to the output cube. In this case it will become height_of_maximum_upward_air_velocity. If unspecified the name of the original cube is used.

Returns:

A cube of heights at which the maximum value occurs.