improver.cli.wind_direction module

Script to calculate mean wind direction from ensemble realizations.

process(wind_direction, *, backup_method='neighbourhood')[source]

Calculates mean wind direction from ensemble realization.

Create a cube containing the wind direction averaged over the ensemble realizations.

Parameters:
  • wind_direction (iris.cube.Cube) – Cube containing the wind direction from multiple ensemble realizations.

  • backup_method (str) – Backup method to use if the complex numbers approach has low confidence. “neighbourhood” (default) recalculates using the complex numbers approach with additional realization extracted from neighbouring grid points from all available realizations. “first_realization” uses the value of realization zero, and should only be used with global lat-lon data.

Returns:

Cube containing the wind direction averaged from the ensemble realizations.

Return type:

iris.cube.Cube