gordias.util.time_period.extract_cube_for_time_range#
- gordias.util.time_period.extract_cube_for_time_range(cube: Cube, time_range: TimeRange) Cube#
Extract a new cube for the new time range.
- Parameters:
cube (iris.cube.Cube) – Input cube from which to extract subcube.
time_range (gordias.util.time_string.TimeRange) –
TimeRangeobject defining the time range for the new cube.
- Returns:
A new cube with the time range defined by the
TimeRange.- Return type: