improver.cli.wind_downscaling module

Script to run wind downscaling.

process(wind_speed, sigma, target_orography, standard_orography, silhouette_roughness, vegetative_roughness=None, *, model_resolution, output_height_level=None, output_height_level_units='m')[source]

Wind downscaling.

Run wind downscaling to apply roughness correction and height correction to wind fields as described in Howard and Clark (2007). All inputs must be on the same standard grid.

Parameters:
  • wind_speed (iris.cube.Cube) – Cube of wind speed on standard grid. Any units can be supplied.

  • sigma (iris.cube.Cube) – Cube of standard deviation of model orography height. Units of field: m.

  • target_orography (iris.cube.Cube) – Cube of orography to downscale fields to. Units of field: m.

  • standard_orography (iris.cube.Cube) – Cube of orography on standard grid. (interpolated model orography). Units of field: m.

  • silhouette_roughness (iris.cube.Cube) – Cube of model silhouette roughness. Units of field: dimensionless.

  • vegetative_roughness (iris.cube.Cube) – Cube of vegetative roughness length. Units of field: m.

  • model_resolution (float) – Original resolution of model orography (before interpolation to standard grid) Units of field: m.

  • output_height_level (float) – If only a single height level is desired as output from wind-downscaling, this option can be used to select the height level. If no units are provided with ‘output_height_level_units’, metres are assumed.

  • output_height_level_units (str) – If a single height level is selected as output using ‘output_height_level’, this additional argument may be used to specify the units of the value entered to select the level. e.g hPa.

Returns:

The processed Cube.

Return type:

iris.cube.Cube

Rises:
ValueError:

If the requested height value is not found.