improver.utilities.time_lagging module

Provide support utilities for time lagging ensembles

class improver.utilities.time_lagging.GenerateTimeLaggedEnsemble[source]

Bases: improver.BasePlugin

Combine realizations from different forecast cycles into one cube

_abc_cache = <_weakrefset.WeakSet object>
_abc_negative_cache = <_weakrefset.WeakSet object>
_abc_negative_cache_version = 213
_abc_registry = <_weakrefset.WeakSet object>
process(cubelist)[source]

Take an input cubelist containing forecasts from different cycles and merges them into a single cube.

The steps taken are:
  1. Update forecast reference time and period to match the latest contributing cycle.

  2. Check for duplicate realization numbers. If a duplicate is found, renumber all of the realizations uniquely.

  3. Concatenate into one cube along the realization axis.

Parameters

cubelist (iris.cube.CubeList or list of iris.cube.Cube) – List of input forecasts

Returns

Concatenated forecasts

Return type

iris.cube.Cube