gordias.util.time_period.validate_time_bounds#
- gordias.util.time_period.validate_time_bounds(cube: Cube, time_range: TimeRange) None#
Validate that the cube’s time range is inside the bounds of the time period.
- Parameters:
cube (iris.cube.Cube) – Input cube to check the bounds against.
time_range (gordias.util.time_string.TimeRange) –
TimeRangeobject representing the time range.
- Raises:
ValueError – If the bounds of the time range are outside of the cube’s time range.