gordias.util.time_period#

Module with time period utils.

Functions

create_aux_coord_for_time_range(cube, time_range)

Return a CF auxiliary coordinate for the time range.

extract_cube_for_time_range(cube, time_range)

Extract a new cube for the new time range.

extract_data_for_time_range(cube, time_range)

Extract data from the input cube for the given time range.

get_first_and_last_indices(time_range, ...)

Given a time vector return the first and last index for the time range.

get_time_range_bounds(time_range, time_units)

Return the bounds of the time range.

get_times_helper(cube)

Return TimesHelper object for the cube's time vector.

validate_time_bounds(cube, time_range)

Validate that the cube's time range is inside the bounds of the time period.